releases.shpreview

$identify published at most once per session, not before every tool call

@posthog/mcp@0.9.1

July 15, 2026PostHog JSView original ↗
1 fixThis release1 fixBug fixesAI-tallied from the release notes
From the original release noteView original ↗

0.9.1

Patch Changes

  • #4144 3c8e17e Thanks @gesh! - fix(mcp): publish $identify at most once per session instead of before every tool call

    On stateless / multi-pod deployments the SDK rebuilds its per-server identity cache on every request, so the dedupe check saw an empty cache each time and emitted a standalone $identify before every $mcp_tool_call. The SDK now publishes $identify at most once per session — at initialize, when a long-lived server first sees the identity, or when the identity materially changes. Every event still carries distinct_id/$set, so no person data is lost when a standalone $identify is suppressed. (2026-07-15)

Fetched July 15, 2026