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 does not use semver. It uses string identifiers in YYYY-MM-DD format that indicate the date of the last backwards-incompatible change. Understanding this avoids a common mistake: believing that every publication of the spec changes the version.
specification/draft).2026-07-28.2024-11-05, 2025-03-26, 2025-06-18, 2025-11-25).There is no handshake. Every request declares the version in _meta:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list",
"params": {
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}
In Streamable HTTP the same value also travels in the MCP-Protocol-Version header, and both MUST match (otherwise, 400 + HeaderMismatch).
The server accepts or rejects each request independently. If it does not implement the requested version (because it does not know it or because it has decided not to support it), it MUST respond with UnsupportedProtocolVersionError:
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32022,
"message": "Unsupported protocol version",
"data": { "supported": ["2026-07-28", "2025-11-25"], "requested": "1900-01-01" }
}
}
The client SHOULD choose a version from supported and retry, or show an error to the user if there is no intersection. Clients and servers MAY support several versions at once.
server/discover (mandatory on the server, optional for the client) returns supportedVersions for those who prefer to choose a version before the first useful request.
In 2025-11-25 and earlier, the client sent in initialize the latest version it supported; the server replied with the same one if it supported it, or with its own latest; if the client did not support that one, it SHOULD disconnect. The version remained fixed for the whole session and, over HTTP, was repeated in MCP-Protocol-Version on every subsequent request (if missing, the server assumed 2025-03-26).
server/discover.UnsupportedProtocolVersionError (-32022) listing the supported versions when they do not implement the requested one; over HTTP with status 400.MCP-Protocol-Version MUST be present and MUST match _meta.2025-06-18 (which did not know the header) MAY treat the absence of the header as 2025-03-26; one that does not serve them MUST reject the request.2026-07-28 to enable certain functions (routing headers, caching).supported list; it changes rarely and avoids retries.1. What does the date in the MCP version identifier indicate?
Compatible changes do not increment the version.
2. In 2026-07-28, when is the protocol version negotiated?
There is no handshake; every request carries its version in _meta and the server accepts or rejects it individually.
3. Which error code does a modern server return for an unsupported version?
-32022 is UnsupportedProtocolVersion, with data.supported and data.requested.