Skip to content

Commit f85a01c

Browse files
committed
feat: refactor MCP tool execution to improve parameter handling
1 parent 6384716 commit f85a01c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/application/flow/step_node/mcp_node/impl/base_mcp_node.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ async def call_tool(s, t, a):
2727
return s
2828

2929
res = asyncio.run(call_tool(servers, mcp_tool, arguments))
30-
print(res)
31-
return NodeResult({'result': res.content[0].text}, {})
30+
return NodeResult({'result': [content.text for content in res.content]}, {})
3231

3332
def get_reference_content(self, fields: List[str]):
3433
return str(self.workflow_manage.get_reference_field(

0 commit comments

Comments
 (0)