f1-mcp-server / mcp_client_template.py
arre99's picture
created local gradio clients. but should ideally be hosted on HF spaces
febfdb0
raw
history blame
346 Bytes
from smolagents.mcp_client import MCPClient
mcp_client = MCPClient(
{"url": "https://abidlabs-mcp-tools2.hf.space/gradio_api/mcp/sse", "transport": "sse"}
)
if __name__ == "__main__":
# List all available tools from the MCP server
with mcp_client as tools:
print("\n".join(f"{t.name}: {t.description}" for t in tools))