Skip to content

Commit 509c5ee

Browse files
authored
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. (#4617)
1 parent 402b954 commit 509c5ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/application/flow/tools.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,9 @@ async def anext_async(agen):
436436

437437
target_source_node_mapping = {
438438
'TOOL': {'tool-lib-node': lambda n: [n.get('properties').get('node_data').get('tool_lib_id')],
439-
'ai-chat-node': lambda n: [*([n.get('properties').get('node_data').get('mcp_tool_ids')] or []),
440-
*([n.get('properties').get('node_data').get('tool_ids')] or [])]},
439+
'ai-chat-node': lambda n: [*(n.get('properties').get('node_data').get('mcp_tool_ids') or []),
440+
*(n.get('properties').get('node_data').get('tool_ids') or [])]
441+
},
441442
'MODEL': {'ai-chat-node': lambda n: [n.get('properties').get('node_data').get('model_id')],
442443
'question-node': lambda n: [n.get('properties').get('node_data').get('model_id')],
443444
'speech-to-text-node': lambda n: [n.get('properties').get('node_data').get('stt_model_id')],

0 commit comments

Comments
 (0)