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.
The spec states four principles. They are not normative in the MUST/SHOULD sense, but they explain why many rules are the way they are and mark the limits of what an intermediary can do "legitimately".
Complex orchestration responsibilities fall on the host; the server focuses on concrete capabilities with simple interfaces. Implication: the spec will never require a server to coordinate with other servers or to know the conversation. If your governance requires coordination, it is your host that does it.
Each server offers isolated functionality; several combine without friction thanks to a shared protocol. Direct implication for a gateway: catalogue aggregation is an intended use. The spec even acknowledges that there will be tool name collisions between servers and recommends prefixing with a server identifier.
This principle is the foundation of the deprecation of includeContext: "allServers" in sampling, and of rules such as one server's results being untrusted input for another. In the client practices document it is phrased as follows: "tool results from one server are untrusted input for another; the broker must apply the same review policy to brokered calls".
The core is minimal; everything else is negotiated (capabilities, extensions); servers and clients evolve separately; backwards compatibility is maintained. This is where the per-request capability model and the extensions field come from.
| Legitimate (intended by the spec) | Problematic (violates principle 3 or the security rules) |
|---|---|
| Aggregate and filter catalogues of tools, prompts and resources. | Inject into a call to one server data obtained from another server without consent. |
| Prefix/rename tools to disambiguate. | Rewrite tool descriptions so that the model believes they come from the original server (deceiving the host). |
| Validate arguments and results against schemas; redact PII in results. | Pass the host's token through to the downstream server (token passthrough, prohibited). |
Cache listings respecting ttlMs/cacheScope. |
Share private cache between different authorisation contexts. |
| Present elicitations to the user and return responses. | Answer elicitations automatically on the user's behalf without an authorised policy. |
1. Which principle justifies one server's results being untrusted input for another?
Isolation between servers requires the host to control and review any crossing of data.
2. According to the spec, how should clients or proxies resolve tool name collisions between servers?
The spec recommends prefixing; it warns that serverInfo.name is not unique and is no use for disambiguation.