You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/examples/mcp/mcp_utils/mcp_client_call.py

13 lines
220 B

from swarms.tools.mcp_client_call import (
get_mcp_tools_sync,
execute_tool_call_simple,
)
tools = get_mcp_tools_sync()
print(tools)
result = execute_tool_call_simple(tools[0], "Hello, world!")
print(result)