mobilebuildmcp
БесплатноБез исполняемых скриптовНе проверенDrive the iOS Simulator (build-and-run, install, launch, log capture, screenshots, and UI automation) through MobileBuildMCP tools. Use before calling any…
от bitwarden★ 748 звёзд на GitHubОб этом скилле
MobileBuildMCP
Prefer MobileBuildMCP tools over raw xcodebuild, xcrun, or simctl for interactive simulator build/run/test and UI-driving work. This does not override the commands prescribed elsewhere in this repo: the clean-build troubleshooting in .claude/CLAUDE.md and the raw invocations in build-test-verify, fixing-flaky-tests, audit-build-warnings, and evaluating-sdk-internal-updates remain authoritative. The one raw command this skill itself prescribes is the clipboard paste in "UI Automation", because MobileBuildMCP has no clipboard tool.
Capabilities:
- Session defaults: Configure project, scheme, simulator, and device defaults to avoid repetitive parameters
- Project discovery: Find Xcode projects/workspaces, list schemes, inspect build settings
- Simulator workflows: Build, run, test, install, and launch apps on iOS simulators; manage simulator state (boot, erase, location, appearance)
- Device workflows: Build, test, install, and launch apps on physical devices with code signing
- macOS workflows: Build, run, and test macOS applications
- Log capture: Stream and capture logs from simulators and devices
- LLDB debugging: Attach debugger, set breakpoints, inspect stack traces and variables, execute LLDB commands
- UI automation: Capture screenshots, inspect view hierarchy with coordinates, perform taps/swipes/gestures, type text, press hardware buttons
- SwiftPM: Build, run, test, and manage Swift Package Manager projects
- Project scaffolding: Generate new iOS/macOS project templates
Only simulator workflow tools are enabled by default. If capabilities like device, macOS, debugging, or UI automation are not available, the user must configure MobileBuildMCP to enable them. See https://github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/configuration.mdx for workflow configuration.
Step 1: Establish Session Context
- Call
session_show_defaultsbefore the first build/run/test action in a session. - Use
discover_projsonly when defaults show missing or incorrect project/workspace context. - Do not run discovery speculatively or in parallel with
session_show_defaults. - If defaults or
discover_projsshow no project/workspace, the gitignored.xcodeprojhas not been generated yet. Run./Scripts/bootstrap.sh(ormint run xcodegen --spec project-pm.yml), then re-check defaults. See thebuild-test-verifyskill. - For simulator run intent, prefer
build_run_siminstead of separate build then run calls. - Do not chain build-only (
build_sim) thenbuild_run_simunless the user explicitly requests both.
Troubleshooting: Workflow-Scoped Tool Availability
- Not all tools are enabled by default; tool availability depends on enabled workflows.
- If a tool is expected but missing, check enabled workflows first.
- Update enabled workflows in
.mobilebuildmcp/config.yaml, then ask user to reload/restart the session to surface refreshes.
Reporting
- Return the active defaults context used for execution (project/workspace, scheme, simulator/device).
- For failures, include the exact failing step and the next actionable command/tool call.
UI Automation (when driving the UI)
Always call snapshot_ui before interacting
Use the coordinates and element refs it returns. Don't guess coordinates from screenshots.
Typing text: type_text is layout-dependent
type_text sends key codes through the host Mac's keyboard layout, so symbols can come out wrong.
Example on a Spanish ISO layout: [email protected] was typed as 6d3b72c8¡ios'login"bw.example.
- Plain letters and digits are safe on any layout.
- Anything containing symbols (
+ @ . _ - ' " / \ : # & = ?) is not safe unless the layout is verified. This includes emails, URLs, passwords, and TOTP URIs.
Check the layout before typing symbols (read-only):
defaults read com.apple.HIToolbox AppleCurrentKeyboardLayoutInputSourceID
com.apple.keylayout.US(orUSExtended):type_textis safe for symbols.- Anything else (e.g.
Spanish-ISO): use the clipboard-paste workflow below.
Always read the field back with snapshot_ui after typing and compare it to the intended value. The layout check can miss cases such as an input source that changes mid-session. Don't proceed on an unverified field.
Entering text with symbols: clipboard paste (uses raw simctl)
xcrun simctl pbcopy <simulator-id>with the value on stdin (get<simulator-id>fromsession_show_defaults).long_pressthe target field to open the edit menu.snapshot_ui, thentouch(down, then up) on the Paste item.snapshot_uiagain to verify the field contents.
Edit-menu items (Paste, Select All, Copy) are not buttons
They appear in snapshot_ui as plain text rows, so tap rejects them. Use touch (down, then up) at their coordinates.
Test data
Prefer test values without symbols where the flow allows it. When symbols are required, use the pas
Установить mobilebuildmcp в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mobilebuildmcp?
Drive the iOS Simulator (build-and-run, install, launch, log capture, screenshots, and UI automation) through MobileBuildMCP tools. Use before calling any MobileBuildMCP tool, or when asked to run the app on a simulator, inspect the UI, take screenshots, or automate taps, swipes, and typing, including entering text with symbols such as emails, URLs, and passwords. For CI-style builds, lint, format, or full test-suite runs, use `build-test-verify` instead.
Как установить скилл mobilebuildmcp?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mobilebuildmcp запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic