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

Function readOnlyFallback

src/mcp/index.ts:115–118  ·  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

113 * the same as a healthy one in the logs.
114 */
115function readOnlyFallback(holder: string): MCPEngine {
116 process.stderr.write(`[CodeGraph MCP] Serving reads in-process without auto-sync: ${holder}.\n`);
117 return new MCPEngine({ readOnly: true });
118}
119
120/**
121 * 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