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

Function buildFindProjectsCommand

src/utils/xcode-state-reader.ts:21–37  ·  view source on GitHub ↗
(root: string, maxDepth: number)

Source from the content-addressed store, hash-verified

19}
20
21function buildFindProjectsCommand(root: string, maxDepth: number): string[] {
22 return [
23 'find',
24 root,
25 '-maxdepth',
26 String(maxDepth),
27 '(',
28 '-name',
29 '*.xcworkspace',
30 '-o',
31 '-name',
32 '*.xcodeproj',
33 ')',
34 '-type',
35 'd',
36 ];
37}
38
39function isPathWithinBoundary(path: string, boundary: string): boolean {
40 return path === boundary || path.startsWith(`${boundary}${sep}`);

Callers 1

findXcodeStateFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected