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

Method formatKnownSubprojects

src/mcp/tools.ts:2459–2467  ·  view source on GitHub ↗

One message line naming the indexed sub-projects, or '' when none known.

()

Source from the content-addressed store, hash-verified

2457
2458 /** One message line naming the indexed sub-projects, or '' when none known. */
2459 private formatKnownSubprojects(): string {
2460 if (this.knownSubprojects.length === 0) return '';
2461 const base = this.knownSubprojectsBase;
2462 const rels = this.knownSubprojects.map((r) => (base ? relativePath(base, r) || '.' : r));
2463 return (
2464 `Indexed sub-projects were found below it: ${rels.join(', ')} — ` +
2465 'pass one of them (absolute, or resolved against that directory) as projectPath.\n'
2466 );
2467 }
2468
2469 /**
2470 * Whether a default CodeGraph instance is available

Callers 1

getCodeGraphMethod · 0.95

Calls 2

mapMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected