Skip to main content
The endpoint accepts one JSON-RPC message in each POST. Send Accept: application/json, text/event-stream and Content-Type: application/json. Send MCP-Protocol-Version and Mcp-Method matching the body. For tools/call, prompts/get and resources/read, also send Mcp-Name matching params.name or params.uri. Non-ASCII names use the Streamable HTTP Base64 sentinel. For a tool argument annotated with x-mcp-header, also send its Mcp-Param-* header whenever the body contains a non-null value. Streamable HTTP specification

Read the response

Each successful result carries the server identity in _meta["io.modelcontextprotocol/serverInfo"]. Use a protocol error’s code and detail to decide how to correct the request. A completed tool result has resultType: "complete". A refused call is a completed result with isError: true. Its text is <code>: <message>, and _meta["com.bijection/error"] carries the flat refusal { code, reason?, message, guard? } for a host code such as Disallowed, Forbidden, Absent or Invalid, with its public reason, or { kind: "app", code, message, data? } for one of the function’s declared refuses, with the payload it declares. Nothing the refused call wrote commits. Refusals A lost HTTP reply leaves the result unknown. To retry a mutation tool safely, send the same request with the same params._meta["com.bijection/once"]: the host answers it with the first call’s result. Retries answer once Catalog list methods return an opaque nextCursor when there are more results. Pass it back to the same method as params.cursor. Start again without a cursor if the catalog changed. For a result with resultType: "input_required", retry the same method and arguments with a fresh JSON-RPC ID, the answers under params.inputResponses, and the exact params.requestState when the server supplied it.