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

Function get_status

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

Source from the content-addressed store, hash-verified

35
36@router.get("/status", response_model=ApiResponse)
37async def get_status(server: MCPServer = Depends(get_server)):
38 try:
39 status = server.db_manager.is_connected()
40 except (OSError, socket.error) as exc:
41 raise_service_unavailable(exc)
42
43 return ApiResponse(
44 status="ok",
45 message="Connected" if status else "Disconnected",
46 data={"database": server.resolved_context.database}
47 )
48
49@router.get("/tools", response_model=ApiResponse)
50async 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