Skip to content

Commit 683a895

Browse files
committed
restore handlerArgs argument
1 parent 1cd1048 commit 683a895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/integrations/mcp-server/handlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function wrapMethodHandler(serverInstance: MCPServerInstance, methodName: keyof
4343
function createWrappedHandler(originalHandler: MCPHandler, methodName: keyof MCPServerInstance, handlerName: string) {
4444
return function (this: unknown, ...handlerArgs: unknown[]): unknown {
4545
try {
46-
return createErrorCapturingHandler.call(this, originalHandler, methodName, handlerName);
46+
return createErrorCapturingHandler.call(this, originalHandler, methodName, handlerName, handlerArgs);
4747
} catch (error) {
4848
DEBUG_BUILD && debug.warn('MCP handler wrapping failed:', error);
4949
return originalHandler.apply(this, handlerArgs);

0 commit comments

Comments
 (0)