ChatBot / app.py
Eddyhzd
test
2d000cd
raw
history blame
409 Bytes
import asyncio
from mcp.client import MCPClient
MCP_SERVER_URL = "https://hackathoncra-gradio-mcp.hf.space/gradio_api/mcp/"
async def list_tools():
client = await MCPClient.connect(MCP_SERVER_URL)
tools = await client.list_tools()
print("Tools disponibles sur le serveur MCP :")
for tool in tools:
print(f"- {tool['name']} : {tool.get('description', '')}")
asyncio.run(list_tools())