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

Function list_repositories

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

ApiResponseClass · 0.85
handle_tool_callMethod · 0.45

Tested by

no test coverage detected