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

Function list_tools

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

Source from the content-addressed store, hash-verified

48
49@router.get("/tools", response_model=ApiResponse)
50async def list_tools(server: MCPServer = Depends(get_server)):
51 return ApiResponse(
52 status="ok",
53 data={"tools": list(server.tools.values())}
54 )
55
56@router.post("/tools/call", response_model=ApiResponse)
57async def call_tool(

Callers

nothing calls this directly

Calls 2

ApiResponseClass · 0.85
valuesMethod · 0.80

Tested by

no test coverage detected