Packages

@posthog/mcp

1.6.1 · 21 Nov 2026MIT780.1k / weekRepositorynpmAtom feed

Your version

0.11.5

13 Aug 2026Where it was published

0.26.0 is the newest release of 0.11.x.

In short

3 fixed2 internal

Release note

Patch Changes

  • Resolve identify on tools/list, so listings attribute to a person instead of falling back to the session id.
    (2026-08-13)

  • Capture $mcp_intent on servers that build a fresh instance per request, where the context argument was previously discarded.

    The SDK records the agent's answer to its injected context parameter only when it can confirm the parameter is one it injected — a fact learned while serving tools/list and 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 context parameter the application declared itself is recorded as $mcp_intent. Set context: false to disable injection and capture together, or drop the property in beforeSend. (2026-08-13)

  • Preserve the tools/list response 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 visibly nextCursor: a client stops enumerating when the cursor is absent, so tools on later pages became undiscoverable the moment instrument() was applied, with no error on either side. The wrapper now spreads the response and replaces only tools, which also preserves the 2026-07-28 caching directives ttlMs / cacheScope and result _meta. $mcp_tools_list captures 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.