Skip to main content
Glama
diagnostic-cli.ts1.59 kB
#!/usr/bin/env node /** * XcodeBuildMCP Diagnostic CLI * * This standalone script runs the diagnostic tool and outputs the results * to the console. It's designed to be run directly via npx or mise. */ import { version } from './version.js'; // Set the debug environment variable process.env.XCODEBUILDMCP_DEBUG = 'true'; async function runDiagnostic(): Promise<void> { try { // Using console.error to avoid linting issues as it's allowed by the project's linting rules console.error(`Running XcodeBuildMCP Diagnostic Tool (v${version})...`); console.error('Collecting system information and checking dependencies...\n'); const { runDiagnosticTool } = await import('./tools/diagnostic.js'); // Run the diagnostic tool const result = await runDiagnosticTool(); // Output the diagnostic information if (result.content && result.content.length > 0) { const textContent = result.content.find((item: { type: string }) => item.type === 'text'); if (textContent && 'text' in textContent) { console.error(textContent.text); } else { console.error('Error: Unexpected diagnostic result format'); } } else { console.error('Error: No diagnostic information returned'); } console.error('\nDiagnostic complete. Please include this output when reporting issues.'); } catch (error) { console.error('Error running diagnostic:', error); process.exit(1); } } // Run the diagnostic runDiagnostic().catch((error) => { console.error('Unhandled exception:', error); process.exit(1); });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SampsonKY/XcodeBuildMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server