0.10.9
Patch Changes
-
#4461
f457521Thanks @gesh! - Wrap request handlers registered with a method string, and stop breaking three-argument registrations. MCP TypeScript SDK v2 callssetRequestHandler('tools/call', handler)where v1 passed a Zod schema, soinstrument()could not name those registrations and left them unwrapped — a handler bound afterinstrument()silently replaced the analytics wrapper, and no$mcp_tool_callor$mcp_tools_listwas captured. Frameworks that attach handlers post-construction, such as@rekog/mcp-nest, do exactly this on every request.The patched
setRequestHandlernow also forwards every argument it is given. v2's three-argument form for custom methods —setRequestHandler(method, { params, result }, handler)— previously lost its handler and threwsetRequestHandler: handler is required, taking down the host server rather than just instrumentation. (2026-08-07) -
#4450
69e47bdThanks @gesh! - Register the synthetictools/callfallback by writing into the server's handler map instead of callingsetRequestHandler. Instrumenting a low-levelServerthat never declared atoolscapability no longer fails withServer does not support toolsand leaves instrumentation half-applied — it now instruments cleanly, and answers a call for a tool no dispatcher claims withUnknown tool: <name>. This also removes the last runtime@modelcontextprotocol/sdkimport from the published bundle; the SDK is now referenced only as a type.
(2026-08-07)