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.
Reading a specification is not reading a tutorial. This lesson sets the method the rest of the guide will use and that you should apply whenever you check something directly against the source.
Capitalised words have meaning only when they appear in capitals (RFC 8174):
| Word | Meaning | Practical reading |
|---|---|---|
| MUST / REQUIRED / SHALL | Absolute requirement. | If you do not meet it, you are not conformant. Mandatory test. |
| MUST NOT / SHALL NOT | Absolute prohibition. | Likewise. |
| SHOULD / RECOMMENDED | Do it unless you have weighty reasons, understanding the consequences. | Deviating requires documented justification. |
| SHOULD NOT / NOT RECOMMENDED | Avoid it unless there are weighty reasons. | Likewise. |
| MAY / OPTIONAL | Truly optional. | But if the other side uses it, you must interoperate or degrade gracefully. |
A good platform turns every MUST into a test and every SHOULD into a configuration option with a conformant default value.
The MCP spec marks sections as "non-normative" (for example, the handles pattern in Stateful Tools, the elicitation URL examples). JSON examples are illustrative; the schema is the truth. Notes marked "NOTE" clarify; warnings marked "WARNING" usually contain requirements.
schema.ts as the source of truthThe spec says so explicitly: the TypeScript schema of each revision (schema/<version>/schema.ts) is the source of truth; schema.json is generated from it. How to read it:
CallToolRequest, Tool, Icon).ContentBlock = TextContent | ImageContent | … discriminated by type; Result discriminated by resultType.@deprecated with a reference to a SEP and revision: Deprecated status.?) vs mandatory fields.*Params types.Do a diff between the schema.ts of 2025-11-25 and 2026-07-28: it is the fastest way to see what really changed (appendix I of the guide).
schema.json for validatingGenerate validators from schema.json for each version you support and validate every incoming message against the expected type (JSONRPCRequest, then the method's *Params). The conformance suite does exactly this ("wire-schema checks").
seps/index on the website or the seps/ directory of the repo.draft changelog: when it lands.claude-3-sonnet in sampling hints) as a requirement.latest page believing it describes what is in production._meta.protocolVersion (or the version negotiated in initialize for legacy).1. When do the words must and should have normative meaning in the spec?
RFC 8174: only in capitals.
2. What is the source of truth for MCP messages?
The spec declares schema.ts as the source of truth; schema.json is generated from it.
3. What does a SHOULD imply for an implementation?
SHOULD admits justified exceptions; MAY is what is truly optional.