| 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)) | |