Spaces:
Paused
Paused
File size: 509 Bytes
8d1819a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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)}
|