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

Method caller

src/mcp/tools.ts:8687–8691  ·  view source on GitHub ↗
(row: CallSiteRow)

Source from the content-addressed store, hash-verified

8685 if (callees.length === 0 && callers.length === 0) return '';
8686 const callee = (row: CallSiteRow) => fmt(row, `${row.node.filePath}:${row.node.startLine}`);
8687 const caller = (row: CallSiteRow) => {
8688 const sites = callSiteLines(row.edges);
8689 const at = sites.length > 0 ? formatCallSiteLines(sites, TRAIL_CALL_SITES) : String(row.node.startLine);
8690 return fmt(row, `${row.node.filePath}:${at}${row.recursive ? ', calls itself' : ''}`);
8691 };
8692 const lines: string[] = ['', '**Trail — codegraph_node any of these to follow it (no Read needed)**'];
8693 if (callees.length > 0) {
8694 lines.push(`**Calls →** ${callees.slice(0, TRAIL_CAP).map(callee).join(', ')}${callees.length > TRAIL_CAP ? `, +${callees.length - TRAIL_CAP} more` : ''}`);

Callers

nothing calls this directly

Calls 3

callSiteLinesFunction · 0.90
formatCallSiteLinesFunction · 0.90
fmtFunction · 0.50

Tested by

no test coverage detected