Spaces:
Paused
Paused
Download agent_zero_framework/python/api/mcp_servers_status.py from Oldmangrizzz/Agent-Node: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/spaces/Oldmangrizzz/Agent-Node/resolve/main/agent_zero_framework/python/api/mcp_servers_status.py
- Command line
-
hf download hf://spaces/Oldmangrizzz/Agent-Node/agent_zero_framework/python/api/mcp_servers_status.py
-
curl -L -o mcp_servers_status.py https://huggingface.co/spaces/Oldmangrizzz/Agent-Node/resolve/main/agent_zero_framework/python/api/mcp_servers_status.py
509 Bytes
| from python.helpers.api import ApiHandler, Request, Response | |
| from typing import Any | |
| from python.helpers.mcp_handler import MCPConfig | |
| class McpServersStatuss(ApiHandler): | |
| async def process(self, input: dict[Any, Any], request: Request) -> dict[Any, Any] | Response: | |
| # try: | |
| status = MCPConfig.get_instance().get_servers_status() | |
| return {"success": True, "status": status} | |
| # except Exception as e: | |
| # return {"success": False, "error": str(e)} | |