MCPcopy Index your code
hub / github.com/PatrickSys/codebase-context / registerKnownRoot

Function registerKnownRoot

src/index.ts:224–229  ·  view source on GitHub ↗
(rootPath: string)

Source from the content-addressed store, hash-verified

222}
223
224function registerKnownRoot(rootPath: string): string {
225 const resolvedRootPath = path.resolve(rootPath);
226 knownRoots.set(normalizeRootKey(resolvedRootPath), { rootPath: resolvedRootPath });
227 rememberProjectPath(resolvedRootPath, 'root');
228 return resolvedRootPath;
229}
230
231function getKnownRootPaths(): string[] {
232 return Array.from(knownRoots.values())

Callers 3

index.tsFile · 0.85
applyServerConfigFunction · 0.85
startHttpFunction · 0.85

Calls 3

normalizeRootKeyFunction · 0.85
rememberProjectPathFunction · 0.85
setMethod · 0.80

Tested by

no test coverage detected