From 76433b5eb086ca1668b52bc932203ea5e6441f65 Mon Sep 17 00:00:00 2001 From: zhangzhanwei Date: Tue, 7 Apr 2026 13:40:27 +0800 Subject: [PATCH] fix: Mcp interrupt --- apps/application/flow/tools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/application/flow/tools.py b/apps/application/flow/tools.py index 158ab5694d8..86e6d6cdc63 100644 --- a/apps/application/flow/tools.py +++ b/apps/application/flow/tools.py @@ -407,6 +407,8 @@ async def _yield_mcp_response(chat_model, message_list, mcp_servers, mcp_output_ checkpointer = MemorySaver() client = await _initialize_skills(mcp_servers, temp_dir) tools = await client.get_tools() + for tool in tools: + tool.handle_tool_error = True if extra_tools: for tool in extra_tools: tools.append(tool)