fix(mcp): enable progress timeout resets (#32477)

Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
This commit is contained in:
RAMA 2026-06-16 10:03:18 +00:00 committed by GitHub
commit a98d5732c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,6 +61,8 @@ export function convertTool(mcpTool: MCPToolDef, client: Client, timeout?: numbe
resetTimeoutOnProgress: true,
signal: options.abortSignal,
timeout,
// The MCP SDK only sends a progress token when this hook is present, enabling timeout resets.
onprogress: () => {},
},
)
if (result.isError) throw new Error(formatToolErrorContent(result.content))