Documentation

mcp-versionbridge

Lets an MCP client stuck on the pre-2026-07-28 initialize handshake talk to a 2026-07-28 MCP server, with no changes to either side.

An old MCP client sends initialize to mcp-versionbridge, which answers the handshake locally and forwards each call with MCP-Protocol-Version and clientInfo to a 2026-07-28 server.

What it does

The 2026-07-28 MCP specification removed the initialize/initialized handshake and the Mcp-Session-Id header. Older clients (2024-11-05, 2025-03-26, 2025-06-18) still negotiate one protocol version for the whole session. A 2026-07-28 server never implements initialize, so those clients cannot talk to it.

mcp-versionbridge is a small HTTP proxy. It looks like an old-style MCP server to the client, and talks to a real 2026-07-28 server behind it.

  1. The client sends initialize as usual. The bridge answers it locally — it is never forwarded — and returns an Mcp-Session-Id the client will echo back.
  2. Later requests are forwarded with MCP-Protocol-Version set and params._meta["io.modelcontextprotocol/clientInfo"] merged in, which is what a native 2026-07-28 client would send.
  3. Responses are relayed back unchanged.

Version 1 bridges an old client to a new server over HTTP. The reverse direction, stdio, and server/discover capability negotiation are not in this version.

Install

npm install mcp-versionbridge

Usage

import { startVersionBridge } from "mcp-versionbridge";

const bridge = await startVersionBridge({
  newServerUrl: "https://my-2026-07-28-server.example.com/mcp",
});

console.log(`Point your old MCP client at ${bridge.url} instead of the real server.`);

// later
await bridge.stop();

The annotated demo runs a fixture 2026-07-28 server and a real old-style handshake, and prints what crosses the wire:

npx tsx examples/demo.ts