proitm's picture
Added demo chat connected to MCP server
abf2f8c verified
Raw History Blame Contribute Delete
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))