Community程式設計與開發github.com

Connect

將 Claude 連接到任何應用程式。發送電子郵件、建立問題、發布訊息、更新資料庫——在 Gmail、Slack、GitHub、Notion 及超過 1000 項服務中執行真實操作。

Connect 是什麼?

Connect 技能讓 Claude 不僅能生成文字建議,還能直接與超過 1000 個外部服務互動,例如 Gmail、Slack、GitHub、Notion 和 PostgreSQL。它非常適合開發者建立可執行真實動作的 AI 代理,例如發送電子郵件、建立問題、發布訊息或更新資料庫,而無需用戶手動操作。該技能支援多種主流框架,包括 Claude Agent SDK、OpenAI Agents、Vercel AI 和 LangChain,並可透過 Python 或 TypeScript 安裝。其核心是 Composio Tool Router,它會自動選擇正確的工具、處理 OAuth 身份驗證,並執行動作。用戶只需設定 COMPOSIO_API_KEY 環境變數,即可開始使用。

相容平台✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/ComposioHQ/awesome-claude-skills/tree/master/connect

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

預覽

來自技能 README

Connect preview

說明文件

Connect 是做什麼的?

將 Claude 連接到任何應用程式。別再只是生成關於你能做什麼的文字——實際去執行它。

何時使用此技能

當你需要 Claude 執行以下操作時,請使用此技能:

  • 發送那封電子郵件,而不是草擬它
  • 建立那個問題,而不是描述它
  • 發布那則訊息,而不是建議它
  • 更新那個資料庫,而不是解釋如何做

有何改變

沒有 Connect使用 Connect
「這裡是郵件草稿…」發送電子郵件
「你應該建立一個問題…」建立問題
「將此發布到 Slack…」發布它
「將此加入 Notion…」加入它

支援的應用程式

超過 1000 個整合,包括:

  • 電子郵件: Gmail、Outlook、SendGrid
  • 即時通訊: Slack、Discord、Teams、Telegram
  • 開發: GitHub、GitLab、Jira、Linear
  • 文件: Notion、Google Docs、Confluence
  • 資料: Sheets、Airtable、PostgreSQL
  • 客戶關係管理: HubSpot、Salesforce、Pipedrive
  • 儲存: Drive、Dropbox、S3
  • 社群: Twitter、LinkedIn、Reddit

設定

1. 取得 API 金鑰

在 platform.composio.dev 免費取得你的金鑰

2. 設定環境變數

export COMPOSIO_API_KEY="你的金鑰"

3. 安裝

pip install composio          # Python
npm install @composio/core    # TypeScript

完成。Claude 現在可以連接到任何應用程式。

範例

發送電子郵件

寄信給 [email protected] - 主旨:「已出貨!」內容:「v2.0 已上線,如有問題請告知」

建立 GitHub 問題

在我的組織/儲存庫中建立問題:「行動裝置超時錯誤」加上標籤:錯誤

發布到 Slack

發布到 #工程:部署完成 - v2.4.0 已上線

鏈式動作

找出本週標記為「錯誤」的 GitHub 問題,進行摘要,然後發布到 Slack 的 #錯誤 頻道

運作方式

使用 Composio Tool Router:

  1. 你要求 Claude 執行某個動作
  2. Tool Router 找到正確的工具(超過 1000 個選項)
  3. 自動處理 OAuth
  4. 執行動作並回傳結果

程式碼

from composio import Composio
from claude_agent_sdk.client import ClaudeSDKClient
from claude_agent_sdk.types import ClaudeAgentOptions
import os

composio = Composio(api_key=os.environ["COMPOSIO_API_KEY"])
session = composio.create(user_id="user_123")

options = ClaudeAgentOptions(
    system_prompt="你可以在外部應用程式中執行動作。",
    mcp_servers={
        "composio": {
            "type": "http",
            "url": session.mcp.url,
            "headers": {"x-api-key": os.environ["COMPOSIO_API_KEY"]},
        }
    },
)

async with ClaudeSDKClient(options) as client:
    await client.query("發送 Slack 訊息到 #一般:你好!")

授權流程

首次使用應用程式時:

要發送電子郵件,我需要 Gmail 的存取權限。
在此授權:https://...
完成後請說「已連線」。

之後連線會持續存在。

框架支援

框架安裝方式
Claude Agent SDKpip install composio claude-agent-sdk
OpenAI Agentspip install composio openai-agents
Vercel AInpm install @composio/core @composio/vercel
LangChainpip install composio-langchain
任何 MCP 客戶端使用 session.mcp.url

疑難排解

  • 需要授權 → 點擊連結,授權,然後說「已連線」
  • 動作失敗 → 檢查目標應用程式中的權限
  • 找不到工具 → 請具體說明:「Slack #一般」而非「發送訊息」

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

abstract-automation

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

abuselpdb-automation

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

abyssale-automation

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

accelo-automation

Automate Accelo tasks via Rube MCP (Composio). Always search tools first for current schemas.

accredible-certificates-automation

Automate Accredible Certificates tasks via Rube MCP (Composio). Always search tools first for current schemas.

acculynx-automation

Automate Acculynx tasks via Rube MCP (Composio). Always search tools first for current schemas.

active-campaign-automation

Automate ActiveCampaign tasks via Rube MCP (Composio). Always search tools first for current schemas.

addresszen-automation

Automate Addresszen tasks via Rube MCP (Composio). Always search tools first for current schemas.

adobe-automation

Automate Adobe tasks via Rube MCP (Composio). Always search tools first for current schemas.

adrapid-automation

Automate Adrapid tasks via Rube MCP (Composio). Always search tools first for current schemas.

adyntel-automation

Automate Adyntel tasks via Rube MCP (Composio). Always search tools first for current schemas.

aeroleads-automation

Automate Aeroleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

aero-workflow-automation

Automate Aero Workflow tasks via Rube MCP (Composio). Always search tools first for current schemas.

affinda-automation

Automate Affinda tasks via Rube MCP (Composio). Always search tools first for current schemas.

affinity-automation

Automate Affinity tasks via Rube MCP (Composio). Always search tools first for current schemas.

agencyzoom-automation

Automate Agencyzoom tasks via Rube MCP (Composio). Always search tools first for current schemas.

agent-mail-automation

Automate Agent Mail tasks via Rube MCP (Composio). Always search tools first for current schemas.

agentql-automation

Automate Agentql tasks via Rube MCP (Composio). Always search tools first for current schemas.

agenty-automation

Automate Agenty tasks via Rube MCP (Composio). Always search tools first for current schemas.

相關技能