MCP connections work with AI agent integrations (agent loops), which call tools before they answer. A custom webhook integration receives each connected server, including the person’s access token, in its payload. Read What your integration receives before you turn this on.
Turn it on
1
Open the Behavior page
In the dashboard, open your bot and go to Behavior.
2
Switch on MCP connections
Under Agent Context, turn on MCP connections. The switch is off by default.
3
Limit the servers (optional)
In Allowed servers, enter one host per line, for example
mcp.linear.app. A host also allows its subdomains. Leave the field empty to allow any public server.4
Save
Click Save Settings. The next reply already has the connection tools.
How a person connects a server
1
Ask in chat
The person asks the bot to add a server: “Add the Linear MCP server” or “Connect https://mcp.linear.app/mcp”. If the bot doesn’t know the service’s MCP server address, it asks for it.
2
Open the sign-in link
The bot answers with a sentence such as “Open this link to sign in to linear: https://…/connect/… (it works once and expires in 15 minutes).” The link opens a page that shows the bot, the service and the chat it is for, with a Continue to linear button.
3
Sign in at the service
Continue opens the service’s own sign-in and consent screen. After the person approves, they come back to a page that says Connected to linear and “You can go back to … The bot can use linear from your next message.”
4
Back in the chat
The chat gets a short note, “Connected to linear. I can use its tools from your next message.” From the next message on, the service’s tools are available in every private chat that person has with the bot.
The sign-in link
Which servers can be connected
A server can be connected from chat when it is a hosted (remote) MCP server reachable at a publichttps address and one of these is true:
- It needs no sign-in. It answers MCP requests directly.
- It follows the MCP authorization spec. It answers
401and publishes OAuth protected resource metadata, its authorization server supports the authorization code flow with PKCE (S256), and it supports Dynamic Client Registration, so the platform can register itself as an app there. Many hosted MCP servers, Linear’s among them, work this way.
Servers without dynamic client registration
Some sign-in servers don’t let apps register themselves. For those, a bot admin registers an app at the service once and enters it on the Behavior page:1
Register an app at the service
Use the redirect URL shown in the OAuth clients block under Behavior → Agent Context → MCP connections.
2
Enter the client
In Add or update a client, enter the sign-in server’s Issuer (exactly as its OAuth metadata lists it), the Client ID, the Client secret, and How the secret is sent: HTTP basic auth, in the request body, or a public client with no secret (PKCE only). Click Save client.
Who can use a connection
A connection belongs to the person who signed in, not to one conversation:- It works in every private chat of that person with the bot: the web widget for a signed-in user, a Telegram private chat, a Slack DM. When the person’s channels are linked, it works on all of them.
- It is never used in group conversations (Slack channels and threads, Telegram groups). The connection tools are not offered there either.
- One person can have up to 10 connected servers.
Managing connections from chat
The agent has an MCP Connections server with these tools:
So the person can say “which services are connected?”, “pause Linear” or “disconnect Linear”.
Managing connections in the dashboard
Connections show up in two places, each with name, server, status, scopes, when it was last used, and a Disconnect button:- People: open a person to see all their connections.
- Conversations: the Connections tab of a private conversation shows the connections of the person who owns it.
Sign-in renewal, expiry and disconnecting
- Renewal. When a service gives a refresh token, the sign-in is renewed automatically shortly before it expires, before each reply is prepared, and once when the service refuses a token in the middle of a reply.
- Sign-in expired. If renewal fails (for example because the person revoked access at the service), the connection shows Sign-in expired and its tools are left out. The agent is told “The sign-in to … has expired. Call
connect-mcp-server…”, sends the person a new link, and signing in again updates the same connection. - Disconnecting, from chat or the dashboard, asks the service to revoke the tokens (when it supports that), deletes them on our side, and removes the server from replies right away, including a reply that is already running.
What your integration receives
Connections travel to your integration the same way as the other MCP servers of a conversation. Each active, switched-on connection is added tomcp_servers with an Authorization header. The conversation block also lists the person’s connections, without tokens:
conversation.connectionslists every connection that isn’t disconnected, withstatusactiveorneeds_reauthandenabled. It is left out when the person has none, in group conversations, and while the switch is off.mcp_serversgets only connections that areactiveand switched on. A server that needs no sign-in has noAuthorizationheader.- The token in the payload is always fresh: an expiring sign-in is renewed before the payload is built.
- When names clash, a connection wins over a server added in chat with
add-conversation-mcp, and a server from your MCP discovery webhook wins over a connection.