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

Method answerResult

src/mcp/tools.ts:2957–2964  ·  view source on GitHub ↗
(cg: CodeGraph, text: string, paths: Iterable<string>)

Source from the content-addressed store, hash-verified

2955 }
2956
2957 private answerResult(cg: CodeGraph, text: string, paths: Iterable<string>): ToolResult {
2958 const result = this.textResult(text);
2959 result._cgAnswerFiles = [...new Set(paths)].map(file => ({
2960 path: file,
2961 contentHash: cg.getFile(file)?.contentHash ?? null,
2962 }));
2963 return result;
2964 }
2965
2966 private withStalenessNotice(result: ToolResult, projectPath?: string): ToolResult {
2967 if (result.isError) return result;

Callers 6

handleSearchMethod · 0.95
handleCallersMethod · 0.95
handleCalleesMethod · 0.95
handleImpactMethod · 0.95
handleExploreMethod · 0.95
exploreOneSymbolMethod · 0.95

Calls 3

textResultMethod · 0.95
mapMethod · 0.80
getFileMethod · 0.65

Tested by

no test coverage detected