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

Function sendMessage

__tests__/mcp-daemon.test.ts:87–89  ·  view source on GitHub ↗
(child: ChildProcessWithoutNullStreams, msg: unknown)

Source from the content-addressed store, hash-verified

85}
86
87function sendMessage(child: ChildProcessWithoutNullStreams, msg: unknown): void {
88 try { child.stdin.write(JSON.stringify(msg) + '\n'); } catch { /* child may be gone */ }
89}
90
91function sendInitialize(child: ChildProcessWithoutNullStreams, rootUri: string, id: number): void {
92 sendMessage(child, {

Callers 2

sendInitializeFunction · 0.85
mcp-daemon.test.tsFile · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected