register_mcp_server
Register an external MCP tool server for the organisation. Organisation admins only. Prefer a curated integration: call get_mcp_catalog and pass its adapter_key so the platform's read/write classification of the vendor's tools applies; omit adapter_key for a custom server. Remote URLs must be public http(s) endpoints (the SSRF policy refuses private and link-local addresses). Credential headers ride env as header-name to value entries; a sensitive-looking key (token, api_key, authorization, ...) REFUSES plaintext - the user must store the secret through the secret-slot flow and you pass the returned ${SECRET_SLOT:} sentinel as the value. Never ask the user to paste a secret into the conversation. New servers default to the read_only tier; tools become callable only after grant_mcp_tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Header-name to value entries sent on every request, e.g. {"Authorization": "${SECRET_SLOT:<id>}"}. Secret values must be ${SECRET_SLOT:<id>} or ${VAULT:<path>} markers. | |
| url | Yes | The MCP endpoint URL, e.g. 'https://mcp.sentry.dev/mcp'. Must be publicly reachable http(s). | |
| name | Yes | Unique server name (max 120 chars, no '/' or whitespace), e.g. 'sentry'. | |
| enabled | No | Whether the server is active immediately (default true). | |
| transport | No | Transport protocol. Defaults to http (streamable HTTP); sse for legacy servers. | |
| adapter_key | No | Curated adapter key from get_mcp_catalog (e.g. 'sentry', 'posthog', 'github', 'grafana', 'oneuptime'). Omit for a custom server. | |
| description | No | What this server provides (max 2048 chars). | |
| allowed_tools | No | Restrict the server to these tool names. Omit to allow the server's full inventory (grants still gate execution). The adapter's recommended_tools are a sensible starting set. | |
| permission_tier | No | read_only (default) offers only tools the platform classifies as reads; read_write also offers writes. | |
| cluster_allow_list | No | Cluster UUIDs this server's tools may be used with. Omit for organisation-wide. |