mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-05 15:31:08 +00:00
BIG PYTHON REFACTOR
Python scripts moved out of python/ folder to root to be unified with plugins + frontend extension around api calls
This commit is contained in:
parent
f94b7d742c
commit
d02dda3667
326 changed files with 1096 additions and 862 deletions
|
|
@ -1,17 +0,0 @@
|
|||
from python.helpers.api import ApiHandler, Request, Response
|
||||
from typing import Any
|
||||
|
||||
from python.helpers.mcp_handler import MCPConfig
|
||||
|
||||
|
||||
class McpServerGetLog(ApiHandler):
|
||||
async def process(self, input: dict[Any, Any], request: Request) -> dict[Any, Any] | Response:
|
||||
|
||||
# try:
|
||||
server_name = input.get("server_name")
|
||||
if not server_name:
|
||||
return {"success": False, "error": "Missing server_name"}
|
||||
log = MCPConfig.get_instance().get_server_log(server_name)
|
||||
return {"success": True, "log": log}
|
||||
# except Exception as e:
|
||||
# return {"success": False, "error": str(e)}
|
||||
Loading…
Add table
Add a link
Reference in a new issue