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

Function sendInitialize

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

Source from the content-addressed store, hash-verified

51}
52
53function sendInitialize(child: ChildProcessWithoutNullStreams, projectPath: string) {
54 const msg = JSON.stringify({
55 jsonrpc: '2.0',
56 id: 0,
57 method: 'initialize',
58 params: {
59 protocolVersion: '2025-11-25',
60 capabilities: {},
61 clientInfo: { name: 'test', version: '0.0.0' },
62 rootUri: `file://${projectPath}`,
63 },
64 });
65 child.stdin.write(msg + '\n');
66}
67
68/**
69 * Collect stdout lines and stderr text from the child, tagging each piece

Callers 1

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected