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

Function exploreHere

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

Source from the content-addressed store, hash-verified

1801 const tokenVerified = !keyworded && codeTokens.some((t) => cg.getNodesByName(t).length > 0);
1802 if (keyworded || tokenVerified) {
1803 const exploreHere = async (): Promise<string> => {
1804 const { ToolHandler } = await import('../mcp/tools');
1805 const result = await new ToolHandler(cg).execute('codegraph_explore', { query: prompt });
1806 return result.isError ? '' : result.content[0]?.text ?? '';
1807 };
1808 // A daemon already running for this project answers from memory
1809 // what an explore here reads from disk again on every prompt
1810 // (#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