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

Method formatNodeList

src/mcp/tools.ts:9034–9044  ·  view source on GitHub ↗
(
    nodes: Node[],
    title: string,
    labels?: Map<string, string>,
    locations?: Map<string, string>,
    recursive?: Set<string>,
  )

Source from the content-addressed store, hash-verified

9032 }
9033
9034 private formatNodeList(
9035 nodes: Node[],
9036 title: string,
9037 labels?: Map<string, string>,
9038 locations?: Map<string, string>,
9039 recursive?: Set<string>,
9040 ): string {
9041 const lines: string[] = [`**${title} (${nodes.length} found)**`, ''];
9042 for (const node of nodes) lines.push(this.formatNodeListEntry(node, labels, locations, recursive));
9043 return lines.join('\n');
9044 }
9045
9046 /**
9047 * One callers/callees entry. Compact: name, kind, location (the caller's

Callers 2

handleCallersMethod · 0.95
handleCalleesMethod · 0.95

Calls 3

formatNodeListEntryMethod · 0.95
pushMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected