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 main page of the specification contains a "Security and Trust & Safety" section that sets out the principles the rest of the rules develop. They are not MUSTs in the strict sense, but the spec says that "all implementors must address them carefully", and hosts (including your gateway) are the ones who have to make them real.
Although the protocol cannot enforce these principles, implementors SHOULD: build robust consent and authorization flows; document the security implications; implement access controls and data protection; follow good practices; consider privacy in the design.
| Principle | Derived rules in the spec |
|---|---|
| Consent | Human in the loop for tools and sampling; consent before opening elicitation URLs; consent showing the full command before launching local servers (SEP-1024); per-client consent in OAuth proxies. |
| Privacy | cacheScope: private; no includeContext: allServers; isolation between servers; no PII in logs; no secrets via elicitation form. |
| Tools | Untrusted annotations; validate inputs and outputs; show inputs before sending; rate limiting; $ref without network. |
1. How should a tool's behaviour annotations be treated?
It is one of the spec's explicit principles.
2. Who must obtain consent before invoking a tool?
The host is responsible for consent and control.