Skip to content

Commit 889718e

Browse files
committed
feat: refactor MCP tool execution to improve parameter handling
1 parent f3821a9 commit 889718e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def call_tool(s, t, a):
2828

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

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

0 commit comments

Comments
 (0)