GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Drive a real iPhone or an iOS Simulator with an AI agent, through XCUIAutomation.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
IOS_MCP_POLICY__CONFIRM_DESTRUCTIVE, IOS_MCP_POLICY__ENABLED, IOS_MCP_WDA__BUNDLE_ID, IOS_MCP_SIMULATOR__SHOW_WINDOW你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"ios-agent": {
"command": "uvx",
"args": [
"ios-mcp"
],
"env": {
"IOS_MCP_POLICY__CONFIRM_DESTRUCTIVE": "your-value",
"IOS_MCP_POLICY__ENABLED": "your-value",
"IOS_MCP_WDA__BUNDLE_ID": "your-value",
"IOS_MCP_SIMULATOR__SHOW_WINDOW": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add ios-agent --env IOS_MCP_POLICY__CONFIRM_DESTRUCTIVE=your-value --env IOS_MCP_POLICY__ENABLED=your-value --env IOS_MCP_WDA__BUNDLE_ID=your-value --env IOS_MCP_SIMULATOR__SHOW_WINDOW=your-value -- uvx ios-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"ios-agent": {
"command": "uvx",
"args": [
"ios-mcp"
],
"env": {
"IOS_MCP_POLICY__CONFIRM_DESTRUCTIVE": "your-value",
"IOS_MCP_POLICY__ENABLED": "your-value",
"IOS_MCP_WDA__BUNDLE_ID": "your-value",
"IOS_MCP_SIMULATOR__SHOW_WINDOW": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"ios-agent": {
"type": "stdio",
"command": "uvx",
"args": [
"ios-mcp"
],
"env": {
"IOS_MCP_POLICY__CONFIRM_DESTRUCTIVE": "your-value",
"IOS_MCP_POLICY__ENABLED": "your-value",
"IOS_MCP_WDA__BUNDLE_ID": "your-value",
"IOS_MCP_SIMULATOR__SHOW_WINDOW": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
IOS_MCP_POLICY__CONFIRM_DESTRUCTIVE envIOS_MCP_POLICY__ENABLED envIOS_MCP_WDA__BUNDLE_ID envIOS_MCP_SIMULATOR__SHOW_WINDOW env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 emazaheri 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.6.0)于32天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ 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
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Give an AI agent an iPhone. It checks every step it takes.
ios-agent lets an AI agent use an iOS Simulator or a real iPhone, over a cable or Wi-Fi. Every action returns the screen it produced, so the agent can tell when a tap did nothing or typed text did not land. Screens arrive as a few hundred tokens rather than tens of thousands. Anything that sends, pays, deletes or reaches another person asks first. It uses only Apple's public APIs, so an Xcode update does not break it. Use it from the terminal, from Claude Code or any MCP client, or as a Python library.
One goal, start to finish, at 2.5x. The agent deep-links into Maps for the driving time, then taps through to walking and transit and scrolls to read the detail: 4 actions, 1 observation, 2,767 device tokens, 49.8s of real time. The terminal is the agent's own transcript; the phone is an iOS Simulator being driven by it.
uv sync && uv run ios-agent quickstart
quickstart checks the toolchain, offers the repairs that are cheap enough to be worth offering, builds WebDriverAgent if it is missing (about 20 seconds, once), and drops you into manual mode, which drives the device by hand and needs no API key. When you want the agent itself:
uv run ios-agent "turn on bold text"
| You want to | Start with |
|---|---|
| Hand an agent a goal and watch it work | uv run ios-agent "turn on bold text", walked through in the quickstart |
| Check that a change to your own app works | docs/check-your-app.md |
| Give Claude Code, Cursor or any MCP client hands on a device | ios-mcp serve, one entry in .mcp.json |
| Run it against your own iPhone, over a cable or Wi-Fi | docs/real-device-setup.md, then uv run ios-agent --pick "..." |
| Drive a device by hand, with no API key, to see what an agent would see | uv run ios-agent manual |
| Build your own agent on top, without the protocol in between | await run_goal(session, "...") or IosSession directly, see docs/library.md |
Typical goals: check that a change you just made works in the running app, change a setting, read an answer out of an app that has no API, or walk a flow on a phone you cannot hand to a test suite. docs/use-cases.md lists what works today, with the evidence for each and what is not supported yet.
The most common complaint about agent tools for phones is an action that reports success while nothing happened. Here:
screen_changed, so a tap that did nothing is visible at once. A real no-op reports screen_changed=False on a physical iPhone too, not only on a simulator.ok: false with what the field shows, rather than being reported as typed.e2; if the screen moved, the host re-finds the same element by identity through six tiers, and refuses when a ref now points at something else.on when a switch is already on does nothing, instead of turning it off.ios-agent doctor checks the toolchain, the runtimes, the tunnel and the runner's signing expiry, and gives a remedy for each failure.ios-mcp reset clears anything else./device switches devices mid-session.ios_find searches the full tree for anything the digest left out, so compaction never hides a control for good.[secret] in their place.Everything goes through XCTest, the framework Apple ships for UI testing. Faster routes through private frameworks were measured and turned down, and Xcode 27 broke several tools that took them. See Why only Apple's public APIs.
ios_operator prompt, over stdio or HTTP. See the tool reference.IosSession, that the server and the agent both sit on, so your own agent can skip the protocol.39 of 39 agent runs succeeded at 1.14x the actions a hand-written oracle needs, for $1.50 in total. Golden flows track tokens, time and how each element was found, and CI fails if the free series moves without a recorded reason. See Measured on real hardware.
If you need Android, React Native profiling, Xcode builds, or many devices in parallel, another tool will suit you better. The documentation site has an honest comparison.
| For | You need |
|---|---|
| Simulator | macOS, Xcode 16.3+, an iOS runtime, Python 3.12+ |
| Physical iPhone | the above plus go-ios, Developer Mode, and a signing identity. Follow docs/real-device-setup.md, which is a longer road than the simulator and has a few steps that look like bugs but are not |
Xcode ships without a simulator runtime. If xcrun simctl list runtimes is empty, xcodebuild -downloadPlatform iOS fetches one (around 8 GB). If a runtime is installed but no simulator has been created, ios-agent offers to create one for you: that part takes about a second.
uv sync
./scripts/prepare_wda.sh simulator # builds WebDriverAgent, once uv run ios-agent doctor # says exactly what is still missing
doctor is the first thing to run whenever anything misbehaves. It checks the toolchain, the simulator runtimes, the tunnel, WebDriverAgent's signing expiry and the model, and returns a remedy for each failure rather than letting it surface later as a connection error.
The app runs those same checks before it touches a device, so a machine that is not set up is told so in about a second rather than after a simulator has booted.
uv run ios-agent # open it, decide later
uv run ios-agent "turn on bold text" # give it a goal uv run ios-agent --pick "turn wi-fi off" # choose the device from a list uv run ios-agent manual # drive it by hand, no model needed uv run ios-agent devices # what is reachable
It streams the model's reasoning as it arrives, shows the digest the model is reading beside it, and keeps the numbers on screen while they climb: actions, observations, device tokens, cost.
/ | command menu, filtered as you type |
/device · ctrl+o | switch phone or simulator mid-session |
esc | stop at the next step, with a complete report; again to abort |
ctrl+r · ctrl+s | re-read the screen · save the audit trail |
| drag to select | copies the selection to the clipboard, no keystroke needed |
--inline | run in a short region under the prompt |
--no-tui | plain lines, for a pipe |
`manual` mode needs no API key. It drives the agent's nine verbs by hand, which is the fastest way to debug perception on an app nobody has pointed this at before.
The front end is held to one rule, asserted rather than argued: watching a run may not change what it costs. tests/tui/test_cost.py runs the same task wrapped and unwrapped and compares every counter by equality.
The provider is configuration, not a dependency. The loop builds through LangChain's init_chat_model, so switching is two environment variables and an extra:
uv sync --extra openai
I
只显示了开头部分;其余内容请在仓库中阅读