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

Function list_repositories

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

Source from the content-addressed store, hash-verified

142
143@router.get("/repositories", response_model=ApiResponse)
144async def list_repositories(
145 server: MCPServer = Depends(get_server)
146):
147 try:
148 result = await server.handle_tool_call(
149 "list_indexed_repositories",
150 {}
151 )
152 except (OSError, socket.error) as exc:
153 raise_service_unavailable(exc)
154
155 return ApiResponse(
156 status="ok",
157 data=result
158 )

Callers

nothing calls this directly

Calls 3

ApiResponseClass · 0.85
handle_tool_callMethod · 0.45

Tested by

no test coverage detected