MCP transports
Also called: MCP stdio, Streamable HTTP
An MCP transport specifies how protocol messages travel while preserving their meaning. The inspected 2026-07-28 revision defines stdio for a client-launched subprocess and Streamable HTTP for an HTTP endpoint. Both carry UTF-8 JSON-RPC messages, but their framing and cancellation mechanisms differ.
A local tool server can read newline-delimited messages from standard input and write replies to standard output. A remote tool call uses an HTTP POST whose response is either a JSON object or a request-scoped server-sent event stream. Older MCP revisions have different HTTP and session rules, so implementations must agree on the revision rather than copy incompatible examples.