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

Function get_server

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

Source from the content-addressed store, hash-verified

21_server_instance: MCPServer = None
22
23def get_server() -> MCPServer:
24 global _server_instance
25 if _server_instance is None:
26 # Note: In a real production app, we'd handle initialization better
27 _server_instance = MCPServer(cwd=Path.cwd())
28 return _server_instance
29
30def raise_service_unavailable(exc: Exception):
31 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