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

Function sendMessage

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

Source from the content-addressed store, hash-verified

94}
95
96function sendMessage(child: ChildProcessWithoutNullStreams, msg: unknown): void {
97 try { child.stdin.write(JSON.stringify(msg) + '\n'); } catch { /* child may be gone */ }
98}
99
100function sendInitialize(child: ChildProcessWithoutNullStreams, rootUri: string, id: number): void {
101 sendMessage(child, {

Callers 4

sendInitializeFunction · 0.70
callSearchFunction · 0.70
mcp-daemon.test.tsFile · 0.70
sendFunction · 0.70

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected