mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-30 12:40:33 +00:00
mcp wip
This commit is contained in:
parent
599f8481e9
commit
d3b798cb47
7 changed files with 297 additions and 252 deletions
16
python/api/mcp_servers_status.py
Normal file
16
python/api/mcp_servers_status.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
from python.helpers.api import ApiHandler
|
||||
from flask import 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)}
|
||||
Loading…
Add table
Add a link
Reference in a new issue