Protocol and errors

For people implementing an MCP client. You do not need this to connect an AI app.

Transport

Streamable HTTP. POST JSON-RPC 2.0 to /mcp and the response comes back on the same connection.

SSE (Server-Sent Events) is not supported. Clients that assume streaming should be configured to use plain POST.

Server info

initialize returns:

{
  "protocolVersion": "2025-06-18",
  "capabilities": {
    "tools": {
      "listChanged": false
    }
  },
  "serverInfo": {
    "name": "clone-plus-mcp",
    "version": "1.0.0",
    "title": "Clone+ Knowledge Base"
  }
}
There is no session. You may skip initialize and go straight to tools/list or tools/call. No session ID to track.

Implemented methods

MethodDescription
initializeReturns server info and capabilities (optional)
notifications/initializedAccepted, returns nothing
pingReturns {}
tools/listLists the available tools
tools/callRuns a tool
tools/list is filtered by the token's scope. With a read-only token the write tools do not appear at all. clone_edit_memo, which changes existing notes, appears only for tokens with the edit scope. Calling an unlisted tool directly with tools/call is refused.

JSON-RPC error codes

Standard codes plus the conventional MCP extensions.

CodeMeaning
-32600Invalid request
-32601Method not found
-32602Invalid params
-32603Internal error
-32002Forbidden
-32004Rate limit exceeded (HTTP 429)

HTTP status codes

StatusWhen
200Success — and also permission denied (see below)
204A notification (a request with no id) was accepted
401Authentication failed; sent with a WWW-Authenticate header
405Method other than GET or POST
415Content-Type was not application/json
429Per-minute request limit exceeded (see below)

Permission denied returns 200

Calling a write tool with a read-only token returns HTTP 200 with -32002 in the JSON-RPC error. Looking only at the HTTP status will read as success. Note also that 403 and 404 are never returned (outside /docs/).

Request limit

Past the per-minute request limit, every request stops, including reads. The HTTP status is 429 and the body is a JSON-RPC error (-32004). The wait in seconds is in the Retry-After header and in error.data.retryAfterSeconds.

{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32004,
    "message": "Rate limit exceeded (30 requests/minute). This limit covers every request, including reads. Retry in 42 seconds.",
    "data": {
      "retryAfterSeconds": 42,
      "requestsPerMinute": 30
    }
  }
}

Write limits are not JSON-RPC errors

Hitting a write limit returns a tool result with isError: true over HTTP 200. Reads keep working. The numbers are at /docs/limits.