diff --git a/src/client.ts b/src/client.ts index a18955c..89703f8 100644 --- a/src/client.ts +++ b/src/client.ts @@ -301,10 +301,14 @@ export async function callTool( args: Record, ): Promise { return withRetry(async () => { - const result = await client.callTool({ - name: toolName, - arguments: args, - }); + const result = await client.callTool( + { + name: toolName, + arguments: args, + }, + undefined, + { timeout: getTimeoutMs() }, + ); return result; }, `call tool ${toolName}`); }