Repository navigation
@posthog/mcp@1.7.1
1.7.1
Patch Changes
-
#5740
11b76dcThanks @lucasheriques! - A stateless HTTP request that carries no session (no client conversation id, conversation handle, transport session or session token) now gets a fresh$session_idof its own, as the sdk-specs MCP analytics spec requires. Before, a shared HTTP instance with conversation anchoring off grouped every client's requests under the instance's id.A custom event from
analytics.capture()now carries the session and identity of the request it was captured in (a tool call, a tool listing or a resource request), even when requests overlap. This usesAsyncLocalStorage. On a runtime without it, such as Cloudflare Workers without thenodejs_compatornodejs_alsflag, custom events are sent with a session of their own and no identity, and the SDK logs one warning. Before, they could take another caller's. (2026-11-25) -
#5741
8110b53Thanks @lucasheriques! - An HTTP request that carries no session no longer takes$mcp_client_name,$mcp_client_versionor$mcp_protocol_versionfrom aninitializehandshake or another request's session token on the same instance. On a shared HTTP instance, those name whichever client came before, so such a request is now unidentified unless it identifies itself, as the sdk-specs MCP analytics spec requires.
(2026-11-25)