Skip to content
mentoor

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?

Choose one answer

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?

Choose one answer

Check yourself · 3 of 3

A sampling feature was deprecated in the 2026-07-28 revision. What is the earliest it can be removed?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic