0.11.5
Patch Changes
-
#4504
48b1a0cThanks @gesh! - Resolveidentifyontools/list, so listings attribute to a person instead of falling back to the session id.
(2026-08-13) -
#4502
bc2ec32Thanks @gesh! - 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) -
#4514
245afe6Thanks @gesh! - Preserve thetools/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) -
Updated dependencies [
c9086de]:- @posthog/core@1.48.0
- posthog-node@5.49.0