Skip to main content
Two directions of MCP (Model Context Protocol) integration:
  1. Remote MCP servers (/v1/mcp-servers) — register an external MCP server; its tools are synced, cached, and become callable by any agent you attach the server to via mcp_server_ids.
  2. ThunderPhone as an MCP server (POST /v1/mcp) — a single endpoint that speaks MCP (JSON-RPC over streamable HTTP), exposing your org’s agents and calls as tools to any MCP client (Claude, IDEs, agent frameworks). Authenticate with your sk_live_ key.

Endpoints

{server_id} is the server’s UUID. Writes require the admin role.

MCP server object


Register a server

The create connects to the server and syncs its tools inline — if the server is unreachable or the MCP handshake fails, the request fails with 400 ({"url": "Unable to synchronize MCP tools: …"}) and nothing is saved. Returns 201 Created with the server object.

Update / delete / re-sync

PATCH accepts any subset of the create fields. Changing display_name, url, transport, or headers triggers a re-sync (same 400 on failure). When updating headers, an entry with an empty value keeps the existing stored value for that key — so you can reorder/rename without re-sending secrets. DELETE returns 204 No Content (agents attached to the server simply lose those tools). POST /v1/mcp-servers/{id}/sync-tools re-fetches the tool list and returns the updated server object — call it after deploying new tools to your MCP server.

ThunderPhone as an MCP server

POST /v1/mcp implements MCP’s JSON-RPC methods: initialize, notifications/initialized, tools/list, and tools/call. Point any MCP client at https://api.thunderphone.com/v1/mcp with your API key as a Bearer token (this endpoint accepts only sk_live_ keys — no session auth). Available tools: Example tools/call exchange:
Request
Response
Tool errors are reported in-band (isError: true); unknown JSON-RPC methods return a -32601 error with HTTP 400.

Agents

Attach servers to an agent with mcp_server_ids.

Integrations

Simple HTTP tools without an MCP server.