You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ClientSession.Ping omits the SEP-2575 per-request _meta envelope #1249
Every ClientSession request method wraps its params with injectRequestMeta (protocol version, client info, client capabilities) when the session negotiated protocol 2026-07-28, except ClientSession.Ping, which sends the params as given:
Servers that enforce the envelope on the new protocol reject the ping. Observed against Notion's hosted MCP server (https://mcp.notion.com/mcp):
Invalid params: the MCP-Protocol-Version header names protocol revision 2026-07-28, but the request is missing the required per-request envelope key(s): _meta: Bad Request
The go-sdk server itself also rejects such a ping once _meta carries a protocol version without clientCapabilities (missing or invalid _meta field "io.modelcontextprotocol/clientCapabilities"), so a caller cannot fully work around it without reconstructing the private clientCapabilitiesV2 shape.
Expected:Ping injects the same envelope as the other client methods when usesNewProtocol() is true.
Workaround used: pass PingParams with _meta set to protocol version, client info, and an explicitly empty ClientCapabilities configured on the client.
Activity
guglielmo-san commentedon Sep 8, 2026
Hi @jegork , the Ping is not more part of the protocol schema for version 20260728
https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/schema/2026-07-28/schema.ts
mcp: fail Ping fast on 2026-07-28 sessions (#1378)