Skip to content

@posthog/mcp@0.11.5

Choose a tag to compare

@github-actions github-actions released this 13 Aug 13:34
· 9 commits to main since this release
Immutable release. Only release title and notes can be modified.
5c5d26c

0.11.5

Patch Changes

  • #4504 48b1a0c Thanks @gesh! - Resolve identify on tools/list, so listings attribute to a person instead of falling back to the session id.
    (2026-08-13)

  • #4502 bc2ec32 Thanks @gesh! - 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)

  • #4514 245afe6 Thanks @gesh! - 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)

  • Updated dependencies [c9086de]:

    • @posthog/core@1.48.0
    • posthog-node@5.49.0