MCPcopy Create free account
hub / github.com/agent0ai/agent-zero / process

Method process

api/mcp_server_get_log.py:8–17  ·  view source on GitHub ↗
(self, input: dict[Any, Any], request: Request)

Source from the content-addressed store, hash-verified

6
7class McpServerGetLog(ApiHandler):
8 async def process(self, input: dict[Any, Any], request: Request) -> dict[Any, Any] | Response:
9
10 # try:
11 server_name = input.get("server_name")
12 project_name = str(input.get("project_name", "") or "").strip()
13 if not server_name:
14 return {"success": False, "error": "Missing server_name"}
15 config = MCPConfig.get_project_instance(project_name) if project_name else MCPConfig.get_instance()
16 log = config.get_server_log(server_name)
17 return {"success": True, "log": log}
18 # except Exception as e:
19 # return {"success": False, "error": str(e)}

Callers

nothing calls this directly

Calls 4

get_project_instanceMethod · 0.80
get_server_logMethod · 0.80
getMethod · 0.45
get_instanceMethod · 0.45

Tested by

no test coverage detected