mcp-client / client.py
nikko-pfffff
initial commit
e4ee95a
Raw
History Blame Contribute Delete
311 Bytes
from smolagents.mcp_client import MCPClient
with MCPClient(
{"url": "https://abidlabs-mcp-tool-http.hf.space/gradio_api/mcp/sse", "transport": "sse",},
structured_output=True
) as tools:
# Tools from the remote server are available
print("\n".join(f"{t.name}: {t.description}" for t in tools))