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

Function trackInflight

src/mcp/proxy.ts:325–332  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

323 indexVersionWarnings.claim(root);
324 };
325 const trackInflight = (line: string): void => {
326 try {
327 const m = JSON.parse(line) as JsonRpc;
328 if (m && m.id !== undefined && typeof m.method === 'string' && m.method !== 'initialize') {
329 inflight.set(m.id, line);
330 }
331 } catch { /* unparseable — nothing we could re-serve anyway */ }
332 };
333
334 const writeClient = (obj: JsonRpc | string): void => {
335 try { process.stdout.write((typeof obj === 'string' ? obj : JSON.stringify(obj)) + '\n'); } catch { /* host gone */ }

Callers 2

routeToDaemonFunction · 0.85
attachDaemonFunction · 0.85

Calls 2

parseMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected