* 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)
| 114 | * the same as a healthy one in the logs. |
| 115 | */ |
| 116 | function 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 |
no test coverage detected