XcodeMCP
JSON →An MCP server to control Xcode on macOS using JavaScript for Automation (JXA).
Install
npx -y xcodemcp@latest Tools · 22
- xcode_open_project Open projects and workspaces
- xcode_get_workspace_info Get workspace status and details
- xcode_get_projects List projects in workspace
- xcode_open_file Open files with optional line number
- xcode_build Build with detailed error parsing
- xcode_clean Clean build artifacts
- xcode_test Run tests with optional arguments
- xcode_build_and_run Build and run the active scheme
- xcode_debug Start debugging session
- xcode_stop Stop current operation
- xcode_get_schemes List available schemes
- xcode_set_active_scheme Switch active scheme
- xcode_get_run_destinations List simulators and devices
- xcresult_browse Browse test results and analyze failures
- xcresult_browser_get_console Get console output for specific tests
- xcresult_summary Quick overview of test results
- xcresult_get_screenshot Extract screenshots from test failures
- xcresult_get_ui_hierarchy Get UI hierarchy as AI-readable JSON with timestamp selection
- xcresult_get_ui_element Get detailed properties of specific UI elements by index
- xcresult_list_attachments List all attachments for a test
- xcresult_export_attachment Export specific attachments from test results
- xcode_health_check Environment validation and troubleshooting
Links
★ 55 GitHub stars