part…
Building governance for MCP?
The gateway applies what the guide teaches: policies on discovery, invocation and authorisation.
The gateway applies what the guide teaches: policies on discovery, invocation and authorisation.
MCP is transport-agnostic: it can run over any channel with bidirectional message exchange. The spec allows custom transports under three conditions.
_meta per request, resultType, the MRTR and listen patterns, cancellation rules).The stdio page says it explicitly: the "one JSON-RPC line per message over a reliable bidirectional byte stream" format works unchanged over Unix domain sockets, TCP or similar channels. Transports built this way SHOULD reuse the stdio framing and message rules; they only need equivalents for launching, stderr, shutdown on stream closure and restart.
| Aspect | Question | Reference |
|---|---|---|
| Framing | Lines? Length-prefixed? WebSocket messages? | stdio (lines) |
| Multiplexing | One shared channel (like stdio) or one per request (like HTTP)? It determines how cancellation works. | Cancellation (5.4) |
| Out-of-band metadata | Is there an equivalent to the Mcp-* headers? If so, define header-body validation. |
Streamable HTTP (6.2) |
| Cancellation | Notification or channel closure. | 5.4 |
| Authentication | OAuth does not apply outside HTTP: define your own following the channel's practices. | 3.7 |
| Era | How is a legacy peer detected? | 4.4 |
_meta travels, and the fallback.1. What must custom transports preserve?
The spec requires preserving the format and the requirements; the headers are HTTP-specific.
2. Over which channels does the spec say the stdio framing works unchanged?
Any reliable bidirectional byte stream.