1 parent 5b3fe0a commit 94c3392Copy full SHA for 94c3392
1 file changed
src/mcp/client.ts
@@ -567,12 +567,13 @@ async function finishClient(
567
serverName,
568
tools,
569
async callBlocks(toolName, args, signal) {
570
- const context =
571
- authContext === undefined ? undefined : { ...authContext, signal };
572
- const result = await withHTTPAuthorizationRecovery(context, () =>
573
- client.callTool({ name: toolName, arguments: args }, undefined, {
574
- signal,
575
- }),
+ const result = await withHTTPAuthorizationRecovery(
+ authContext,
+ () =>
+ client.callTool({ name: toolName, arguments: args }, undefined, {
+ signal,
+ }),
576
577
);
578
return validateMcpContentBlocks(result.content);
579
},
0 commit comments