
Preflight Ios Mcp
io.github.EthanAckerman-git由 GitHub 帳號 EthanAckerman-git 發布v1.0.1更新於 Oct 27, 2026
57 tools for AI-powered iOS Simulator automation — tap, swipe, type, screenshots, and more.
發布方自己的服務:Preflight
概覽
本機 MCP 伺服器,讓 AI 助理在 Mac 上操作 iOS 模擬器:點擊、滑動、輸入、讀取無障礙樹、檢視 App 資料並偵錯 App。
- 可以做什麼
- 觀察與檢查模擬器:截圖、裝置與 App 清單、App 資訊、剪貼簿、螢幕幾何、無障礙快照與元素等待
- 操作介面:點擊、滑動、長按、輸入文字、按鍵、返回導覽
- 管理裝置與 App:開機、關機、清除、建立、複製、刪除、重新命名裝置,開啟連結,安裝、啟動、終止與解除安裝 App
- 偵錯與診斷:裝置日誌與即時日誌串流、當機報告、App 容器檔案、plist 與 SQLite、無障礙稽核、記憶體與 CPU 效能分析
- 模擬系統條件:GPS 定位與路線、推播通知、剪貼簿、媒體、權限、外觀、狀態列、螢幕錄影、生物辨識、語言地區、網路限速
- 測試 StoreKit:開啟測試模式、列出與清除交易、管理訂閱與詢問購買、重設優惠資格
- 適用情境
- 適合想讓助理在模擬器中端到端驗證 App 的 iOS 開發者與測試人員:執行腳本化介面流程、核對畫面、重現當機、讀取日誌,或測試無障礙、在地化、網路與 StoreKit 情境,而不必手動點擊。
- 執行需求
- 需要安裝 Xcode 與 iOS 模擬器的 macOS,以及 Node.js 18 以上版本;透過 npx 以 stdio 在本機執行。建議安裝 Facebook idb 以實現不移動游標的觸控注入,需將其路徑加入 PATH 或設定 PREFLIGHT_IDB_PATH。可選變數 LOG_LEVEL 與 PREFLIGHT_FILTERED_TOOLS。終端機 App 可能需要輔助使用權限。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Preflight Ios Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Preflight MCP
The most comprehensive MCP (Model Context Protocol) server for iOS Simulator automation. Gives AI agents like Claude, ChatGPT, Cursor, Windsurf, and any MCP-compatible tool full control over iOS Simulators — tap, swipe, type, read accessibility trees, inspect app data, capture screenshots, record video, manage devices, and debug apps in real time.
82 tools across 14 categories. Zero cursor interference — works silently in the background while you use your Mac.
Inspired by Playwright MCP for web automation — Preflight brings the same structured accessibility-first approach to iOS.
Why Preflight?
- No disk clutter — Screenshots and video frames return directly in chat. No folders filling up.
- AI-optimized — Images compressed for minimal token usage. Video → key frames (most AI models can't view video files).
- Accessibility-first — Like Playwright's
browser_snapshot, usesimulator_snapshotto understand the screen without vision models. - Cursor-free — Touch injection via idb (IndigoHID) — your Mac cursor stays put.
- 82 tools — From basic tap/swipe to StoreKit testing, network conditioning, memory profiling, and crash log analysis.
Quick Start
Prerequisites
- macOS with Xcode and iOS Simulator installed
- Node.js 18+
- Facebook idb (recommended for cursor-free operation)
Install idb (recommended)
Without idb, the server falls back to CGEvent mouse injection (works but briefly moves your cursor).
Install via npm (recommended)
Build from Source
Setup by IDE / AI Tool
Add your Python bin directory to
PATHif idb was installed via pip (e.g.,~/Library/Python/3.x/bin).
Claude Code
Or add to .mcp.json in your project root:
Cursor
Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project):
Then in Cursor: Settings → MCP — verify "preflight" shows as connected.
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
Then in Windsurf: Settings → Cascade → MCP — verify "preflight" appears.
VS Code (Copilot / Cline / Continue)
Add to .vscode/mcp.json in your project:
For Cline (VS Code extension), add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json:
Zed
Add to ~/.config/zed/settings.json:
Any MCP-Compatible Client
Preflight uses the standard MCP stdio transport. Configure your client to run:
Set the PATH environment variable to include idb's location for cursor-free touch injection.
Tools Reference
Observation (6 tools)
User Interaction (6 tools)
Playwright-Inspired (3 tools)
Device Management (6 tools)
App Management (4 tools)
Debugging & Diagnostics (9 tools)
System Simulation (5 tools)
UI Configuration (4 tools)
Advanced Debugging & Testing (18 tools)
Accessibility Settings (4 tools)
Device Creation & Management (4 tools)
StoreKit Testing (6 tools) — Xcode 14-16
Network Testing (2 tools)
Debugging & Profiling (5 tools)
Architecture
Design Philosophy
Accessibility-first, like Playwright MCP:
- Use
simulator_snapshotto understand the screen (structured text, no vision model) - Use coordinates from the snapshot to
simulator_tap,simulator_swipe, etc. - Use
simulator_screenshotwhen you need visual verification - Use
simulator_wait_for_elementbefore interacting with elements that appear after transitions
No disk clutter:
- Screenshots return as base64 in chat — no folders filling up your Desktop
- Video recordings extract key frames as inline images on stop
- Optional
savePathparameter if you actually need files on disk
Touch Injection Pipeline
Demo App
A SwiftUI demo app is included in demo-app/ for testing all MCP features:
The demo app has 7 tabs exercising every tool category:
- Interactions: Buttons, text fields, long-press zones, navigation stack, scrollable lists
- Location: Live GPS display for testing
simulator_set_location - Notifications: Push notification display for testing
simulator_send_push - Settings: Clipboard, file I/O, accessibility toggles, UserDefaults
- StoreKit: Mock purchases and subscriptions for testing StoreKit tools
- Network: Connection monitoring and latency testing for network conditioning
- Debug: Memory/CPU stress tests, thermal state, accessibility settings observer, biometric auth
Configuration
Environment Variables
Example Prompts
QA Testing
"Boot the iPhone 16 Pro simulator, install my app at ./build/MyApp.app, launch it, and take a screenshot of the home screen. Then tap the login button, type [email protected] in the email field, and verify the form validation works."
Accessibility-First Workflow (Playwright-style)
"Take a snapshot of the current screen to see what elements are available. Then tap the button labeled 'Sign In' and wait for the email text field to appear."
Debugging
"My app is crashing on launch. Check the crash logs for MyApp, then get the last 5 minutes of device logs filtered to the MyApp process."
Dark Mode Testing
"Switch to dark mode, take a screenshot, then switch to light mode and screenshot again."
Troubleshooting
idb not detected
If tools show [CGEvent fallback] instead of [cursor-free]:
- Verify idb is installed:
which idbor check~/Library/Python/3.x/bin/idb - Add the idb path to your MCP config's
PATHenv var - Or set
PREFLIGHT_IDB_PATHdirectly
Simulator not found
- Open Simulator.app:
open -a Simulator - Boot a device: use
simulator_bootorxcrun simctl boot "iPhone 16 Pro"
Accessibility permission errors
- Go to System Settings → Privacy & Security → Accessibility
- Add your terminal app (Terminal.app, iTerm, Claude Code, Cursor, Windsurf, etc.)
Development
License
MIT License — see LICENSE for details.
來源:README.md,提交 cbf72b1
工具
0版本歷史
1- v1.0.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Preflight 整合
Preflight
social.preflight官方發布者
託管式社群媒體排程伺服器,讓助理起草、依規則檢查、排程並發佈貼文到 12 個平台。

SQLite rebuild copy-map preflight
由 GitHub 帳號 showflexinc 發布
遠端預檢服務,在執行重建前檢查 SQLite 資料表重建複製對應的結構。

Rust MCP Preflight
由 GitHub 帳號 Wolfe-Jam 發布
在發布前檢查 MCP Registry 條目:README 的 mcp-name 行、server.json 規則、伺服器名稱與命名空間登入。

Multipart row preflight
由 GitHub 帳號 showflexinc 發布
CSV row-structure inspection (inspect_parts) and manifest comparison (compare_manifest).

Tool-dialogue preflight
由 GitHub 帳號 showflexinc 發布
針對JSONL工具對話訓練資料的結構化預檢。AI 翻譯