1 parent b7e15c1 commit 1f7fe6cCopy full SHA for 1f7fe6c
1 file changed
src/mcp/client.ts
@@ -613,12 +613,13 @@ async function finishClient(
613
return envelope;
614
},
615
async callBlocks(toolName, args, signal) {
616
- const context =
617
- authContext === undefined ? undefined : { ...authContext, signal };
618
- const result = await withHTTPAuthorizationRecovery(context, () =>
619
- client.callTool({ name: toolName, arguments: args }, undefined, {
620
- signal,
621
- }),
+ const result = await withHTTPAuthorizationRecovery(
+ authContext,
+ () =>
+ client.callTool({ name: toolName, arguments: args }, undefined, {
+ signal,
+ }),
622
623
);
624
return validateMcpContentBlocks(result.content);
625
0 commit comments