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

Function exploreHere

src/bin/codegraph.ts:1852–1856  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1850 const tokenVerified = !keyworded && codeTokens.some((t) => cg.getNodesByName(t).length > 0);
1851 if (keyworded || tokenVerified) {
1852 const exploreHere = async (): Promise<string> => {
1853 const { ToolHandler } = await import('../mcp/tools');
1854 const result = await new ToolHandler(cg).execute('codegraph_explore', { query: prompt });
1855 return result.isError ? '' : result.content[0]?.text ?? '';
1856 };
1857 // A daemon already running for this project answers from memory
1858 // what an explore here reads from disk again on every prompt
1859 // (#3284). One that is exploring but has not answered by the

Callers 1

mainFunction · 0.85

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected