1.2.1
Patch Changes
- #5672
22f3f71Thanks @lucasheriques! - fix(mcp): keep the thrown value on high-levelMcpServertool calls, so$mcp_error_typeand$mcp_error_statusreflect what the tool threw. This covers MCP SDK v2, a thrown value that is not anError, and servers built per request that share tool functions. For a thrown non-Error,$mcp_error_messageand error grouping now describe the thrown value (for example'UpstreamError' captured as exception with message: 'bad') instead of[object Object].$mcp_error_typeis now redacted like the message, including anerrorTypepassed tocaptureToolCall. An error whose getters throw while it is captured is still recorded: a tool call falls back to the tool result, and other events recordUnknown errorinstead of being dropped.
(2026-11-12) - Updated dependencies [
22f3f71]:- @posthog/core@1.67.2