@posthog/mcp
1.6.1 · 21 Nov 2026MIT780.1k / weekRepositorynpmAtom feed
Upgrading @posthog/mcp From 1.4.0 to 1.6.1
3 releases in betweenevery note read
Release by release
- Fixed
PostHogMCPadds the configuredserverBuildtocaptureAi()andcaptureAiImmediate()events, as it already does forcapture()andcaptureImmediate(). WithserverBuildset, an event whose properties cannot be read is now dropped by the client, as withoutserverBuild, instead of throwing from any of the four methods. (2026-11-21)
- Fixed
- New
Support FastMCP with
instrumentFastMCP(fastmcp, posthog, options). FastMCP builds a server per session (per request when stateless) behind a private factory, so this hooks the module's session class and instruments each one before it connects. FastMCP's HTTP layer drops request headers, so the adapter puts them back onextra.requestInfo.headersforidentifyand other callbacks. (2026-11-18)
- New
- New
Support Vercel's
mcp-handler. Callinstrument(server, posthog)inside thecreateMcpHandlercallback, and wrap the exported route in the newwithMcpSessionHeaderto keep one$session_idand the client's name per conversation on the2025-11-25protocol. mcp-handler streams theinitializeresponse, so the session token is minted at the fetch layer instead of inside the server. (2026-11-18)
- New
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.