Send a JSON-RPC request to the MCP server
Mcp
Send a JSON-RPC request to the MCP server
Implements the MCP Streamable HTTP transport (spec 2025-03-26).
Accepts a JSON-RPC 2.0 message or batch array whose shape varies per method (initialize, tools/call, resources/list, etc.).
Include mcp-session-id to resume an existing session; omit it to start a new one.
The response may be a single JSON-RPC reply or an SSE stream depending on the request.
POST
Send a JSON-RPC request to the MCP server
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Headers
Body
application/json
Response
JSON-RPC response or SSE stream of responses.