mcpField
H
Handsy AI

Handsy AI

本地服务
handsy.tech其他4.3k今天更新

关于 Handsy AI

Handsy AI(ESP32 iPhone Agent)通过 ESP32-S3、AirPlay 镜像和 USB HID,让 AI Agent 查看并操作真实 iPhone,无需越狱或运行时电脑。iPhone 应用使用兼容 OpenAI 的视觉模型规划操作,并提供运行回放。

主要功能

  1. 01AirPlay 屏幕镜像
  2. 02USB HID 鼠标与键盘控制
  3. 03视觉模型驱动的操作规划
  4. 04运行记录与逐步回放
  5. 05支持 Siri、快捷指令和小组件

适用场景

  1. 01让 Agent 操作 iPhone 应用
  2. 02自动完成设置和时钟等界面任务
  3. 03回看操作步骤并导出记录
  4. 04从编码 Agent 控制连接的 iPhone

MCP 相关

`esp32agent` CLI 可作为 MCP 服务运行,让电脑上的编码 Agent 通过开发板查看和控制 iPhone。仓库还包含该 MCP 服务及 Agent 技能。

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

mcp.json · 通用配置
{
"mcpServers": {
"onehumanbeing-esp32agent": {
"command": "npx",
"args": [
"-y",
"esp32agent"
]
}
}
}
启动命令npx -y esp32agent

本地服务需要在你的电脑上安装运行环境(如 Node.js 18+)。各客户端的配置文件位置不同,请参考客户端文档。

安装包
npmesp32agent0.1.1

工具

还没有获取到工具列表

本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。

README 原文English

来自项目 README

README 暂无中文译文,以下为英文原文;中文介绍见上方。

Building on this project? Keep the LICENSE and credit ESP32 iPhone Agent by Henry Yuan in your README and posts. See NOTICE.

ESP32 Agent logo

ESP32 iPhone Agent

Let an AI model use a real iPhone with a $7 ESP32. Just the phone and the board: no computer, no jailbreak.

English · 简体中文

Demo video and updates: X @iamhenryyuan · YouTube demo

CI License: MIT iOS Board

警告

Only follow the install steps in this README. Never run commands from issues or comments (for example a "quick install" one-liner such as PowerShell iex(irm ...)); these are not from the maintainers.

New: the computer is gone. The board is now the AirPlay receiver and the mouse, and the agent runs in an iPhone app on the same phone. The original version (a Mac/Linux computer running UxPlay and a Python server) is kept as tag v0.1.0 and branch legacy. See docs/legacy.md.

An iPhone with a XIAO ESP32S3 plugged in, setting an alarm

"Set an alarm for 8:00 AM that repeats every Monday and Tuesday, then save it": the agent leaves its own app, opens Clock, types the time into the wheel, ticks the days and saves. (Photo from v0.1.0; the task is the same.)

ESP32 Agent app: real phone vs. what the agent sees, and pointer calibration

Left: the real phone. Right: what the agent sees through the board's AirPlay mirror. The second shot is the pointer calibration.

How it works

iPhone ──Screen Mirroring (Wi-Fi)──▶ ESP32-S3: AirPlay receiver ──BLE──▶ ESP32 Agent app (same iPhone)
   ▲                                    own hotspot, H.264 passthrough        decode → vision model → action
   └──────── USB HID mouse + keyboard ◀──────────── BLE commands ◀────────────────────┘
  • Eyes — AirPlay to the board. The board opens its own Wi-Fi hotspot and appears in the phone's Screen Mirroring list as ESP32 Agent. It keeps the H.264 stream (no decoding on the board) and forwards it to the app over BLE. The phone keeps using cellular data for the model while it is on the board's hotspot.
  • Hands — USB HID. The board is a standard USB mouse and keyboard. With AssistiveTouch on, the mouse moves an on-screen pointer, so a click is a tap and a drag is a swipe.
  • Brain — the app. The app decodes the stream, sends screenshots to any OpenAI-compatible vision model, and runs a planner and an actor: tap, swipe, draw, type, press keys, go home, finish. It runs in the background while it works; the Dynamic Island shows what it is doing.
  • Closing the loop. The pointer is relative, so the app tracks it and re-homes it in a corner; before precise taps it wiggles the pointer, finds it on screen and corrects the miss. After each action it waits for the screen to settle and tells the model whether anything changed. A lost board, hotspot or mirroring link pauses the run and resumes it from the same step.
  • Review. Every run is kept on the phone: replay it step by step with the taps and swipes drawn on top. Export the screenshots, actions and saved annotations from Runs → open a run → ⋯ → Export trace for analysis by another agent. See Export runs for agent review for batch export, USB copying and file details.

Hardware

