0.10.0
Minor Changes
-
#4210
e732595Thanks @gesh! - feat(mcp): capture the negotiated MCP protocol version as$mcp_protocol_versionThe SDK now stamps
$mcp_protocol_version— the MCP spec version negotiated atinitialize(read off the server's initialize response) — on the$mcp_initializeevent and on every subsequent event for the session (tool calls, listings, and the$exceptionsibling). It's persisted in per-server session info and, on stateless / multi-pod deployments, recovered on other pods from the session token, which now carries the client's requested version in a newpvfield. Use it to track MCP spec-revision adoption and to break event metrics (error rate, latency) down by spec version.SessionTokenPayloadgains an optionalprotocolVersion, andPostHogMCP.captureInitializeaccepts an optionalprotocolVersion. (2026-07-21) (2026-07-22)