fix(mcp): pass timeout to SDK callTool to override 60s default (#3101)

This commit is contained in:
Waleed
2026-01-31 17:44:49 -08:00
committed by GitHub
parent e1ac201936
commit 3e18b4186c

View File

@@ -199,10 +199,11 @@ export class McpClient {
protocolVersion: this.getNegotiatedVersion(),
})
const sdkResult = await this.client.callTool({
name: toolCall.name,
arguments: toolCall.arguments,
})
const sdkResult = await this.client.callTool(
{ name: toolCall.name, arguments: toolCall.arguments },
undefined,
{ timeout: 600000 } // 10 minutes - override SDK's 60s default
)
return sdkResult as McpToolResult
} catch (error) {