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

Method get_server_detail

helpers/mcp_handler.py:1057–1073  ·  view source on GitHub ↗
(self, server_name: str)

Source from the content-addressed store, hash-verified

1055 return result
1056
1057 def get_server_detail(self, server_name: str) -> dict[str, Any]:
1058 with self.__lock:
1059 for server in self.servers:
1060 if server.name == server_name:
1061 try:
1062 get_all_tools = getattr(server, "get_all_tools", None)
1063 tools = get_all_tools() if callable(get_all_tools) else server.get_tools()
1064 except Exception:
1065 tools = []
1066 return {
1067 "name": server.name,
1068 "description": server.description,
1069 "scope": getattr(server, "scope", self.config_scope),
1070 "type": getattr(server, "type", ""),
1071 "tools": tools,
1072 }
1073 return {}
1074
1075 def is_initialized(self) -> bool:
1076 """Check if the client is initialized"""

Calls 1

get_toolsMethod · 0.45