|
@@ -61,6 +61,8 @@ export function convertTool(mcpTool: MCPToolDef, client: Client, timeout?: numbe
|
|
|
resetTimeoutOnProgress: true,
|
|
resetTimeoutOnProgress: true,
|
|
|
signal: options.abortSignal,
|
|
signal: options.abortSignal,
|
|
|
timeout,
|
|
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))
|
|
if (result.isError) throw new Error(formatToolErrorContent(result.content))
|