GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Drive the iOS Simulator via semantic accessibility-tree snapshots. Sub-200ms, no WebDriverAgent.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"ios-sim": {
"command": "npx",
"args": [
"-y",
"ios-sim-mcp"
]
}
}
}在终端中运行这条命令
claude mcp add ios-sim -- npx -y ios-sim-mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"ios-sim": {
"command": "npx",
"args": [
"-y",
"ios-sim-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"ios-sim": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"ios-sim-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 rmathew1973 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.4.2)于6个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
An MCP server that drives the iOS Simulator the way Chrome's DevTools MCP drives a browser: semantic accessibility-tree snapshots with stable element refs, sub-200ms operations, and no screenshot-and-eyeball-coordinates loops.
Built because every existing iOS-simulator automation tool either crawls (Appium, screenshot-based agents) or requires pre-written scripts. This one lets an LLM drive a simulator interactively — find an element by label or ID, tap it by ref, wait for the UI to settle, repeat — at roughly the speed a human would.
Most existing iOS-sim MCPs work by taking a screenshot, asking the model to identify coordinates, then tapping pixels. That's slow (image bytes in context), expensive (vision tokens), and fragile (any layout shift breaks it).
iOS apps already expose a structured accessibility tree — the same one VoiceOver uses. If you query that tree, you get every interactive element with its label, role, AX identifier, frame, and enabled state. You can find what you want semantically, refer to it by a stable ref, and act on it directly. That's what Chrome MCP does for the DOM, and it's what this does for UIView hierarchies in the iOS Simulator.
Three layers, two shipping today:
| Layer | Status | Tech | What it gives you |
|---|---|---|---|
| 1 — AX tree + actions | ✅ shipping | idb (Facebook's CoreSimulator bridge) | snapshot, find, tap, type, swipe, scroll, launch, screenshot — all ~100ms |
| 2a — Dylib proof-of-life | ✅ shipping | DYLD_INSERT_LIBRARIES via SIMCTL_CHILD_* | constructor runs in the target app before main(); logs lifecycle via os_log |
| 2b — In-process RPC | ✅ shipping | Unix socket + JSON-Lines | round-trip into a running app at ~1ms per call |
| 2c — View introspection | ✅ shipping | Main-thread UIView walk | view_tree, view_hit_test — class hierarchy, frames, responder chains, VC annotations |
| 2d — Network interception | ✅ shipping | URLProtocol + URLSessionConfiguration swizzle | capture every HTTP request/response (headers, bodies, timing) inside the app — no cert install, no mitmproxy |
| 2e — JS eval | ✅ shipping | JSContext + JSExport bridges | eval_js({code}) with app / key_window() / defaults / pasteboard / bundle / process / view-finder helpers — Chrome's Runtime.evaluate equivalent |
| 2f — Network stubbing | ✅ shipping | Same URLProtocol, synthesized response | register canned responses by URL substring + optional method; supports custom status/headers/body + delay_ms for slow-network simulation |
| 3 — System logs | ✅ shipping | xcrun simctl spawn log stream | streaming os_log into a 5000-line ring buffer |
idb talks directly to CoreSimulator's private framework — no WebDriverAgent, no HTTP hop into the simulator process — which is why the per-call latency is closer to a local subprocess than to a network round trip.
idb (brew tap facebook/fb && brew install idb-companion && pipx install fb-idb)curl -fsSL https://bun.sh/install | bash)xcrun simctl boot or open it in Xcode)# Register with Claude Code, one line:
claude mcp add -s user ios-sim -- npx -y ios-sim-mcp
npx will fetch the package on first run. Verify:
claude mcp list | grep ios-sim # ios-sim: ... ✓ Connected
Layer 2 dylib ships prebuilt as a universal binary (arm64 + x86_64) — works on both Apple Silicon and Intel Macs out of the box.
git clone https://github.com/rmathew1973/ios-sim-mcp.git
cd ios-sim-mcp bun install ./dylib/build.sh # builds the Layer 2 dylib (only needed if you'll use inject:true)
Then register:
# Prefer the absolute bun path — clients with a minimal PATH fail on bare `bun`:
claude mcp add -s user ios-sim -- "$HOME/.bun/bin/bun" run "$(pwd)/src/server.ts"
Grok MCP spawn PATH is often just /usr/bin:/bin. Bare bun fails with:
Failed to spawn MCP server 'ios-sim': No such file or directory (os error 2)
Use the absolute bun binary in ~/.grok/config.toml:
[mcp_servers.ios-sim]
command = "/Users/YOU/.bun/bin/bun" args = ["run", "/Users/YOU/Projects/ios-sim-mcp/src/server.ts"] enabled = true startup_timeout_sec = 60
Or:
grok mcp add ios-sim -- "$HOME/.bun/bin/bun" run "$HOME/Projects/ios-sim-mcp/src/server.ts"
Restart the Grok session after changing MCP config. Verify: grok mcp list should show ios-sim connected (not failed).
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": { "ios-sim": { "command": "npx", "args": ["-y", "ios-sim-mcp"] } } }
Or, if installed from source, point at the local path:
{
"mcpServers": { "ios-sim": { "command": "/Users/YOU/.bun/bin/bun", "args": ["run", "/absolute/path/to/ios-sim-mcp/src/server.ts"] } } }
Quit and reopen Claude Desktop.
It's a standard stdio MCP server. Run bun run src/server.ts and pipe JSON-RPC. See test/smoke.ts for a working client example.
| Tool | What it does |
|---|---|
list_simulators | List simulators with UDID, state, OS version |
use_simulator | Pick a specific UDID (auto-selected if only one is booted) |
snapshot | Capture the AX tree, assign refs e1..eN, return compact text rendering. Filters: interactive (default), actionable, all |
find | Search the snapshot by id (AXUniqueId), label, labelContains, role, actionable |
tap | Tap by {ref}, {id}, or {x,y}. Optional duration makes it a long-press |
type_text | Type into the focused field. Optional {ref} or {id} taps-then-types. Auto-routes through paste when the dylib is loaded for byte-perfect input — no iOS autocorrect, no first-letter capitalization. via: "keystroke" forces the typing path; via: "paste" forces the paste path |
paste_text | Byte-perfect text via UIPasteboard + first-responder paste:. Requires the dylib injected. The right answer for emails, passwords, OAuth tokens, anything case-sensitive |
view_tree | Walk the running app's UIView hierarchy on the main thread. Reports class names, frames in window coords, alpha/hidden/interactive, text content, and annotates view-controller boundaries. Strictly richer than snapshot — sees custom-drawn views, transient overlays, SwiftUI internals. Filter by class_filter / ax_id_contains / text_contains. Requires dylib injected |
view_hit_test | "What view actually receives a tap at (x,y)?" Returns the topmost view plus the full responder chain up to UIApplication. The right debugging tool when a tap isn't doing what you expect. Requires dylib injected |
network_start / network_stop / network_status | Install/remove an URLProtocol interceptor + swizzle URLSessionConfiguration so every URLSession-based HTTP request flowing through the app is recorded. Options: max_records, max_body_bytes, filter_url_substring. Requires dylib injected |
network_tail | Return the most recent N captured records. Default: one line per request (id, method, status, timing, sizes, URL). full=true includes headers + body previews inline. Page forward via since_id |
network_get_body | Fetch the full request or response body (up to max_body_bytes, default 256KB) for a specific record id. Returns base64 + UTF-8 decode for text bodies |
network_clear | Drop the ring buffer and all retained bodies |
network_self_test | Fire an HTTP request from inside the app to verify the capture path end-to-end |
network_stub / network_stubs / network_unstub / network_unstub_all | Register canned HTTP responses by URL substring (+ optional method). Synthesizes status/headers/body without forwarding; delay_ms simulates slow networks. Stubbed requests still appear in network_tail with stubbed:true |
eval_js | Run arbitrary JavaScript in a persistent JSContext inside the injected app. Bridged globals: app, key_window(), all_windows(), defaults, pasteboard, bundle, process, notif_center, first_responder(), find_view_by_ax_id, find_view_by_class, find_vc_by_class, post_notification, cls, log. State persists across calls. Requires dylib injected |
eval_js_reset | Drop the JSContext and rebuild bridges on next eval — forgets your defined vars/fns |
key | Press a key by name (RETURN, ESC, DELETE, TAB, SPACE, F1–F12, arrows) or raw HID code |
button | Hardware button: HOME, LOCK, SIDE_BUTTON, SIRI, APPLE_PAY |
swipe | Swipe between two refs/ids/points. Optional duration and delta |
scroll | Reader-perspective scroll: down reveals content below. Optional anchor element |
launch_app | Launch by bundle id. Optional foreground_if_running terminates first |
terminate_app | Terminate by bundle id |
screenshot | PNG to disk or inline. Use sparingly — the AX tree is faster and richer |
await_quiescent | Block until the AX-tree hash is identical for stable_ms (default 250) or timeout_ms (default 5000). Use after launches and navigation instead of sleep |
log_start / log_tail / log_stop / log_clear | Stream os_log into a 5000-line ring buffer. Filter by bundle_id substring, level, or NSPredicate |
> snapshot
e3 Button "Apple Account" #com.apple.settings.primaryAppleAccount @(201,213) e5 Button "General" #com.apple.settings.general @(201,406) e6 Button "Accessibility" #com.apple.settings.accessibility @(201,458) e14 TextField "Search" ="Search" @(201,822) ...
tap {id: "com.apple.settings.general"}
tapped e5/com.apple.settings.general
await_quiescent {stable_ms: 250}
stable hash=8326196f25c8 samples=4 elapsed=1731ms
snapshot
e2 Button "Settings" #BackButton @(38,84) e6 Button "About" #About @(201,418) ...
type_text {ref: "e14", text: "wifi"}
typed 4 chars into e14
Measured on iPhone 17 Pro / iOS 26.5 / M-series Mac:
snapshot: 127–190 mstap: 100 msfind: <1 ms (in-memory against cached snapshot)await_quiescent: 400 ms – 2.5 s (real UI settle time)tap, swipe, type_text, launch_app, button, key) invalidates the cache so stale refs can't survive a state change. find and ref resolution will tell you to re-snapshot rather than acting on old data.e5 in v=10 is not the same element as e5 in v=11. AXUniqueIds (the iOS accessibilityIdentifier) are stable across snapshots and are the preferred way to target a control across UI changes.launch_app, idb returns just the AXApplication root with no children. A naive hash-stability check would return instantly with an empty tree. The implementation resets the stability timer whenever it sees a degenerate snapshot.down means "see what's below" (finger drags up), matching mouse-wheel/page-down conventions, not finger-direction. Default 0.4s gesture duration prevents iOS from interpreting the release point as a tap on the underlying element.This MCP is fastest and most reliable when interactive controls have accessibilityIdentifier set:
Button("Sign In") { ... }
.accessibilityIdentifier("login_submit_button")
Then tap({id: "login_submit_button"})
只显示了开头部分;其余内容请在仓库中阅读