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

Function sendInitialize

__tests__/mcp-daemon.test.ts:91–103  ·  view source on GitHub ↗
(child: ChildProcessWithoutNullStreams, rootUri: string, id: number)

Source from the content-addressed store, hash-verified

89}
90
91function sendInitialize(child: ChildProcessWithoutNullStreams, rootUri: string, id: number): void {
92 sendMessage(child, {
93 jsonrpc: '2.0',
94 id,
95 method: 'initialize',
96 params: {
97 protocolVersion: '2024-11-05',
98 capabilities: {},
99 clientInfo: { name: 'test', version: '0.0.0' },
100 rootUri,
101 },
102 });
103}
104
105/** Find a JSON-RPC response with the given id (result OR error) on stdout. */
106function findResponse(stdout: string[], id: number): any | null {

Callers 1

mcp-daemon.test.tsFile · 0.70

Calls 1

sendMessageFunction · 0.85

Tested by

no test coverage detected