From fa918ccb7638bd4674cdf7346d9e1c60f1d966dc Mon Sep 17 00:00:00 2001 From: waleed Date: Sat, 31 Jan 2026 17:34:10 -0800 Subject: [PATCH] fix(mcp): pass timeout to SDK callTool to override 60s default --- 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 72281a1ecf..5fdb4adac6 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) {