MCPcopy Create free account
hub / github.com/GR0UD/portfolio / readLocalFeatures

Function readLocalFeatures

api/tmp-features.ts:43–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41// Local seed/fallback used when GitHub is unreachable, unconfigured, or the
42// data file doesn't exist in the repo yet.
43function readLocalFeatures(): Feature[] {
44 try {
45 const raw = readFileSync(LOCAL_DATA_PATH, "utf-8");
46 const parsed = JSON.parse(raw);
47 return Array.isArray(parsed) ? parsed : [];
48 } catch {
49 return [];
50 }
51}
52
53const featureInputSchema = z.object({
54 nameEn: z.string().trim().min(1).max(80),

Callers 2

readFeaturesFunction · 0.85
handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected