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

Function writeClient

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

Source from the content-addressed store, hash-verified

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

Callers 2

handleLocallyFunction · 0.85
runLocalHandshakeProxyFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected