MCPcopy Index your code
hub / github.com/cobusgreyling/loop-engineering / allowedPatternIds

Function allowedPatternIds

tools/mcp-server/src/resolver.ts:21–25  ·  view source on GitHub ↗
(root: string)

Source from the content-addressed store, hash-verified

19}
20
21async function allowedPatternIds(root: string): Promise<Set<string>> {
22 const registry = await loadRegistry(root);
23 if (registry) return new Set(registry.patterns.map((p) => p.id));
24 return new Set(await listPatternDocs(root));
25}
26
27export async function fileExists(p: string): Promise<boolean> {
28 try {

Callers 1

loadPatternDocFunction · 0.85

Calls 2

listPatternDocsFunction · 0.85
loadRegistryFunction · 0.70

Tested by

no test coverage detected