mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-01 02:05:18 -05:00
fix(mcp): pass timeout to SDK callTool to override 60s default (#3101)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user