MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / loadYamlDir

Function loadYamlDir

scripts/build-website-manifest.mjs:47–52  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

45}
46
47async function loadYamlDir(dir) {
48 const entries = (await readdir(dir)).filter((f) => f.endsWith(".yaml") || f.endsWith(".yml"));
49 return Promise.all(
50 entries.map(async (f) => parseYaml(await readFile(path.join(dir, f), "utf8"))),
51 );
52}
53
54function normalizeTools(raw) {
55 return raw

Callers 1

mainFunction · 0.85

Calls 2

readdirFunction · 0.85
readFileFunction · 0.85

Tested by

no test coverage detected