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

Function writeClient

src/mcp/proxy.ts:334–336  ·  view source on GitHub ↗
(obj: JsonRpc | string)

Source from the content-addressed store, hash-verified

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 */ }
336 };
337 const shutdown = (): void => {
338 if (shuttingDown) return; shuttingDown = true;
339 try { livenessWatchdog?.stop(); } catch { /* ignore */ }

Callers 3

serveLocallyFunction · 0.85
runLocalHandshakeProxyFunction · 0.85
attachDaemonFunction · 0.85

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected