Add a connector
First decide which kind you need. Connecting an existing connector to an agent is in the
connectors skill.
| You want | Kind | Code change |
|---|---|---|
| One app uses its own MCP server | custom connector | none: the API or the dashboard |
| Every app can pick the provider from the catalog | built-in | a 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 examplecustom_crm. Built-ins never use that prefix. endpointis the MCP server's https URL.httpis an HTTP API in place of an MCP server:base_urlandtools, each tool withname,description,method,path,parametersandread_only(only on a GET or a HEAD). Sendendpointorhttp, not both.base_urlmust be a public https URL, and it is never shown again.oauth2_codeis not available for one.sync_hashis 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: truerefuses the create (409unsynced_changes) when the newest revision has nosync_hashand says something else: a sync would write over a dashboard or API edit.schemesis how a connection signs in:oauth2_code,bearer,api_key, ornone.- A public server that needs no credential takes
schemes: ["none"]. Create the connection, then connect it withPUT /v1/agents/connections/{id}/credentialsand the body{"expected_revision": <its revision>}, with novalues. The same empty write moves it to the connector's latest revision later, as a token saved again moves abearerconnection. - 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 provider | Copy |
|---|---|
| A hosted MCP server with OAuth and dynamic client registration | linear.yaml |
| OAuth with an app the operator or customer registers, plus a token option | github.yaml |
| Receives messages (a channel) | slack_bot.yaml, whatsapp.yaml |
| A bearer token only | linq.yaml |
Steps
-
Write
<id>.yaml. The id is the file name and never starts withcustom_. Setrevision: 1. Fillname,category,description,endpoints,schemes,client(registration:operator,customer,managed,dcr,cimd),scopes,refresh,rate_limitandsources. Add achannelblock only if the provider sends messages. Setsensitive: trueif the connector reads private data, andoutbound: falseon a source whose tools only read (providers/AGENTS.md), or list the tools that only read in itsread_only_toolswhen others write (google_drive.yaml); left out, a tool counts as writing. A tool'sneeds_scopesis the scope the consent asks for; when the provider documents a broader scope that gives all it gives, list it underscopes.covered_by(google_drive.yaml), so a grant holding the broader one is not told to consent again. A source'sheadersare fixed request headers sent on every request, such as GitHub'sX-MCP-Toolsets(github.yaml); a header the credential, the connection or MCP writes is refused. -
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. -
Stream's own OAuth client (only if
client.registrationlistsoperator): setclient.env: <ENV>. The deployment reads<ENV>_MCP_CLIENT_IDand<ENV>_MCP_CLIENT_SECRET. Add both toacceleration/README.md, «Configuration». -
A consent test. Every OAuth built-in has one in
providers/consent_test.go. It runsoauth2_codeagainstinternal/connectors/fakeprovider, with the manifest's own endpoints pointed at the fake. New fake behaviour belongs infakeprovider, not in the test. -
Run the checks from
acceleration/:bashgo test ./internal/store ./internal/connectors/... # parses every manifest, runs consents go test ./internal/connectors/core -run TestCoreNamesNoProviderThe store tests need Postgres (see
providers/AGENTS.md, «Tests»). A test DB of your own: thego-testingandparallel-agentsskills. -
Try it live. Start the router locally (
dashboardskill), connect an account, bind one tool and call it in Playground. Then follow theconnectorsskill. -
Open the PR on the
mainbranch. Its body lists the sources and every# unverifiedvalue.
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 themoutdatedonly when the new revision changes what they read (core.Manifest.ReadsAsConnection): a revision that changes onlysensitive,outboundorread_only_toolsleaves themcurrent, since the config check reads those from the latest.channel.reply.flagsreaches every connection at once: a reply reads it from the latest revision, and a revision that changes only it leaves themcurrent. - To retire a broken revision, the new revision lists it in
broken_revisionswith 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
| Question | Answer |
|---|---|
| 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 |


