MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / ensureEngine

Function ensureEngine

src/mcp/proxy.ts:251–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249 process.exit(0);
250 };
251 const ensureEngine = (): Promise<void> => {
252 if (!engine) engine = deps.makeEngine();
253 if (!engineReady) engineReady = engine.ensureInitialized(deps.root).catch(() => { /* degraded */ });
254 return engineReady;
255 };
256 // Daemon-unavailable fallback: serve a client message in-process.
257 const handleLocally = async (line: string): Promise<void> => {
258 let msg: JsonRpc; try { msg = JSON.parse(line) as JsonRpc; } catch { return; }

Callers 1

handleLocallyFunction · 0.85

Calls 2

makeEngineMethod · 0.80
ensureInitializedMethod · 0.80

Tested by

no test coverage detected