SDoyez commited on
Commit
0e0096a
·
1 Parent(s): 5ebd871

create a client, that show the tools available

Browse files
Files changed (1) hide show
  1. 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")