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.
Before designing the platform you have to choose where it sits relative to the MCP traffic. Each topology places you in different roles of the spec and, therefore, under different sets of MUSTs.
Host ↔ server traffic passes through you. Towards the hosts you are a server; towards the servers you are a host with N clients.
server/discover, listing invariants, validation of Mcp-* headers, ttlMs/cacheScope, OAuth resource server (PRM, audience validation, challenges)._meta, era detection, x-mcp-header validation, timeouts and cancellation, PKCE, resource, iss, secure token storage.What you cannot do: pass tokens through; mix context between servers; answer elicitations on the user's behalf without an authorised policy; relax a MUST downstream (e.g. accept network $refs).
You do not touch the traffic; you manage the inventory, policies, approvals and configuration that hosts consume (a private registry conforming to the OpenAPI, Server Cards, distribution of client configurations, inventory of configurations on endpoints).
You integrate into the host or next to the server as a validator/mutator of operations (what the Interceptors WG is standardising).
You build the agent or application that uses MCP and govern from within.
| Criterion | Gateway | Control plane | Interceptor | Own host |
|---|---|---|---|---|
| Per-request policy | Yes | No | Yes | Yes |
| Coverage of third-party hosts | Yes (if configured to go through you) | Partial (configuration) | Depends on the host | No |
| Era compatibility | You resolve it | Not applicable | Not applicable | You resolve it |
| State | Minimal (except legacy sessions) | Low | Minimal | Depends |
| Risk of becoming a target | High | Medium | Medium | Medium |
Combine (a) + (b): a gateway for per-request policy and era compatibility, plus a control plane that feeds it (inventory, approvals, private registry) and governs what does not pass through the gateway (local stdio servers on users' machines). Design the gateway's validators/mutators with the Interceptors WG interface so they can be exposed as (c) when it matures.
1. A transparent gateway, towards the servers it governs, is…
It inherits consent, isolation and client obligations.
2. Which topology cannot enforce policy per request?
It only governs configuration and inventory.