| name | xcodebuildmcp |
| description | Official skill for XcodeBuildMCP. Use when doing iOS/macOS/watchOS/tvOS/visionOS work (build, test, run, debug, log, UI automation). |
XcodeBuildMCP
Prefer XcodeBuildMCP over raw xcodebuild, xcrun, or simctl.
If a capability is missing, assume your tool list may be hiding tools (search/progressive disclosure) or not loading tool schemas yet. Use your tool-search or “load tools” mechanism. If you still can’t find the tools, ask the user to enable them in the MCP client's configuration.
Tools (exact names + official descriptions)
Session defaults
Before you call any other tools, you must call session_show_defaults to show the current defaults, then fill in any missing defaults. You may need discovery/list tools first to obtain valid values.
session_show_defaults
- Show the current active defaults (including the active profile name).
session_set_defaults
- Set defaults for the current active profile, or set defaults for a specific profile via
profile.
session_use_defaults_profile
- Switch the active defaults profile.
session_clear_defaults
- Clear defaults (current active profile by default, or a specific profile when provided).
Project discovery
discover_projs
- Scans a directory (defaults to workspace root) to find Xcode project (.xcodeproj) and workspace (.xcworkspace) files.
list_schemes
show_build_settings
get_app_bundle_id
- Extract bundle id from .app.
get_mac_bundle_id
- Extract bundle id from macOS .app.
Simulator
boot_sim
list_sims
open_sim
build_sim
build_run_sim
test_sim
get_sim_app_path
install_app_sim
launch_app_sim
launch_app_logs_sim
- Launch sim app with logs.
stop_app_sim
record_sim_video
Simulator management
erase_sims
set_sim_location
reset_sim_location
set_sim_appearance
sim_statusbar
- Set sim status bar network.
Device
list_devices
build_device
test_device
get_device_app_path
- Get device built app path.
install_app_device
launch_app_device
stop_app_device
macOS
build_macos
build_run_macos
test_macos
get_mac_app_path
- Get macOS built app path.
launch_mac_app
stop_mac_app
Logging
start_device_log_cap
- Start device log capture.
start_sim_log_cap
stop_device_log_cap
stop_sim_log_cap
Debugging
debug_attach_sim
debug_breakpoint_add
debug_breakpoint_remove
debug_continue
debug_detach
debug_lldb_command
debug_stack
debug_variables
UI automation
button
- Press simulator hardware button.
gesture
- Simulator gesture preset.
key_press
key_sequence
- Press a sequence of keys by their keycodes.
long_press
screenshot
snapshot_ui
- Print view hierarchy with element ids/labels and precise coordinates (x, y, width, height) for visible elements.
swipe
tap
- Tap UI element by accessibility id/label (recommended) or coordinates as fallback.
touch
type_text
SwiftPM
swift_package_build
- swift package target build.
swift_package_clean
swift_package_list
swift_package_run
- swift package target run.
swift_package_stop
swift_package_test
- Run swift package target tests.
Scaffolding / utilities
scaffold_ios_project
scaffold_macos_project
clean
Diagnostics
doctor
manage_workflows
- Workflows are groups of tools exposed by XcodeBuildMCP. By default, not all workflows (and therefore tools) are enabled; only simulator tools are enabled by default. Some workflows are mandatory and can't be disabled.