Spaces:
Runtime error
Runtime error
Download test.py from proitm/MCPCourseGradioMCPClient: direct link, hf CLI and curl.
- Browser
- Download file 258 Bytes
-
https://huggingface.co/spaces/proitm/MCPCourseGradioMCPClient/resolve/main/test.py
- Command line
-
hf download hf://spaces/proitm/MCPCourseGradioMCPClient/test.py
-
curl -L -o test.py https://huggingface.co/spaces/proitm/MCPCourseGradioMCPClient/resolve/main/test.py
258 Bytes
| from smolagents.mcp_client import MCPClient | |
| with MCPClient( | |
| {"url": "https://abidlabs-mcp-tools2.hf.space/gradio_api/mcp/sse"} | |
| ) as tools: | |
| # Tools from the remote server are available | |
| print("\n".join(f"{t.name}: {t.description}" for t in tools)) |