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

Method caller

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

Source from the content-addressed store, hash-verified

8538 if (callees.length === 0 && callers.length === 0) return '';
8539 const callee = (row: CallSiteRow) => fmt(row, `${row.node.filePath}:${row.node.startLine}`);
8540 const caller = (row: CallSiteRow) => {
8541 const sites = callSiteLines(row.edges);
8542 const at = sites.length > 0 ? formatCallSiteLines(sites, TRAIL_CALL_SITES) : String(row.node.startLine);
8543 return fmt(row, `${row.node.filePath}:${at}${row.recursive ? ', calls itself' : ''}`);
8544 };
8545 const lines: string[] = ['', '**Trail — codegraph_node any of these to follow it (no Read needed)**'];
8546 if (callees.length > 0) {
8547 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