Expand description
MCP Streamable HTTP transport (the 2025-03-26 transport that superseded the older HTTP+SSE pair).
POST /mcp— the client sends one JSON-RPC message (or a batch array). The reply is delivered asapplication/jsonby default, or as a one-shottext/event-stream(SSE) event when the clientAccepts it. A body of only notifications gets202 Acceptedwith no content.GET /mcp— opens a standalone server→client SSE stream. This server has no server-initiated messages, so the stream simply stays open with keep-alives; it exists for spec compliance.
/ is also wired to the same handlers for convenience. The JSON-RPC
semantics are identical to the stdio and TCP transports — only framing
differs (see crate::server::dispatch_http_body).