MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / get_status

Function get_status

src/codegraphcontext/api/router.py:41–51  ·  view source on GitHub ↗
(server: MCPServer = Depends(get_server))

Source from the content-addressed store, hash-verified

39
40@router.get("/status", response_model=ApiResponse)
41async def get_status(server: MCPServer = Depends(get_server)):
42 try:
43 status = server.db_manager.is_connected()
44 except (OSError, socket.error) as exc:
45 raise_service_unavailable(exc)
46
47 return ApiResponse(
48 status="ok",
49 message="Connected" if status else "Disconnected",
50 data={"database": server.resolved_context.database}
51 )
52
53@router.get("/tools", response_model=ApiResponse)
54async def list_tools(server: MCPServer = Depends(get_server)):

Callers

nothing calls this directly

Calls 3

ApiResponseClass · 0.85
is_connectedMethod · 0.45

Tested by

no test coverage detected