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

Function detectClients

src/cli/commands/init.ts:45–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45function detectClients(): ClientInfo[] {
46 const home = os.homedir();
47 const detected: ClientInfo[] = [];
48
49 for (const def of CLIENT_DEFINITIONS) {
50 const clientDir = path.join(home, def.skillsSubdir.split('/')[0]);
51 if (fs.existsSync(clientDir)) {
52 detected.push({
53 name: def.name,
54 id: def.id,
55 skillsDir: path.join(home, def.skillsSubdir),
56 });
57 }
58 }
59
60 return detected;
61}
62
63function getSkillSourcePath(skillType: SkillType): string {
64 const resourceRoot = getResourceRoot();

Callers 2

resolveTargetsFunction · 0.85
collectInitSelectionFunction · 0.85

Calls 2

existsSyncMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected