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

Method formatNodeList

src/mcp/tools.ts:9207–9217  ·  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

9205 }
9206
9207 private formatNodeList(
9208 nodes: Node[],
9209 title: string,
9210 labels?: Map<string, string>,
9211 locations?: Map<string, string>,
9212 recursive?: Set<string>,
9213 ): string {
9214 const lines: string[] = [`**${title} (${nodes.length} found)**`, ''];
9215 for (const node of nodes) lines.push(this.formatNodeListEntry(node, labels, locations, recursive));
9216 return lines.join('\n');
9217 }
9218
9219 /**
9220 * 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