From 43242c0a74c74ad3b0e270f3affead1413f973e4 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Tue, 6 Jan 2026 11:16:51 +0800 Subject: [PATCH] fix: [Resource Association] The MCP call node in the workflow knowledge base references another MCP, but the workflow knowledge base is not displayed in the associated resources of the referenced MCP. --- apps/application/flow/tools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/application/flow/tools.py b/apps/application/flow/tools.py index 6cbe5555216..605126a6305 100644 --- a/apps/application/flow/tools.py +++ b/apps/application/flow/tools.py @@ -436,8 +436,9 @@ async def anext_async(agen): target_source_node_mapping = { 'TOOL': {'tool-lib-node': lambda n: [n.get('properties').get('node_data').get('tool_lib_id')], - 'ai-chat-node': lambda n: [*([n.get('properties').get('node_data').get('mcp_tool_ids')] or []), - *([n.get('properties').get('node_data').get('tool_ids')] or [])]}, + 'ai-chat-node': lambda n: [*(n.get('properties').get('node_data').get('mcp_tool_ids') or []), + *(n.get('properties').get('node_data').get('tool_ids') or [])] + }, 'MODEL': {'ai-chat-node': lambda n: [n.get('properties').get('node_data').get('model_id')], 'question-node': lambda n: [n.get('properties').get('node_data').get('model_id')], 'speech-to-text-node': lambda n: [n.get('properties').get('node_data').get('stt_model_id')],