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

Function search

__tests__/mcp-projectpath-lifecycle.test.ts:185–189  ·  view source on GitHub ↗
(projectPath: string, symbol: string)

Source from the content-addressed store, hash-verified

183 }
184
185 async function search(projectPath: string, symbol: string): Promise<string> {
186 const res = await engine.getToolHandler().execute('codegraph_search', { query: symbol, projectPath });
187 expect(res.isError).toBeFalsy();
188 return res.content.map((c) => (c.type === 'text' ? c.text : '')).join('\n');
189 }
190
191 for (const options of [{ watch: true }, { watch: false }, { readOnly: true }]) {
192 it(`defers explicit project opens during a rebuild (${JSON.stringify(options)})`, async () => {

Calls 4

executeMethod · 0.80
getToolHandlerMethod · 0.80
mapMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected