@posthog/mcp
1.6.1 · 21 Nov 2026MIT780.1k / weekRepositorynpmAtom feed
0.26.0 is the newest release of 0.2.x.
In short
1 new
Release note
Minor Changes
Add
PostHogMCP, aposthog-nodeclient subclass with first-class MCP analytics for servers that have noServer/McpServerto wrap (e.g. custom hono/HTTP dispatchers). It extendsPostHog— socapture,identify,flush,shutdown, and feature flags all work unchanged — and addscaptureToolCall/captureInitialize, which build the canonical$mcp_*events and run them through the same sanitize → truncate →$exceptionfan-out pipeline asinstrument()before handing them to the inheritedcapture()(so the client's ownbeforeSendapplies). The caller passesdistinctId/sessionId/groups/propertiesper call.$session_idis now omitted from events when no session is supplied (previously always set), so stateless captures don't bucket into a non-existent Session Replay session.
(2026-06-11)
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.