0271. MCP dual-era 2026-07-28 with 2025-11-25 compatibility
- Status: Proposed — design default for M15.8
- Date: 2026-11-22
- Plan: M15.8
- Updates: ADR-0119, ADR-0153 protocol pin only
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:
- Modern (preferred): MCP
2026-07-28. Requests declareio.modelcontextprotocol/protocolVersion(and client capabilities) under params_meta. The server implementsserver/discover,tools/listandtools/callwithout a prior handshake. List/call results includeresultType: "complete"; list results also sendttlMsandcacheScope. Unsupported versions return-32022withsupportedandrequested. - Legacy (compat): MCP
2025-11-25viainitialize/notifications/initialized, thenping,tools/listandtools/call. The historical2024-11-05pin is dropped from the plugins. - stdio probe: dual-era clients call
server/discoverfirst. A discover result or-32022means modern; any other error means legacy — fall back toinitialize.mcp.is_unsupported_protocol_versionclassifies the modern error. Era is cached on the session for the process lifetime. - 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). - Protocol tests use in-repo fakes under
tests/fixtures/tools/(no network).
Alternatives considered
- Modern-only — rejects still-common
initializepeers; fails the compatibility goal. - Keep
2024-11-05as the legacy pin — four revisions behind and not the handshake revision the 2026 spec names for dual-era interop (2025-11-25). - Add Streamable HTTP / subscriptions / MRTR now — out of scope for the current plugins; park until a consumer needs them.