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

Function callSearch

__tests__/mcp-daemon.test.ts:348–355  ·  view source on GitHub ↗
(server: SpawnedServer, id: number)

Source from the content-addressed store, hash-verified

346 await waitFor(() => second.stderr.some((line) => line.includes('Attached to shared daemon')), 8000);
347
348 const callSearch = (server: SpawnedServer, id: number) => {
349 sendMessage(server.child, {
350 jsonrpc: '2.0',
351 id,
352 method: 'tools/call',
353 params: { name: 'codegraph_search', arguments: { query: 'alpha' } },
354 });
355 };
356 const responseText = (response: any): string => response.result.content[0].text;
357
358 callSearch(first, 2);

Callers 1

mcp-daemon.test.tsFile · 0.85

Calls 1

sendMessageFunction · 0.70

Tested by

no test coverage detected