Add Connector 标志

Add Connector

组织热门
GetStream
add-connector

How to add a connector - a custom MCP server for one app (no code), or a new built-in in the router's catalog (a manifest YAML with sources, a consent test and a PR). Read before you add a provider, change a built-in manifest, or bump its revision.

概览

发布者GetStream
代码仓库Agents
技能名称add-connector
星标数
8.2K
复刻数
709
附带文件
仅含指令
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 GetStream 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Add Connector AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/GetStream/Agents/tree/main/.claude/skills/add-connector
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/GetStream/Agents.git /tmp/Agents
mkdir -p .claude/skills
cp -r /tmp/Agents/.claude/skills/add-connector .claude/skills/add-connector
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Add Connector,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Add Connector。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Add Connector 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Add a connector

First decide which kind you need. Connecting an existing connector to an agent is in the connectors skill.

You wantKindCode change
One app uses its own MCP servercustom connectornone: the API or the dashboard
Every app can pick the provider from the catalogbuilt-ina manifest in acceleration/internal/connectors/providers/

A custom connector

Dashboard: Library › Connectors › New connector. API: POST /v1/agents/connectors (CustomConnectorRequest: id, name, endpoint or http, schemes, optional scopes, client, category, description, sync_hash, check_changes).

  • The id starts with custom_, for example custom_crm. Built-ins never use that prefix.
  • endpoint is the MCP server's https URL.
  • http is an HTTP API in place of an MCP server: base_url and tools, each tool with name, description, method, path, parameters and read_only (only on a GET or a HEAD). Send endpoint or http, not both. base_url must be a public https URL, and it is never shown again. oauth2_code is not available for one.
  • sync_hash is the fingerprint of the file the CLI synced the connector from. The connector returns it until a create without one, from the dashboard or the API, clears it.
  • check_changes: true refuses the create (409 unsynced_changes) when the newest revision has no sync_hash and says something else: a sync would write over a dashboard or API edit.
  • schemes is how a connection signs in: oauth2_code, bearer, api_key, or none.
  • A public server that needs no credential takes schemes: ["none"]. Create the connection, then connect it with PUT /v1/agents/connections/{id}/credentials and the body {"expected_revision": <its revision>}, with no values. The same empty write moves it to the connector's latest revision later, as a token saved again moves a bearer connection.
  • Then add a connection to it and bind it to an agent, as for any connector.
  • Delete answers 409 while an agent config binds it. The message names the bindings. Force deletes it anyway and leaves those bindings broken.

A built-in

A built-in is one YAML file, acceleration/internal/connectors/providers/<id>.yaml. The router embeds it and stores it in connector_definitions at every start. Read acceleration/internal/connectors/providers/AGENTS.md (rules) and the «Manifest» section of acceleration/internal/connectors/core/AGENTS.md (fields) before you write one.

Start from the closest existing file:

Your providerCopy
A hosted MCP server with OAuth and dynamic client registrationlinear.yaml
OAuth with an app the operator or customer registers, plus a token optiongithub.yaml
Receives messages (a channel)slack_bot.yaml, whatsapp.yaml
A bearer token onlylinq.yaml

Steps

  1. Write <id>.yaml. The id is the file name and never starts with custom_. Set revision: 1. Fill name, category, description, endpoints, schemes, client (registration: operator, customer, managed, dcr, cimd), scopes, refresh, rate_limit and sources. Add a channel block only if the provider sends messages. Set sensitive: true if the connector reads private data, and outbound: false on a source whose tools only read (providers/AGENTS.md), or list the tools that only read in its read_only_tools when others write (google_drive.yaml); left out, a tool counts as writing. A tool's needs_scopes is the scope the consent asks for; when the provider documents a broader scope that gives all it gives, list it under scopes.covered_by (google_drive.yaml), so a grant holding the broader one is not told to consent again. A source's headers are fixed request headers sent on every request, such as GitHub's X-MCP-Toolsets (github.yaml); a header the credential, the connection or MCP writes is refused.

  2. Cite every vendor fact. Put a comment beside each value with the vendor page and the date you opened it. A value with no source gets # unverified, and the PR lists it.

  3. Stream's own OAuth client (only if client.registration lists operator): set client.env: <ENV>. The deployment reads <ENV>_MCP_CLIENT_ID and <ENV>_MCP_CLIENT_SECRET. Add both to acceleration/README.md, «Configuration».

  4. A consent test. Every OAuth built-in has one in providers/consent_test.go. It runs oauth2_code against internal/connectors/fakeprovider, with the manifest's own endpoints pointed at the fake. New fake behaviour belongs in fakeprovider, not in the test.

  5. Run the checks from acceleration/:

    bash
    go test ./internal/store ./internal/connectors/...     # parses every manifest, runs consents
    go test ./internal/connectors/core -run TestCoreNamesNoProvider

    The store tests need Postgres (see providers/AGENTS.md, «Tests»). A test DB of your own: the go-testing and parallel-agents skills.

  6. Try it live. Start the router locally (dashboard skill), connect an account, bind one tool and call it in Playground. Then follow the connectors skill.

  7. Open the PR on the main branch. Its body lists the sources and every # unverified value.

Changing a built-in

  • Any change to what the manifest says needs a new revision. An edit without one stops the router from starting. A comment, spacing or key order is not a change.
  • Existing connections keep their pinned revision. They move to the new one at their next consent (OAuth) or token save. So a new field, such as api_base, reaches old connections only then. The API shows them outdated only when the new revision changes what they read (core.Manifest.ReadsAsConnection): a revision that changes only sensitive, outbound or read_only_tools leaves them current, since the config check reads those from the latest. channel.reply.flags reaches every connection at once: a reply reads it from the latest revision, and a revision that changes only it leaves them current.
  • To retire a broken revision, the new revision lists it in broken_revisions with a reason. Connections on it are asked to sign in again.
  • Never delete a file to remove a connector. Its revisions stay for the connections that pinned them.
  • Never revert by editing. A revert is a new revision with the old content.

Before you ask

QuestionAnswer
Which scheme?What the provider supports for an agent acting for someone: OAuth with PKCE (oauth2_code) when it has it, otherwise a token (bearer, api_key). Machine-to-machine OAuth is oauth2_client_credentials (salesforce.yaml)
Who registers the OAuth client?The provider's docs decide. An MCP server with dynamic registration: dcr. Otherwise operator (Stream's app), customer (the app's own), or both
Do I need Go code?No, unless the provider needs a hook. Then talk to the router owners first
Where does the redirect URI come from?<ROUTER_PUBLIC_URL>/v1/agents/connectors/oauth/callback. Register it at the provider

常见问题

Add Connector AI 技能有什么作用?

How to add a connector - a custom MCP server for one app (no code), or a new built-in in the router's catalog (a manifest YAML with sources, a consent test and a PR). Read before you add a provider, change a built-in manifest, or bump its revision.

为什么在 TypingMind 中使用 Add Connector?

因为您只需安装一次,就能搭配任何模型使用。Add Connector 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Add Connector?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/GetStream/Agents/tree/main/.claude/skills/add-connector。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Add Connector?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Add Connector 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Add Connector 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Add Connector AI 技能免费吗?

是的。GetStream 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