File size: 346 Bytes
febfdb0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
from smolagents.mcp_client import MCPClient
mcp_client = MCPClient(
{"url": "https://abidlabs-mcp-tools2.hf.space/gradio_api/mcp/sse", "transport": "sse"}
)
if __name__ == "__main__":
# List all available tools from the MCP server
with mcp_client as tools:
print("\n".join(f"{t.name}: {t.description}" for t in tools))
|