0.2.0
Minor Changes
- #3781
b732ecbThanks @lucasheriques! - AddPostHogMCP, 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)