MCP
MCP servers, the managed server, per-user URLs, browser access and API key mode, with setup for Claude Desktop, Claude connectors and Cursor.
Every project can run MCP servers: a chosen set of tools, exposed over the Model Context Protocol to clients such as Claude Desktop, Claude connectors and Cursor, or to your own agents. Tool calls run through the same execution path as the API, with the same connected accounts and logs.
To give Claude all of your own connected apps with one link, without choosing toolkits, use Connect to agents in the dashboard. It runs on a managed server of the project.
How it works
The MCP endpoint speaks streamable HTTP and is stateless: each POST authenticates, loads the
server's current configuration and answers. There are no sessions and no server-initiated
messages, so changes to a server apply on the client's next tools/list.
| URL | Credential | Use it for |
|---|---|---|
POST <mcp host>/u/<token>/mcp | the mcpt_... token in the URL | Claude Desktop, Claude connectors, Cursor |
POST <mcp host>/s/<mcp server id>/mcp?user_id=<id> | Authorization: Bearer <api key> | your own agents and backends |
When you run the platform yourself, the MCP server listens on port 4100 and builds its URLs from
MCP_PUBLIC_URL (default http://localhost:4100). Requests must use that host; localhost and
127.0.0.1 are also accepted outside production.
Create a server
Open Dashboard, MCP and choose Create MCP server.
- Name: shown to MCP clients, for example
Support agent. - Toolkits: up to 20. Each tool call runs as one of your users, so the user needs a connected account for every toolkit that requires one.
- Tools: leave empty for every current, non-deprecated tool of the toolkits, or pick up to 200.
- Auth config (optional, per toolkit): pins the toolkit to one auth config. Tools then use the
user's newest active account of that auth config; without a pin, the user's newest active
account of the toolkit. A pinned auth config cannot be deleted (
409 in_use) until you unpin it.
A project can have 50 MCP servers (the managed server does not count). Owners, admins and developers can create or change them; viewers can read them. The same
operations are available over the API under /api/v1/mcp_servers.
Disabling a server makes every URL of it, including API key mode, answer 403 until you enable it
again. Deleting it removes its URLs.
With an API key, managing servers and per-user URLs needs the mcp_server:read and
mcp_server:write permissions. The SDK has the same operations
under mcpServers (see TypeScript SDK).
Managed server
Every MCP server has a kind. The servers you create are custom: they expose the toolkits and
tools you chose. A project can also have one managed server, kind: "all_connected", named
"All connected apps" (or "All connected apps (managed)" when a custom server already has that
name). It is what Connect to agents uses, and the dashboard shows it with a
Managed chip.
- Created on demand. The first Create my agent link in the project creates it.
POST /api/v1/mcp_serversalways creates acustomserver, so there is never more than one managed server per project. - Its tools follow the user. It stores no toolkits (
toolkitsandallowed_toolsare[]) and no pinned auth configs. On every request, a URL for userUexposes the toolkitsUhas a connected account for in this project,activeorexpired, newest first, up to 50. Accounts that arefailed,initiatedorrevokeddon't count. Toolkits that need no connection (such as Hacker News and HTTP), and toolkits the project no longer has, are left out. - Expired accounts stay in on purpose. Their tools answer the tool error "The connected account is expired; reconnect it", so the model can tell the user, instead of the app silently disappearing.
- Instructions. The server tells the model: "If the user asks for an app that is not listed, tell them to connect it in Toolwire under Apps."
tools_countin the server list is an upper bound: the tools of every toolkit that any user of the project has an active or expired account for (capped the same way). What one URL exposes depends on its user.- Execution is the same as for any server: as the URL's user, the newest active account of the toolkit, logged with the server's id, rate limited and counted as usage.
Shared accounts and use_account
A project can share accounts with the whole team (scope: "shared", see
Personal and shared accounts). On a
member's managed link (the URL's user is the usr_ id of a current owner, admin or developer
of the organization), the server adds the project's shared accounts next to the member's own:
- One tool set per app. Claude sees
GMAIL_SEND_EMAILonce, however many Gmail accounts the member can use. Labels never become part of tool names, so a rename never changes a tool name. use_account. When the member has more than one usable account of an app, every tool of that app gets one extra input property,use_account, an enum of"personal"(when the member has an own account) followed by the shared labels, for example["personal", "Sales inbox", "Support inbox"]. With a single option nothing is added.- Personal wins. A call without
use_accountuses the member's own account when there is one (active or expired), else the only shared account. With no own account and several shared ones,use_accountisrequiredin that member's schema. - Tool errors. A call that needs a choice and has none answers
account_required; a value that is not a current label answersunknown_account. Both list the valid values, so the model can retry.use_accountis removed before the tool runs: it is never sent to the app or logged as tool input (the choice is logged asaccount_choice). - Renames. The list is computed on every request, so a rename, a new shared account or a
disconnect shows up on the member's next request. Claude caches the tool list per chat, so it
may need a new chat to see a new name; a call with the old name gets
unknown_account. - Who gets shared accounts. Members who can run tools only. Per-user URLs for any other user
id (your own end users,
cust_42), viewers, custom servers and API key mode never get shared accounts oruse_account; they work exactly as before.
Company workspace tools
On a member's personal agent link (and only there), the managed server also serves the
organization's AI workspace: the tools
WORKSPACE_GET_CONTEXT, WORKSPACE_SEARCH, WORKSPACE_READ_FILE, WORKSPACE_GET_SKILL and
WORKSPACE_PROPOSE_LEARNING, listed before the app tools, plus one prompt per skill and a
company-context prompt, read-only workspace://file/<path> resources and a short workspace block
in instructions. The prompts and resources capabilities are declared only then.
- Never on custom servers, in API key mode, or on a user URL a developer created for someone
else. The organization setting Claude access (
off,read,propose), a saved intake, the member's two-factor status andMCP_WORKSPACE_ENABLEDdecide it per request. When any of them says no,initializeandtools/listare exactly what they were before. - The workspace tools don't call the executor: no execution log, no usage and no
executebucket. Themcpbucket still counts every request, and proposals have their ownworkspace_proposelimit. workspaceis a reserved custom app slug, and no toolkit tool may start withWORKSPACE_.- Owners and admins (Claude access
propose) also getWORKSPACE_LIST_PROPOSALS,WORKSPACE_REVIEW_PROPOSALSand theacc-skillprompt, in every organization, with nothing to install. Ask your Claude in your own words, for example "Check the proposals waiting for approval in Lumen Studio" (Dutch: "Bekijk de voorstellen die wachten op goedkeuring in Lumen Studio", French: "Vérifie les propositions en attente de validation dans Lumen Studio"), or type/acc-skillin Claude Code. Claude lists what is waiting, you tick what to approve or reject, and nothing changes until you confirm. Apps that support forms ask you directly; elsewhere Claude shows a summary and needs your yes first. Every approval runs the same checks as the dashboard and is marked in the audit log. - Every workspace has the
panelskill: a panel of experts and target readers scores a text before it goes out and improves it until it gets a 9. Ask your Claude, for example "Use Lumen Studio and the panel skill: please score this text before I send or post it." and paste the text under it: an email, WhatsApp message, LinkedIn or Instagram post, newsletter, proposal or web page (Dutch: "Gebruik Lumen Studio en de panel-skill: beoordeel deze tekst voordat ik hem verstuur of plaats.", French: "Utilise Lumen Studio et la compétence panel : note ce texte avant que je l'envoie ou le publie."). Claude answers in the language you write in, English by default, and keeps it for the rest of the conversation.
Automation tools
When MCP_AUTOMATIONS_ENABLED is on (off by default), a member's personal agent link also gets
tools to build automations, listed after the
workspace tools: AUTOMATION_LIST_TRIGGERS, AUTOMATION_LIST, AUTOMATION_GET,
AUTOMATION_PREVIEW, AUTOMATION_LIST_RUNS, AUTOMATION_SAVE_DRAFT and AUTOMATION_PAUSE.
- The agent saves drafts only. No tool publishes, turns on or test-runs an automation: those
act on their own or really send things, so the person does them in the dashboard from the
review_urlin the result. - Every automation an agent creates uses the link member's own connected accounts. No input sets another owner.
- Viewers get the read tools only. Custom servers, API key mode and user URLs created for someone else never get the tools.
- Writes have their own
automation_mcp_writelimit (30 per hour per member), and one member's agent can have at most 20 drafts that were never published. instructionsgain one sentence about the tools, and the server version is0.22.0.
What you can do with it, as an owner, admin or developer:
| Action | Allowed |
|---|---|
Change name, status or allowed_origins (PATCH) | yes. Disabling it stops every agent link and answers 409 claude_connection_disabled to Create my agent link |
Change toolkits, allowed_tools or auth_config_ids | no: 400 validation_error with fieldErrors.<field>: ["Managed by Connect to Claude"] |
Create a per-user URL for any user_id | yes, with Create user URL or POST /mcp_servers/{id}/user_tokens: an "all connected apps of user X" URL for your own users |
| Delete it | yes. Every URL on it stops working, agent links included. The next Create my agent link creates it again |
{
"error": {
"code": "validation_error",
"message": "Invalid request",
"details": {
"formErrors": [],
"fieldErrors": { "toolkits": ["Managed by Connect to Claude"] }
}
}
}Agent links are per-user URLs on this server, each for the user id of the member who created it. They are revoked when that member is removed from the organization or leaves it, when their role becomes Viewer, and when they delete their account (see Members and roles). URLs a developer created for other user ids on the managed server are not affected by that member's changes.
Per-user URLs
A per-user URL carries a secret token that stands for one of your users. It needs no headers, which is what Claude Desktop and Claude connectors require, and it cannot be pointed at another user.
On the server page choose Create user URL, enter the user id from your app (the user_id you
use when connecting accounts) and an expiration (never, 1 day, 30 days, 90 days or 1 year). The
URL is shown once, together with ready-to-copy client configuration. Treat it like a password:
anyone with it can run the server's tools as that user. Revoke it from the server page at any time.
A server can have 1,000 active URLs.
Claude Desktop
Claude Desktop starts local MCP servers from claude_desktop_config.json, so it reaches the remote
URL through mcp-remote, a small bridge run with npx:
{
"mcpServers": {
"toolwire-support-agent": {
"command": "npx",
"args": [
"-y",
"mcp-remote@0.15.2",
"http://localhost:4100/u/mcpt_.../mcp",
"--transport",
"http-only"
]
}
}
}- The file lives at
~/Library/Application Support/Claude/claude_desktop_config.jsonon macOS and%APPDATA%\Claude\claude_desktop_config.jsonon Windows. Restart Claude Desktop after editing it. npxneeds Node 18 or later on yourPATH.- This works with
localhost, because the bridge runs on your machine. For a plainhttpURL on another host the dashboard adds--allow-http.
Claude connectors
Claude custom connectors connect from Anthropic's cloud, so they need a public https URL; a
localhost or plain http URL does not work (use Claude Desktop instead). In claude.ai, open
Customize, then Connectors, choose + Add, then Add custom connector, give it a name,
paste the per-user URL as the server URL and choose No sign in under Authentication. Use the per-user URL here: API key mode is for clients you control, and a key in a connector would be shared with everyone who can use it.
Cursor and other clients
Clients that speak streamable HTTP take the URL directly. For Cursor, add it to your MCP
configuration (mcp.json):
{
"mcpServers": {
"toolwire-support-agent": {
"url": "https://mcp.example.com/u/mcpt_.../mcp"
}
}
}Browser access
A web app can call a per-user URL straight from the browser, for example a chat page in your
product or the MCP Inspector. Browsers send an Origin header and only read the answer when the
server allows that origin (CORS), so list the origins first: on the server page, under
Browser access, add up to 10 origins, or send allowed_origins when you create or change the
server.
- An origin is a scheme, host and optional port, exactly as the browser sends it:
https://app.example.com,https://app.example.com:8443. No path, no trailing slash, no*. - It must be
httpswith a host name. Plainhttpis accepted only forlocalhost,127.0.0.1and[::1], with any port, for local development (the MCP Inspector runs onhttp://localhost:6274). - Only per-user URLs answer browsers. API key mode (
/s/.../mcp) refuses every cross-origin request, even from a listed origin, because a project API key must never be in a browser. - No cookies are used and none are allowed (
Access-Control-Allow-Credentialsis never sent). The per-user URL is the credential.
{
"name": "Support agent",
"toolkits": ["github"],
"allowed_origins": ["https://app.example.com", "http://localhost:6274"]
}From a page on https://app.example.com:
const res = await fetch("https://mcp.example.com/u/mcpt_.../mcp", {
method: "POST",
headers: {
"Content-Type": "application/json",
Accept: "application/json, text/event-stream",
},
body: JSON.stringify({ jsonrpc: "2.0", id: 1, method: "tools/list", params: {} }),
});The browser first sends a preflight OPTIONS request. For a valid URL and a listed origin it gets
204 with Access-Control-Allow-Origin: https://app.example.com, Vary: Origin,
Access-Control-Allow-Methods: POST, the allowed request headers (content-type, accept,
mcp-protocol-version, last-event-id) and Access-Control-Max-Age: 600. The answers that follow,
including errors and 429, carry Access-Control-Allow-Origin and expose the RateLimit-* and
Retry-After headers to your script.
An origin that is not listed, or a URL that is invalid, revoked or expired, gets
403 forbidden ("Origin not allowed") without CORS headers; the two cases look the same on
purpose. Removing an origin or revoking a URL applies to the next request: a cached preflight only
saves the OPTIONS, never the check on the POST.
API key mode
For your own agents: one URL per server, the user in user_id and a project API key in the
Authorization header (X-API-Key works too). The key never goes in the URL, and it must never
ship to a browser or a desktop app. The server page shows this URL as Server URL.
The key needs the tool:execute permission, else 403 insufficient_scope. A key that is limited to
some tools sees only the server's tools it may use: the others are left out of tools/list and
answer Unknown tool. See API keys.
{
"mcpServers": {
"toolwire-support-agent": {
"url": "http://localhost:4100/s/mcp_01jd8z4k7q3m2x9v5n6b0c1t2r/mcp?user_id=user_123",
"headers": {
"Authorization": "Bearer <your api key>"
}
}
}
}Check a server with a plain initialize request:
curl -sS -X POST 'http://localhost:4100/s/mcp_01jd8z4k7q3m2x9v5n6b0c1t2r/mcp?user_id=user_123' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H 'Authorization: Bearer <your api key>' \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"curl","version":"1.0.0"}}}'Tools and results
tools/list returns the server's tools: the tool slug as the name, its display name as the title,
its description and its input schema. tools/call runs the tool as the URL's user and returns the
result as JSON text. A tool that failed, or a user without an active connection, comes back as a
tool error the model can read and relay. Results longer than 200,000 characters are cut and marked
[truncated: ...].
Hints. Every tool of the native toolkits (GitHub, Gmail, Google Calendar, Slack, Notion,
Linear, Hacker News and HTTP) carries MCP annotations, so clients can tell a safe read from a
change: readOnlyHint, and where they apply destructiveHint, idempotentHint and
openWorldHint. Remote MCP apps pass on their server's hints. Hints are advice for the client, not
a permission: use API key permissions and the server's tool list to limit what
runs.
Structured results. Tools that return one bounded object also publish an outputSchema, and
their successful results carry the object as structuredContent next to the same JSON as text.
Clients that understand it can read fields without parsing text. These are GITHUB_CREATE_ISSUE,
GITHUB_GET_REPOSITORY, GMAIL_SEND_EMAIL, GMAIL_CREATE_DRAFT, GMAIL_GET_MESSAGE,
GOOGLE_CALENDAR_CREATE_EVENT, SLACK_SEND_MESSAGE, NOTION_CREATE_PAGE, NOTION_GET_PAGE,
LINEAR_CREATE_ISSUE, LINEAR_UPDATE_ISSUE, HACKERNEWS_GET_ITEM and HACKERNEWS_GET_USER. List
and search tools stay text only. structuredContent is never cut; the text copy follows the
200,000 character limit. Errors never carry structuredContent.
{
"content": [
{
"type": "text",
"text": "{\"number\":12,\"html_url\":\"https://github.com/acme/widgets/issues/12\"}"
}
],
"structuredContent": { "number": 12, "html_url": "https://github.com/acme/widgets/issues/12" },
"isError": false
}Logs. Every call appears in Dashboard, Logs with the source mcp and the server's name.
Filter the logs by MCP server, or open Recent calls on the server page. Over the API, pass
mcp_server_id to GET /api/v1/logs/tools; each log entry has mcp_server_id (null for calls
that did not come through an MCP server).
MCP requests are rate limited per project. Over the limit, the HTTP request
gets a 429 with Retry-After; a tools/call over the tool execution limit, or over the plan's
monthly quota, comes back as a tool error such as "Rate limited: retry after 2 seconds", so the
model can tell the user. Tool calls over MCP count toward usage like
any other execution.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
404 not_found | The URL was revoked, has expired or is mistyped, or the server id is not in your key's project. Create a new URL. |
403 mcp_server_disabled | The server is disabled. Enable it on the server page. |
403 forbidden "Origin not allowed" (per-user URL) | A browser called the URL from an origin the server does not list, or the URL is invalid. Add the exact origin under Browser access (see Browser access). |
403 with a JSON-RPC body {"jsonrpc":"2.0","error":{"code":-32000,...},"id":null} | DNS rebinding protection rejected the Host header, or a browser Origin in API key mode. This body comes from the MCP library, not the usual { error: { code, message } } shape. The Host must match the hostname of MCP_PUBLIC_URL (localhost and 127.0.0.1 also pass outside production): set MCP_PUBLIC_URL to the public URL clients use, and keep the original Host when proxying. API key mode never answers browsers: call it from your backend, or use a per-user URL with browser access. |
401 unauthorized or invalid_api_key (API key mode) | The Authorization header is missing or the key is wrong or revoked. |
403 insufficient_scope (API key mode) | The key lacks tool:execute. Create a key with Agent access or tool:execute. |
400 validation_error (API key mode) | user_id is missing or invalid. |
405 | The endpoint only accepts POST. Use a client with streamable HTTP, or mcp-remote --transport http-only. |
413 payload_too_large | The request body is larger than 1 MB. |
| Tool error "No connected GitHub account for this user" or "The connected account is expired; reconnect it" | The user has no active account for that toolkit (or for the pinned auth config). Connect or reconnect it in your app, then retry. |
Unknown tool | The tool is not part of this server. Add it in the server's tools, then reload the client's tool list. |
| A new tool does not show up | Clients cache tools/list. Restart Claude Desktop or refresh the server in your client. |
Errors from an invalid URL are 404, never 401, so clients do not start an OAuth sign-in this
server does not offer.
Next steps
- Connect users before they call tools: Connect accounts.
- Call tools from code instead: TypeScript SDK.

