From 3e18b4186c156cb01cb37926d7bf66e737bbcebf Mon Sep 17 00:00:00 2001 From: Waleed Date: Sat, 31 Jan 2026 17:44:49 -0800 Subject: [PATCH] fix(mcp): pass timeout to SDK callTool to override 60s default (#3101) --- apps/sim/lib/mcp/client.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/sim/lib/mcp/client.ts b/apps/sim/lib/mcp/client.ts index 72281a1ec..5fdb4adac 100644 --- a/apps/sim/lib/mcp/client.ts +++ b/apps/sim/lib/mcp/client.ts @@ -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) {