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

Method formatNodeList

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

9179 }
9180
9181 private formatNodeList(
9182 nodes: Node[],
9183 title: string,
9184 labels?: Map<string, string>,
9185 locations?: Map<string, string>,
9186 recursive?: Set<string>,
9187 ): string {
9188 const lines: string[] = [`**${title} (${nodes.length} found)**`, ''];
9189 for (const node of nodes) lines.push(this.formatNodeListEntry(node, labels, locations, recursive));
9190 return lines.join('\n');
9191 }
9192
9193 /**
9194 * 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