MCPcopy Create free account
hub / github.com/Houseofmvps/codesight / writeLineMessage

Function writeLineMessage

tests/mcp.test.ts:128–132  ·  view source on GitHub ↗
(child: ReturnType<typeof startServer>, payload: unknown)

Source from the content-addressed store, hash-verified

126}
127
128function writeLineMessage(child: ReturnType<typeof startServer>, payload: unknown) {
129 const input = child.stdin;
130 if (!input) throw new Error("stdin unavailable");
131 input.write(`${JSON.stringify(payload)}\n`);
132}
133
134async function stopServer(child: ReturnType<typeof startServer>) {
135 child.kill("SIGTERM");

Callers 1

mcp.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected