On this page

0271. MCP dual-era 2026-07-28 with 2025-11-25 compatibility

Context

plugins/mcp and plugins/mcp_server were pinned to MCP revision 2024-11-05. The current specification revision is 2026-07-28, which removes the initialize / notifications/initialized handshake: every request carries protocol version and client capabilities in _meta, servers must implement server/discover, and version mismatches use UnsupportedProtocolVersionError (-32022). Legacy peers through 2025-11-25 still require initialize. Real clients and servers will increasingly speak the modern revision; staying on 2024-11-05 breaks interop. The plugins already cover tools, notifications, errors and stdio framing only — not HTTP, subscriptions, MRTR or extensions.

Decision

Both plugins are dual-era:

  1. Modern (preferred): MCP 2026-07-28. Requests declare io.modelcontextprotocol/protocolVersion (and client capabilities) under params _meta. The server implements server/discover, tools/list and tools/call without a prior handshake. List/call results include resultType: "complete"; list results also send ttlMs and cacheScope. Unsupported versions return -32022 with supported and requested.
  2. Legacy (compat): MCP 2025-11-25 via initialize / notifications/initialized, then ping, tools/list and tools/call. The historical 2024-11-05 pin is dropped from the plugins.
  3. stdio probe: dual-era clients call server/discover first. A discover result or -32022 means modern; any other error means legacy — fall back to initialize. mcp.is_unsupported_protocol_version classifies the modern error. Era is cached on the session for the process lifetime.
  4. Scope stays the existing surface (tools, cancel notification, JSON-RPC errors, stdio NDJSON). No new feature areas unless the revision requires them for that surface (server/discover, per-request _meta, resultType, -32022).
  5. Protocol tests use in-repo fakes under tests/fixtures/tools/ (no network).

Alternatives considered