Skip to content

Commit 3e18b41

Browse files
authored
fix(mcp): pass timeout to SDK callTool to override 60s default (#3101)
1 parent e1ac201 commit 3e18b41

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

apps/sim/lib/mcp/client.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,11 @@ export class McpClient {
199199
protocolVersion: this.getNegotiatedVersion(),
200200
})
201201

202-
const sdkResult = await this.client.callTool({
203-
name: toolCall.name,
204-
arguments: toolCall.arguments,
205-
})
202+
const sdkResult = await this.client.callTool(
203+
{ name: toolCall.name, arguments: toolCall.arguments },
204+
undefined,
205+
{ timeout: 600000 } // 10 minutes - override SDK's 60s default
206+
)
206207

207208
return sdkResult as McpToolResult
208209
} catch (error) {

0 commit comments

Comments
 (0)