RunCue

RunCue

RunCue MCP enables coding agents to navigate, inspect, and verify iOS app UI using natural language tasks via WebDriverAgent. It provides tools for running UI flows, checking UI state, listing devices, and diagnosing WDA setup.

Category
访问服务器

README

<p align="center"> <img src="docs/assets/runcue-logo.png" alt="RunCue logo" width="180" /> </p>

<h1 align="center">RunCue</h1>

RunCue is a developer UI navigation tool for iOS apps. It uses natural-language tasks to navigate, type, inspect, and verify app UI through WebDriverAgent, with MCP tools designed to work alongside build tools such as XcodeBuildMCP.

RunCue is intentionally scoped: it does not build, install, or debug your app. Use XcodeBuildMCP or your normal Xcode workflow for build, launch, screenshots, and logs. Use RunCue when you need an agent to reach a specific UI state.

Demo

Click the screenshot to open the demo recording.

<p align="center"> <a href="https://github.com/lihei12345/RunCue/blob/main/docs/assets/screen-recording-720p.mov"> <img src="docs/assets/terminal-screenshot.png" alt="RunCue terminal execution screenshot" width="860" /> </a> </p>

<p align="center"> <a href="https://github.com/lihei12345/RunCue/blob/main/docs/assets/screen-recording-720p.mov">Watch the demo recording</a> </p>

Features

  • WDA-only iOS automation for simulators and physical devices.
  • MCP tools for coding agents: runcue_run, runcue_check, runcue_devices, and runcue_doctor.
  • View-tree-first observation with screenshot fallback for WebView, SwiftUI, custom UI, and sparse accessibility trees.
  • Direct WDA text input through /keys, avoiding paste-menu workarounds.
  • Planner, locator, executor, and verifier loop for more stable multi-step navigation.

Requirements

  • macOS with Xcode installed.
  • Node.js 20 or newer.
  • A visible iOS Simulator or trusted physical iOS device.
  • An OpenAI-compatible vision-language model (VLM) API key.

For physical devices, you also need:

  • Device trust enabled.
  • Developer Mode enabled.
  • The device unlocked while running tasks.
  • WebDriverAgent signing configured through RUNCUE_WDA_TEAM_ID or RunCue config.

Install

npm install -g runcue

For local development from this repository:

npm install
npm run build
node dist/cli.js --help

Configure Models

RunCue needs a vision-language model, not a text-only LLM. The provider must be OpenAI-compatible and support image input for visual fallback, visual grounding, and screenshot checks.

Supported wire APIs:

  • chat using chat.completions with text and image_url content parts. This is the default.
  • responses using the OpenAI Responses API with input_text and input_image.

The local config file is:

~/.runcue/config.json

RunCue uses built-in defaults when this file does not exist. The file is created when you run runcue config set ..., or you can create it manually.

Inspect the effective config:

runcue config list

Set the default provider:

runcue config set provider my-vl

Environment variable references such as ${MY_VL_API_KEY} are resolved at runtime. A minimal custom provider looks like this:

{
  "vlm": {
    "default": "my-vl",
    "providers": {
      "my-vl": {
        "baseUrl": "https://api.example.com/v1",
        "model": "your-vl-model",
        "apiKey": "${MY_VL_API_KEY}",
        "wireApi": "chat",
        "inputMode": "viewtree"
      }
    }
  }
}

Provider fields:

Field Required Meaning
baseUrl Yes OpenAI-compatible API base URL.
model Yes VLM model name accepted by that provider.
apiKey Yes API key value or environment reference such as ${MY_VL_API_KEY}.
wireApi No chat or responses; defaults to chat.
inputMode No viewtree or screenshot; defaults to viewtree. Use screenshot only for providers/apps where visual-only operation is preferred.
headers No Extra HTTP headers to pass to the provider.

RunCue ships with several built-in provider examples, including DashScope/Qwen VL. They are examples, not a requirement. For example:

export DASHSCOPE_API_KEY="your-dashscope-api-key"
runcue config set provider dashscope-vl-plus

Quick Start

List devices:

runcue devices

Check WDA readiness:

runcue doctor --device "iPhone 17 Pro Simulator" --platform ios-simulator

Run a navigation task:

runcue run "Open Maps, search for the nearest Walmart, and start navigation" \
  --device "iPhone 17 Pro Simulator" \
  --platform ios-simulator \
  --bundle-id com.apple.Maps \
  --fresh-app \
  --max-steps 10 \
  --timeout 120

For complex or non-standard app flows, include product-specific UI knowledge in the task or hints, for example:

runcue run "Open Maps, search for the nearest Walmart, and start navigation. In Apple Maps, if there is no normal Start Navigation button, tap the Route Steps item in the route card list to enter navigation." \
  --device "iPhone 17 Pro Simulator" \
  --platform ios-simulator \
  --bundle-id com.apple.Maps \
  --fresh-app

XcodeBuildMCP + RunCue Workflow

RunCue is designed to cooperate with XcodeBuildMCP instead of replacing it. XcodeBuildMCP owns build, install, launch, screenshots, logs, and Xcode project state. RunCue owns UI navigation and state checks on the same device.

Coding Agent
  |
  | 1. Build, install, and launch the app
  v
XcodeBuildMCP
  |
  | build_run_sim / launch_app_sim
  | returns simulator name or UDID
  v
iOS Simulator or Device
  |
  | 2. Navigate to the target UI state on that same device
  v
RunCue MCP / CLI
  |
  | observe -> plan -> locate -> execute -> verify
  | through WebDriverAgent
  v
Target App UI State
  |
  | 3. Capture final evidence when needed
  v
XcodeBuildMCP
  |
  | screenshot / logs / test output
  v
Coding Agent

Practical rules:

  • Use XcodeBuildMCP first to prepare the app state.
  • Pass the exact simulator name or UDID from that build/run flow to RunCue.
  • Let RunCue perform UI actions while it is running.
  • Use XcodeBuildMCP again after RunCue finishes for screenshots, logs, or build diagnostics.

MCP Usage

RunCue exposes an MCP server over stdio:

runcue mcp

Example Codex MCP configuration:

[mcp_servers.RunCue]
type = "stdio"
command = "runcue"
args = ["mcp"]

For a local checkout:

[mcp_servers.RunCue]
type = "stdio"
command = "node"
args = ["/absolute/path/to/RunCue/dist/cli.js", "mcp"]

MCP Tools

  • runcue_run: autonomously navigate a UI flow.
  • runcue_check: inspect the current UI state with a question.
  • runcue_devices: list iOS devices and simulators visible to Xcode.
  • runcue_doctor: diagnose WDA setup and signing issues.

Architecture

RunCue iOS UI Navigation Architecture

The current architecture is WDA-only:

Coding Agent
  -> RunCue MCP / CLI
  -> Agent loop: planner -> locator -> executor -> verifier
  -> WebDriverAgent HTTP API
  -> iOS Simulator or physical iOS device

See docs/architecture.md for the current architecture and docs/tech-solution-v2.md for the longer design record.

Documentation

Development

npm install
npm run build
npm test
npm_config_cache=/private/tmp/runcue-npm-cache npm pack --dry-run

Third-Party Code

RunCue vendors appium-webdriveragent so the CLI can bootstrap WDA without asking users to manually clone a separate project. See THIRD_PARTY_NOTICES.md.

License

RunCue is licensed under the MIT License. See LICENSE.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选