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

Function list_tools

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

ApiResponseClass · 0.85
valuesMethod · 0.45

Tested by

no test coverage detected