Spaces:
Runtime error
Runtime error
| import gradio as gr | |
| from mcp.client.stdio import StdioServerParameters | |
| from smolagents import InferenceClientModel, CodeAgent, ToolCollection | |
| from smolagents.mcp_client import MCPClient | |
| with MCPClient( | |
| ## Try this working example on the hub: | |
| {"url": "https://mhea-mcp-sentiment.hf.space/gradio_api/mcp/sse"} | |
| ) as tools: | |
| print("\n".join(f"{t.name}: {t.description}" for t in tools)) | |