Create or update MCP connection
upsert_mcp_connectionAdmin only: create or update a project's external MCP connection. Pass 'id' to update an existing one (omit to create). 'token' is stored server-side and never returned; omit it to keep the current token when updating. The assistant panel calls the server's read-only tools (readOnlyHint) directly and turns every other non-destructive tool into a card the person applies; 'forAgents' also gives the project's agents its read-only tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Existing connection id to update; omit to create a new one. | |
| url | No | MCP server URL — use https (required when creating). | |
| name | No | Connection display name (required when creating). | |
| token | No | Bearer auth token. Omit to keep the current token when updating. | |
| enabled | No | Whether the connection is enabled. | |
| forAgents | No | Whether the project's agents (called by a mention, a reply or a duty) also get this server's read-only tools. Off by default. | |
| projectKey | Yes | Project key, e.g. 'UK'. |