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

Method formatNodeList

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

9454 }
9455
9456 private formatNodeList(
9457 nodes: Node[],
9458 title: string,
9459 labels?: Map<string, string>,
9460 locations?: Map<string, string>,
9461 recursive?: Set<string>,
9462 ): string {
9463 const lines: string[] = [`**${title} (${nodes.length} found)**`, ''];
9464 for (const node of nodes) lines.push(this.formatNodeListEntry(node, labels, locations, recursive));
9465 return lines.join('\n');
9466 }
9467
9468 /**
9469 * 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