What is an MCP Transport?
The communication layer between MCP clients and servers, currently supporting stdio (local process) and Streamable HTTP (remote services), which determines how JSON-RPC messages are exchanged.
WHY IT MATTERS
MCP is transport-agnostic — the protocol defines the messages, not how they're delivered. Stdio pipes JSON-RPC over standard input/output for local processes. Streamable HTTP sends them over HTTP for remote servers.
The transport choice has security implications. Stdio runs locally with the agent's permissions. HTTP traverses networks, enabling remote tool access but also man-in-the-middle risks. A transport-aware proxy can enforce policies regardless of how the connection is made.
HOW POLICYLAYER USES THIS
Intercept operates at the transport layer, intercepting JSON-RPC messages on both stdio and HTTP transports without requiring changes to the client or server.