From e841b51af3254116a9bdba2c1db9a88b892c073c Mon Sep 17 00:00:00 2001 From: evalstate <1936278+evalstate@users.noreply.github.com> Date: Mon, 24 Nov 2025 12:25:44 +0100 Subject: [PATCH] use the reset on progress setting for adaptable timeouts. progress not surfaced to ux yet. --- src/lib/server/mcp/httpClient.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/server/mcp/httpClient.ts b/src/lib/server/mcp/httpClient.ts index abd5600baf2..c1373478b18 100644 --- a/src/lib/server/mcp/httpClient.ts +++ b/src/lib/server/mcp/httpClient.ts @@ -40,7 +40,13 @@ export async function callMcpTool( const response = await activeClient.callTool( { name: tool, arguments: normalizedArgs }, undefined, - { signal, timeout: timeoutMs } + { + signal, + timeout: timeoutMs, + // Enable progress tokens so long-running tools keep extending the timeout. + onprogress: () => {}, + resetTimeoutOnProgress: true, + } ); const parts = Array.isArray(response?.content) ? (response.content as Array) : [];