MCP protocol reference

Initialize, discover tools, call a tool and interpret results.

HTTP and JSON-RPC

OAuth clients send JSON-RPC 2.0 requests to POST https://mcp.specifywork.com/api/mcp with Content-Type: application/json and Authorization: Bearer followed by the OAuth access token obtained through sign-in. The MCP configuration needs only the server URL; the client handles the authorization header after you allow access. Do not put tokens in browser code.

The endpoint is stateless. initialize, ping, tools/list, tool calls and notifications all require a current credential. Notifications have no JSON-RPC response body.

Discover the available tools

Use tools/list after initialization. The tool articles below and the API reference read the same tool definitions as the endpoint, including exact required fields and additionalProperties rules.

Synthetic example ยท JSON
{
  "jsonrpc": "2.0",
  "id": "example_tools",
  "method": "tools/list",
  "params": {}
}

Check both protocol and tool outcomes

A JSON-RPC error describes a protocol or transport failure. A successful protocol response may contain a tool result with isError: true. Inspect both before treating work as completed.

Send x-correlation-id to correlate a request across the service boundary. The server generates one when it is absent. Correlation IDs identify a request; they do not make a repeated mutation idempotent.