MCPcopy
hub / github.com/colbymchenry/codegraph / writeClient

Function writeClient

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

Source from the content-addressed store, hash-verified

238 };
239
240 const writeClient = (obj: JsonRpc | string): void => {
241 try { process.stdout.write((typeof obj === 'string' ? obj : JSON.stringify(obj)) + '\n'); } catch { /* host gone */ }
242 };
243 const shutdown = (): void => {
244 if (shuttingDown) return; shuttingDown = true;
245 try { daemonSocket?.destroy(); } catch { /* ignore */ }

Callers 2

handleLocallyFunction · 0.85
runLocalHandshakeProxyFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected