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

Function readOnlyFallback

src/mcp/index.ts:116–119  ·  view source on GitHub ↗

* A fallback that serves reads without a watcher or a writer lock (#1963). * Say so on stderr: otherwise a session that quietly stopped syncing looks * the same as a healthy one in the logs.

(holder: string)

Source from the content-addressed store, hash-verified

114 * the same as a healthy one in the logs.
115 */
116function readOnlyFallback(holder: string): MCPEngine {
117 process.stderr.write(`[CodeGraph MCP] Serving reads in-process without auto-sync: ${holder}.\n`);
118 return new MCPEngine({ readOnly: true });
119}
120
121/**
122 * Create an in-process fallback only when it cannot conflict with a live

Callers 1

makeFallbackEngineFunction · 0.85

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected