Topic 5 of 5 · 5 min read
Protocol versions, server discovery and deprecation
Goal: Read a client and server's supported protocol versions and decide whether they can talk, which features are available and what breaks.
MCP versions are dates such as 2026-07-28, marking when backwards-incompatible changes were last made, and in the 2026-07-28 revision every request carries its own version, so there is no handshake to negotiate it.
Check yourself · 1 of 3
What does a version string such as 2026-07-28 in MCP indicate?
Why it matters
A client from 2025 and a server from 2026 can both be correct and still fail to talk. Knowing the two eras tells you why, and what to do.
Two eras
Legacy (2025-11-25 and earlier). A connection starts with an initialize request. Client and server agree on a version and capabilities, then the client sends notifications/initialized. Streamable HTTP servers could hand out a session id in the Mcp-Session-Id header.
Modern (2026-07-28). The changelog removes the initialize handshake and protocol-level sessions. Each request carries its protocol version and client capabilities in _meta:
{
"jsonrpc": "2.0",
"id": 7,
"method": "tools/list",
"params": {
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}
A server that does not support the version answers with UnsupportedProtocolVersionError, listing what it does support, and the client retries. Servers must also implement server/discover, which returns supported versions, capabilities and identity in one call. Clients may call it first to pick a version; it is optional.
Can they talk?
| Client | Server | Result |
|---|---|---|
| Modern | Modern | Works |
| Modern | Legacy | Fails; on stdio send server/discover first to fail clearly |
| Dual-era | Legacy | Works; falls back to initialize |
| Legacy | Modern | Fails; the server rejects initialize |
| Legacy | Dual-era | Works |
A dual-era server answers initialize for old clients and per-request metadata for new ones.
Deprecation
Revisions may be Draft, Current or Final. Individual features can be marked Deprecated: they stay in the specification for at least twelve months before they become eligible for removal, or at least ninety days under the expedited-removal exception. In the 2026-07-28 registry, roots, sampling and logging are deprecated, with earliest removal in the first revision released on or after 2027-07-28.
Before and after
Weak: "Our client says 2025-11-25 and the server says 2026-07-28, so we negotiate down." There is nothing to negotiate: a legacy-only client cannot use a modern-only server.
Better: check which era each side supports. Upgrade the client or run the server in dual-era mode.
What goes wrong
- Treating the date as a release number. It marks the last breaking change, not the publication day.
- Relying on a session id. Modern servers use explicit handles passed as tool arguments.
- Building on deprecated features. New code should follow the migration path in the registry.
Examples
Diagnosing a failed connection
A tool started in 2025 sends initialize with version 2025-11-25 to a server that supports only 2026-07-28. The server rejects initialize as an unknown method. This is the Legacy-to-Modern case: there is no fall-forward, so the fix is to upgrade the client or put a dual-era server in front.
Reading a discover result
{
"supportedVersions": ["2026-07-28", "2025-11-25"],
"capabilities": { "tools": {} },
"_meta": {
"io.modelcontextprotocol/serverInfo": { "name": "orders", "version": "3.2.0" }
}
}
This server is dual-era. A modern client uses 2026-07-28; a client that can only do 2025-11-25 may still connect and use the handshake.
Key points
- Versions are dates marking the last backwards-incompatible change, and a revision can be Draft, Current or Final.
- In 2026-07-28 there is no initialize handshake: every request carries protocolVersion and clientCapabilities in _meta.
- server/discover is mandatory for servers and optional for clients, who may call it to pick a version up front.
- A legacy-only client cannot talk to a modern-only server, and a dual-era server bridges both.
- Deprecated features stay at least twelve months before they can be removed, so plan migration early.
Common mistakes
- Assuming a client and server can always negotiate down to an older version.
- Expecting Mcp-Session-Id or an initialize call to exist on a 2026-07-28 server.
- Reading the revision date as the day it was published instead of the last breaking change.
- Adding new code on roots, sampling or logging after they were deprecated.
Check yourself · 2 of 3
A client built for the 2025-11-25 handshake connects to a server that supports only 2026-07-28. What happens?
Check yourself · 3 of 3
A sampling feature was deprecated in the 2026-07-28 revision. What is the earliest it can be removed?
Practice items, not counted towards your mastery.
Start here
- MCP architecture overview (opens in a new tab)DocsFree
The official definition of hosts, clients, servers, the data layer and the transport layer.
- Model Context Protocol specification (latest) (opens in a new tab)StandardFree
The normative text: what clients and servers MUST and SHOULD do.
- MCP specification changelog, 2026-07-28 revision (opens in a new tab)DocsFree
Lists what changed since 2025-11-25: no handshake, no sessions, server/discover, subscriptions/listen.
More for this topic
- MCP versioning (opens in a new tab)DocsFree
Date-based revisions, per-request version declaration and the twelve-month deprecation window.
- MCP deprecated features registry (opens in a new tab)StandardFree
Which features are deprecated, their migration paths and earliest removal dates.