Versioning and Compatibility changedspecification/2026-07-28/basic/versioning
Nearest release: v2.1.305, published under an hour before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 20 Oct 2026 20:02 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 24 Oct 2026 11:07 UTC.
Upstream edited
Recorded here
Lines+12added
Lines−12removed
From line
37
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits7to this page, all time
The whole hunk
from line 37, old and new numbered
/
from line 37
3737## Protocol Version Negotiation
3838
3939Every request declares the protocol version it is using in its
40[`_meta`](/specification/2026-07-28/basic/index#meta) field. On HTTP, this is
40[`_meta`](https://modelcontextprotocol.io/specification/2026-07-28/basic/index#meta) field. On HTTP, this is
4141also carried in the
42[`MCP-Protocol-Version` header](/specification/2026-07-28/basic/transports/streamable-http#protocol-version-header).
42[`MCP-Protocol-Version` header](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http#protocol-version-header).
4343
4444If the server does not implement the requested version (whether the version
4545is unknown to the server, or is a known version the server has chosen not to
4646support), it **MUST** respond with an
47[`UnsupportedProtocolVersionError`](/specification/2026-07-28/schema#unsupportedprotocolversionerror)
47[`UnsupportedProtocolVersionError`](https://modelcontextprotocol.io/specification/2026-07-28/schema#unsupportedprotocolversionerror)
4848listing the versions it does support:
4949
5050```json theme={null}
from line 67
6767version exists.
6868
6969Servers **MUST** implement
70[`server/discover`](/specification/2026-07-28/server/discover). Clients
70[`server/discover`](https://modelcontextprotocol.io/specification/2026-07-28/server/discover). Clients
7171**MAY** call it before sending any other requests to learn the server's
7272supported versions up front, but are not required to: a client is free to
7373invoke any RPC inline and handle `UnsupportedProtocolVersionError` if its
from line 76
7676## Extension Negotiation
7777
7878Clients and servers can negotiate support for optional
79[extensions](/docs/extensions/overview.md) beyond the core protocol. Extensions
79[extensions](https://modelcontextprotocol.io/docs/extensions/overview.md) beyond the core protocol. Extensions
8080are advertised in the `extensions` field of capabilities, which is a map of
8181extension identifiers to per-extension settings objects. Extension identifiers
82**MUST** follow the [`_meta` key naming rules](/specification/2026-07-28/basic/index#meta),
82**MUST** follow the [`_meta` key naming rules](https://modelcontextprotocol.io/specification/2026-07-28/basic/index#meta),
8383with a mandatory prefix.
8484
8585The following is an example of a client that advertises the
86[MCP Apps extension](/extensions/apps/overview.md) identified as `io.modelcontextprotocol/ui`:
86[MCP Apps extension](https://modelcontextprotocol.io/extensions/apps/overview.md) identified as `io.modelcontextprotocol/ui`:
8787
8888```json theme={null}
8989{
from line 98
9898}
9999```
100100
101An example of [Tasks extension](/extensions/tasks/overview.md) identified as `io.modelcontextprotocol/tasks`:
101An example of [Tasks extension](https://modelcontextprotocol.io/extensions/tasks/overview.md) identified as `io.modelcontextprotocol/tasks`:
102102
103103```json theme={null}
104104{
from line 129
129129server's era with transport-specific mechanics, specified in the binding
130130pages:
131131
132* [stdio](/specification/2026-07-28/basic/transports/stdio.md#backward-compatibility):
132* [stdio](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/stdio.md#backward-compatibility):
133133 probe with `server/discover` and fall back on any error that is not a
134134 recognized modern error.
135* [Streamable HTTP](/specification/2026-07-28/basic/transports/streamable-http.md#backward-compatibility):
135* [Streamable HTTP](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http.md#backward-compatibility):
136136 attempt a modern request and inspect the body of a `400 Bad Request`
137137 before falling back.
138138
139139In both cases, a recognized modern JSON-RPC error (such as
140[`UnsupportedProtocolVersionError`](/specification/2026-07-28/schema#unsupportedprotocolversionerror))
140[`UnsupportedProtocolVersionError`](https://modelcontextprotocol.io/specification/2026-07-28/schema#unsupportedprotocolversionerror))
141141identifies a modern server: the client retries with a supported version
142142rather than falling back. Anything else identifies a legacy server.
143143
from line 163
163163| Modern | Legacy | Fails. The server may reject the request with an implementation-defined error, stay silent, or even process an era-ambiguous method under legacy semantics. On stdio, clients **SHOULD** send `server/discover` first to fail deterministically; the client then surfaces an actionable error to the user. |
164164| Dual-era | Modern | Works. The stdio probe returns a `DiscoverResult` (or `UnsupportedProtocolVersionError`); on HTTP, the first modern request succeeds or returns a modern error. The client stays modern. |
165165| Dual-era | Legacy | Works. stdio: the probe returns a non-modern error or times out, and the client falls back to `initialize`. HTTP: the modern request returns a `4xx` without a recognized modern error body, and the client falls back to `initialize` (and possibly further to the deprecated HTTP+SSE transport). |
166| Legacy | Modern | Fails. stdio: the server rejects `initialize` with a JSON-RPC error; the exact code is implementation-defined (`initialize` is an unknown method and the request also lacks the required `_meta` fields). HTTP: the request is missing the required headers and is rejected per [server validation](/specification/2026-07-28/basic/transports/streamable-http.md#server-validation) with `400 Bad Request` (a client on the deprecated HTTP+SSE transport fails at its opening `GET` instead). Legacy clients have no fall-forward mechanism. |
166| Legacy | Modern | Fails. stdio: the server rejects `initialize` with a JSON-RPC error; the exact code is implementation-defined (`initialize` is an unknown method and the request also lacks the required `_meta` fields). HTTP: the request is missing the required headers and is rejected per [server validation](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http.md#server-validation) with `400 Bad Request` (a client on the deprecated HTTP+SSE transport fails at its opening `GET` instead). Legacy clients have no fall-forward mechanism. |
167167| Legacy | Dual-era | Works. The server answers `initialize` and serves the client according to the negotiated legacy revision. |
168168| Legacy | Legacy | Works according to the legacy revision; out of scope for this document. |
169169
No line in this hunk matches that.