Get an API key
MCP concepts

Protocol revision

Five revisions are spoken, newest first. The newest both sides know is the one used — and announcing one you do not speak is worse than announcing an old one.

5 revisionsnewest in commonstateless core
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

import { MCP_PROTOCOL_VERSION } from "iagenify";

MCP_PROTOCOL_VERSION;   // "2026-07-28" — the one this client prefers
from iagenify import MCP_PROTOCOL_VERSION

MCP_PROTOCOL_VERSION   # "2026-07-28" — the one this client prefers

The order

2026-07-28, 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05. The handshake announces them and settles on the newest the server also knows; with none in common it raises mcp_protocol_unsupported instead of guessing.

Why the list is the real list

A claim you cannot back is caught by the good servers and hidden by the rest

A server implementing the newest revision properly refuses a handshake that claims it and omits what it requires. An older one answers with its own revision instead, which looks like success. The second case is the dangerous one, because nothing says anything is wrong.

The modern core is stateless

That is why there is nothing to hold open and nothing to resume: a call is a request and a response. A process that restarts loses no connection, which matters when the thing carrying the package is a server that redeploys.

Reading what was agreed

const servers = await api.mcp.list();
servers.map((s) => `${s.name}: ${s.protocolVersion}`);

// Re-negotiate and record it again
await api.mcp.get("example", { refresh: true });
servers = api.mcp.list()
[f"{s['name']}: {s['protocolVersion']}" for s in servers]

# Re-negotiate and record it again
api.mcp.get("example", refresh=True)

The one fallback

A modern server that refuses the modern discovery is retried once with the older handshake — and only on a protocol-level refusal. A 401, a redirect, a silence or a timeout already name what to fix.