PartNotes
ESP32-S3 boardTested with a Seeed Studio XIAO ESP32S3 (plain version, 8 MB PSRAM; not Sense, not Plus). About $7. Any ESP32-S3 with native USB on its USB-C port and PSRAM should work.
iPhoneiOS 18 or later, with cellular data (the Wi-Fi is taken by the board's hotspot). USB-C models plug in directly; Lightning models need a Lightning to USB Camera Adapter. The phone powers the board.
Vision modelAny OpenAI-compatible chat API that accepts images: a cloud API or your own server.
Mac with XcodeOnly to flash the board and build the app once. Not needed at run time.

Quick start

1. Flash the board (plugged into the Mac)

Install arduino-cli, the ESP32 core 3.3.x and NimBLE-Arduino 2.5.x, then:

arduino-cli lib install "[email protected]"
hardware/flash.sh            # optional: [serial port] [--debug]

Always build with flash.sh: it applies the BLE buffer sizes in hardware/hid_bridge/nimble_cfg.h.

2. Install the app
cp ios/Config/Local.xcconfig.example ios/Config/Local.xcconfig   # set DEVELOPMENT_TEAM and IA_BUNDLE_ID
open ios/IPhoneAgent.xcodeproj                                    # run the IPhoneAgent scheme on your iPhone

The project is generated with XcodeGen from ios/project.yml (cd ios && xcodegen). A free Apple ID can sign it (re-sign every 7 days). The one-tap hotspot join needs the Hotspot Configuration capability (a paid account); without it the app shows the hotspot password to join by hand.

3. Set up (once, in the app)

Plug the board into the iPhone and open ESP32 Agent. Setup walks through four steps and checks each one itself:

  1. Plug Me In — pair the board over Bluetooth.
  2. Let Me See the Screen — join the board's Wi-Fi, then Control Center → Screen Mirroring → ESP32 Agent.
  3. Let Me Use the Pointer — turn on AssistiveTouch; the app calibrates the pointer by itself.
  4. Give Me a Brain — enter your model endpoint and key (stored in the Keychain), then choose a vision model from the endpoint's model list (or enter its model ID).
4. Give it a task

Type a goal (for example "Open Settings and go to Wi-Fi") and press Start. Stop it from the Dynamic Island, or come back to the app. Siri, Shortcuts, widgets and Control Center can run saved tasks.

Use from a coding agent

The esp32agent CLI (npm, npx -y esp32agent mcp) is an MCP server, so a coding agent on your computer can see and drive the iPhone through the board (board firmware v0.2.2 or later). This repository is also a plugin with that MCP server and an agent skill (skills/handsy/SKILL.md). In Claude Code:

/plugin marketplace add onehumanbeing/esp32-iphone-agent
/plugin install esp32agent@handsy

Model and prompts

  • Any OpenAI-compatible vision endpoint works (vLLM, SGLang, llama.cpp, Ollama, cloud APIs). The app lists the endpoint's models for you to choose one explicitly; you can also enter a model ID, and set a separate planner and actor model.
  • The prompts are plain text in prompts/ and bundled with the app: edit them, rebuild, done.
  • The project was developed with nvidia/Qwen3.8-Flash-Next-NVFP4 served on two DGX Sparks (TensorFold).

Project layout

ios/        the app (SwiftUI): BLE link, H.264 decode, agent, setup, replay, Live Activity, widgets; tests
prompts/    planner / actor prompts used by the app
hardware/   ESP32-S3 firmware (Arduino): BLE GATT, hotspot, AirPlay receiver, USB HID; flash script,
            host tests, Mac BLE test harness (hardware/tools)
docs/       BLE protocol, legacy version notes
server/     legacy v0.1.0 computer-side server; not used by this version (see server/README.md)

Debugging without the phone app: hardware/tools/board_test.py plays the app over BLE from a Mac (hardware/tools/README.md). Board ↔ app protocol: docs/ble-protocol.md.

Roadmap

  • Drop the computer: the board mirrors and clicks, the app on the phone thinks
  • Landscape apps (coordinates and calibration assume portrait)
  • Non-ASCII text input (e.g. Chinese through the iOS pinyin keyboard)
  • Faster steps: several actions per model call, pointer checks only when needed
  • A curated list of models that work best with this setup, shown inside the iOS app (suggested by @asharthinks)

Limitations

  • AirPlay source must be an iPhone. Screen Mirroring from macOS is not supported: the handshake can look healthy while the board never receives video.
  • BLE carries about 300-500 kbps, so the screen is mirrored small (480×1040, ≤5 fps); each step takes a few seconds, most of it the model.
  • iOS does not mirror some screens (passcode entry, Apple Pay, DRM video); the agent cannot see them. Mirroring stops when the phone locks.
  • While the agent runs, the phone's Wi-Fi is the board's hotspot (no internet over it); the model is reached over cellular data.
  • The app leaves itself with a private iOS API (suspend); fine for a self-built app, to be replaced before the App Store.
  • Keyboard input is ASCII only. Landscape apps are not supported yet.

Responsible use

Only automate devices and accounts you own or are allowed to use, and respect the terms of the apps involved. The agent acts with your hands: watch it, and keep the stop button within reach.

Contributing

Issues and pull requests are welcome; see CONTRIBUTING.md. Security reports: SECURITY.md.

Related projects

ProjectApproachDifference from this project
VersaiOSUxPlay mirroring + ESP32-S3 Bluetooth mouse + vision modelNeeds a computer; one tap per instruction
ja1chen/actellAgent app on the iPhone via Apple's CoreDevice debug channelNeeds Developer Mode and a Developer Disk Image
AidenAI-IO/aiden-firmwareHDMI capture + USB keyboard/mouse + multimodal modelCapture hardware; mainly Android
yoyicue/glassboxPicoKVM HDMI capture + USB HIDmacOS controller and PicoKVM
boboabw/phone-agentESP32-S3 Bluetooth HID + AssistiveTouch, agent as an iPhone appClosest to this version; this one also brings the eyes (AirPlay on the board)
VKCOM/devicehubESP32 Bluetooth mouse for iOS device farmsDevice-farm tooling, no AI agent

WebDriverAgent/XCUITest-based tools such as mobile-mcp and Midscene need a Mac and code signing.

Acknowledgements

UxPlay (the AirPlay receiver the firmware's is ported from) · NimBLE-Arduino · Arduino ESP32 core and TinyUSB

License

MIT, except hardware/hid_bridge/src/airplay/ (ported from UxPlay), which is GPL-3.0; the firmware binary that links it is therefore distributed under GPL-3.0. Files under skills/ are MIT-0 (MIT No Attribution); the rest of the repository keeps the license above.

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。