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

Function trackInflight

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

Source from the content-addressed store, hash-verified

324 indexVersionWarnings.claim(root);
325 };
326 const trackInflight = (line: string): void => {
327 try {
328 const m = JSON.parse(line) as JsonRpc;
329 if (m && m.id !== undefined && typeof m.method === 'string' && m.method !== 'initialize') {
330 inflight.set(m.id, line);
331 }
332 } catch { /* unparseable — nothing we could re-serve anyway */ }
333 };
334
335 const writeClient = (obj: JsonRpc | string): void => {
336 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