Download test_github_mcp.py from armaanalam/CodeBase-Agent: direct link, hf CLI and curl.
- Browser
- Download file 413 Bytes
-
https://huggingface.co/armaanalam/CodeBase-Agent/resolve/main/test_github_mcp.py
- Command line
-
hf download hf://armaanalam/CodeBase-Agent/test_github_mcp.py
-
curl -L -o test_github_mcp.py https://huggingface.co/armaanalam/CodeBase-Agent/resolve/main/test_github_mcp.py
413 Bytes
| import asyncio | |
| from mcp_client import get_github_mcp_client | |
| from config import get_settings | |
| async def main(): | |
| client = get_github_mcp_client() | |
| await client.connect() | |
| tools = await client.list_tools() | |
| print(f"Connected. {len(tools)} tools available:\n") | |
| for t in tools: | |
| print(f"- {t['name']}: {t['description']}") | |
| await client.disconnect() | |
| asyncio.run(main()) |