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

Function get_server

src/codegraphcontext/api/router.py:27–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25_server_instance: MCPServer = None
26
27def get_server() -> MCPServer:
28 global _server_instance
29 if _server_instance is None:
30 # Note: In a real production app, we'd handle initialization better
31 _server_instance = MCPServer(cwd=Path.cwd())
32 return _server_instance
33
34def raise_service_unavailable(exc: Exception):
35 raise HTTPException(

Callers 2

handle_list_toolsFunction · 0.90
handle_call_toolFunction · 0.90

Calls 1

MCPServerClass · 0.90

Tested by

no test coverage detected