@posthog/mcp
1.6.1 · 21 Nov 2026MIT780.1k / weekRepositorynpmAtom feed
0.26.0 is the newest release of 0.11.x.
In short
3 fixed2 internal
Release note
Patch Changes
Resolve
identifyontools/list, so listings attribute to a person instead of falling back to the session id.
(2026-08-13)Capture
$mcp_intenton servers that build a fresh instance per request, where thecontextargument was previously discarded.The SDK records the agent's answer to its injected
contextparameter only when it can confirm the parameter is one it injected — a fact learned while servingtools/listand cached on the server instance. Where the next request builds a new instance, that instance never served a listing, so the intent of every call was thrown away. The trigger is instance lifetime, not statelessness: a server that is stateless at the transport but keeps one long-lived server object was never affected, and a per-request instance on MCP SDK v1 was affected just as much as on v2.Reading the argument and removing it are now separate decisions. Stripping still requires positive ownership and fails closed, because deleting an argument the application declared costs the customer their tool call. Reading costs at worst a mislabelled property, so it now happens whenever ownership cannot be resolved.
The trade-off: on such a server, a
contextparameter the application declared itself is recorded as$mcp_intent. Setcontext: falseto disable injection and capture together, or drop the property inbeforeSend. (2026-08-13)Preserve the
tools/listresponse envelope, so instrumenting a paginated tool catalogue no longer hides its later pages.The listing wrapper rebuilt the response as
{ tools }, discarding every other field the application's handler had set — on both SDK majors. Most visiblynextCursor: a client stops enumerating when the cursor is absent, so tools on later pages became undiscoverable the momentinstrument()was applied, with no error on either side. The wrapper now spreads the response and replaces onlytools, which also preserves the 2026-07-28 caching directivesttlMs/cacheScopeand result_meta.$mcp_tools_listcaptures the response as sent, envelope included. (2026-08-13)
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.