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

Function sendInitialize

__tests__/mcp-initialize.test.ts:37–50  ·  view source on GitHub ↗
(child: ChildProcessWithoutNullStreams, projectPath: string)

Source from the content-addressed store, hash-verified

35}
36
37function sendInitialize(child: ChildProcessWithoutNullStreams, projectPath: string) {
38 const msg = JSON.stringify({
39 jsonrpc: '2.0',
40 id: 0,
41 method: 'initialize',
42 params: {
43 protocolVersion: '2025-11-25',
44 capabilities: {},
45 clientInfo: { name: 'test', version: '0.0.0' },
46 rootUri: `file://${projectPath}`,
47 },
48 });
49 child.stdin.write(msg + '\n');
50}
51
52/**
53 * Collect stdout lines and stderr text from the child, tagging each piece

Callers 1

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected