Beta. MCP servers are available now, but the surface is still settling — expect changes.
Connect a server
Go to Actions and add a server from the MCP servers section — either pick one from the preset gallery (OpenCX, Slack, HubSpot, Intercom, Linear, Notion, Stripe) or add a custom URL.1
Enter the server URL
A Streamable HTTP or SSE endpoint, e.g.
https://mcp.example.com/mcp. OpenCX probes it to detect how it authenticates.2
Choose who connects
Select Our team — one shared account to connect from Actions, or Each user — their own account to let signed-in widget customers connect individually. Ownership is fixed when the server is created.
3
Authenticate
For a shared account, authenticate here. For personal accounts, follow Widget connections to authenticate your customers and let them connect inside the widget.
- OAuth — if the server advertises OAuth (discovery + dynamic client registration), OpenCX opens its authorization page. Approve, and you’re redirected back connected. Tokens are refreshed automatically and kept out of the widget. Personal connections can optionally be reused by your backend.
- Request headers — if the server expects a static credential instead (an API key, a bearer token), enter it as a header. Values are encrypted at rest and never displayed again; reference a named secret instead of pasting a raw value so the credential lives in one place.
Slack’s MCP server supports neither automatic path, so it uses a pre-registered OAuth client instead of discovery.
4
Review and enable
Once connected, OpenCX lists every tool the server publishes. The server is enabled by default — flip it off to keep the connection and its tool list without letting agents call anything.
Personal accounts in the widget
Enable a personal server in Actions, then authenticate each customer through your backend. The widget asks the customer to connect only when a request needs access, and continues after authorization. Customers manage their own connections and saved approvals from Connections in the widget session list. Shared team connections are managed in Actions. For personal servers, use Capabilities in the server’s add or edit dialog to describe the actions it supports. This helps the agent request a connection for relevant tasks before it can see the customer’s authorized tools. Include useful limits, keep the description aligned with enabled actions, and leave out credentials and customer data. This description is guidance, not a guarantee of access; tools are checked after the customer connects. See Widget connections for setup and widget authentication for account binding and optional restrictions.Per-tool control
Open a connected server’s detail page to see its live tool catalog, grouped by what each tool does — write, fetch, or other. Switch individual tools off, or a whole group at once.- The catalog is re-read from the server (
tools/list) every time you open the page, so a tool the vendor adds later shows up already enabled. - Switching a tool off stores it in a disabled set on your connection — it stays off even after the vendor’s catalog changes, until you turn it back on.
- Write tools default to visible/open in the list since they’re the ones worth auditing before an agent gets to call them; fetch tools default collapsed.
Limit where tools are available
By default a server’s tools are available in every session. On the server’s detail page you can narrow that, the same way you can for an HTTP action:- Available on: the channels the tools are offered on. Leave it empty for all channels.
- Contact segments: the segments a contact must belong to. Leave it empty for all contacts. A contact in any one of the listed segments qualifies.
Personal servers are used through the widget, so their tools are only offered in web chat sessions. If you limit a personal server’s channels, keep Web selected, otherwise its tools are not offered anywhere.
Tool call metadata
Your server often needs to know who a session is about: a customer ID, a phone number, a plan. If the AI passed these as tool arguments, a customer could talk it into sending someone else’s. With tool call metadata, OpenCX attaches the values to every tool call instead, outside the tool’s arguments, where the AI can’t replace them. In a shared server’s edit dialog, under Tool call metadata, add a row for each value: a Name your server reads it by, and a Value. Type{{ in the value to pick from a list. A value can mix text and placeholders. The rows are saved with the dialog.
A value can use:
- The session values available to action headers: the session’s ID, number and channel, the customer’s ID on that channel, and the contact’s ID, phone, email and external ID.
{{contact.custom_data.<key>}}: a field of the contact’s verified custom data.{{session.custom_data.<key>}}: a field of the session’s custom data.
What your server receives
Eachtools/call request carries the filled values in its _meta field, under the cx.open/context key, next to the tool’s arguments:
- Trusted identity only. Contact values, custom data included, follow the same rule as action headers: they have no value for an anonymous web visitor.
- Session custom data is not verified. It holds whatever your widget, integrations and workflows saved on the session, and in web chat a visitor can change what the widget sends. Use it for context such as a store or a cart, not to decide whose data to return.
- No value, no row. A row with a placeholder that has no value for the session is left out, and the other rows are still sent. Make your server reject a call that lacks a value it needs.
- Listed placeholders only. A value with a
{{...}}that is not one of the placeholders above can’t be saved. - Text only. Every value arrives as a string. A custom data field that holds a list or an object can’t be sent.
- Tool calls only. Listing a server’s tools carries no metadata.
- Shared servers only. A personal server already knows each customer from their own connection.
How agents call MCP tools
Once enabled, an MCP server’s tools are available to the AI agent exactly like any other action — the agent decides whether a tool matches the customer’s request, same as for HTTP actions. Tool names are namespaced as<server>__<tool> so two servers can each expose a tool with the same raw name (e.g. two different search tools) without colliding. If a server is unreachable when the agent tries to list its tools, that server’s tools are omitted without breaking the whole tool list; its detail page reports the failure reason inline.
Troubleshooting
Related Documentation
AI Actions
How actions fit alongside integration and system tools.
Authentication
Named secrets, global variables, and header auth for actions.
OpenAPI Import
The other way to bulk-add actions, from your own OpenAPI spec.
Troubleshooting
General action failures — import errors, 401s, AI not calling.