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

Method formatKnownSubprojects

src/mcp/tools.ts:2277–2285  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

2275
2276 /** One message line naming the indexed sub-projects, or '' when none known. */
2277 private formatKnownSubprojects(): string {
2278 if (this.knownSubprojects.length === 0) return '';
2279 const base = this.knownSubprojectsBase;
2280 const rels = this.knownSubprojects.map((r) => (base ? relativePath(base, r) || '.' : r));
2281 return (
2282 `Indexed sub-projects were found below it: ${rels.join(', ')} — ` +
2283 'pass one of them (absolute, or resolved against that directory) as projectPath.\n'
2284 );
2285 }
2286
2287 /**
2288 * 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