Spaces:
Sleeping
Sleeping
create a client, that show the tools available
Browse files- mcp_client.py +7 -0
mcp_client.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from smolagents.mcp_client import MCPClient
|
| 2 |
+
|
| 3 |
+
with MCPClient(
|
| 4 |
+
{"url": "https://abidlabs-mcp-tool-http.hf.space/gradio_api/mcp/sse"}
|
| 5 |
+
) as tools:
|
| 6 |
+
for t in tools:
|
| 7 |
+
print(f"name: {t.name}, description: {t.description}\n")
|