CodeDroid

io.github.codedroid-team由 GitHub 账号 codedroid-team 发布v0.1.9更新于 Nov 7, 2026

Use your real Android phone from any MCP client: read the screen, tap, type, run tasks and adb.

发布方自己的服务:droid.monster — specs

已验证STDIO仅桌面浏览器自动化开发者工具

概览

AI 生成的概览

让 MCP 客户端操控你的真实 Android 手机:读取屏幕、点击、输入、滑动、截图、安装 APK 并执行 adb 命令。

可以做什么
  • 读取手机屏幕并截图
  • 点击、输入、滑动、打开应用,或把多步骤任务交给 CodeDroid 的代理,可在一台或多台手机上执行
  • 从电脑安装 APK 并启动,无需数据线或同一网络
  • 在电脑上执行 adb 命令以读取日志和运行测试(可关闭)
  • 使用内置技能逐步引导手机操作、在真机上测试应用,并编写关键用户旅程与测试用例
适用场景
适合需要助手查看或操作真实 Android 设备的场景:确认屏幕上显示什么、走查应用流程、抓取截图,或在手机上构建、安装并验证 Android 应用改动。
运行要求
通过 npx 在本地运行,需要 Node.js 20+,并在 Android 手机上安装 CodeDroid 应用、登录并启用无障碍服务。两台设备都需联网,手机与电脑可处于不同网络。配对使用手机设置中显示的一次性代码。可选环境变量:CODEDROID_MCP_ADB、CODEDROID_MCP_CLIENT、CODEDROID_SERIAL。用 adb 读取日志还需 Android platform-tools 以及 USB 或无线调试连接。
安装前请注意
工具调用会经 TLS 通过 CodeDroid 服务器中转,包括屏幕内容、截图、你要求输入的文字以及剪贴板读写。adb 工具会在你的电脑上执行命令,并可在项目目录和临时目录内推送与拉取文件。install_apk 需要在手机上开启一项设置。手机与服务器会在你的 CodeDroid 账户下保留使用记录(工具名称、是否成功、耗时、客户端与操作系统),但不含工具参数或屏幕内容。配对码 10 分钟后失效且仅可使用一次;用完后请在手机上撤销电脑访问权限。

安装

在 SourceWeft 中

  1. 打开 控制台中的 CodeDroid,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

CodeDroid MCP

Let Claude Code, Codex, Gemini CLI, or any MCP client use your Android phone. Read the screen, interact with apps, take screenshots, and test what you build through CodeDroid. Your phone and computer can be on different networks.

Get started

You'll need Node.js 20+ and CodeDroid on your Android phone, signed in with its accessibility service enabled. Both devices need internet access.

1. Install for your coding client

Every client at once — run in your terminal:

bash
npx -y @codedroid/mcp setup

It finds Claude Code, Codex, Gemini CLI, Cursor, VS Code, Claude Desktop, and Windsurf, and adds CodeDroid to each one after you confirm. Run it again after an update; it skips clients that are already set up. Or install for one client:

Claude Code — run inside Claude Code:

text
/plugin marketplace add codedroid-team/codedroid-mcp/plugin install codedroid@codedroid

Codex — run in your terminal:

bash
codex plugin marketplace add codedroid-team/codedroid-mcpcodex plugin add codedroid@codedroid

Gemini CLI — run in your terminal:

bash
gemini extensions install https://github.com/codedroid-team/codedroid-mcp

Each installation includes the MCP server and skills for phone control and Android app testing. Restart your coding client after installing.

Using another client? See manual MCP setup.

2. Pair your phone

  1. Open CodeDroid → Settings → Computers → Pair a computer on your phone.

  2. Run the command shown there in your computer's terminal. For example:

    bash
    npx -y @codedroid/mcp pair ABCD-EFGH
  3. Tap Allow on your phone when prompted.

Use the command exactly as shown. Pairing codes expire after 10 minutes and work once.

3. Ask your agent

Read the screen on my phone and describe what is open.

Then try:

  • “Open Android Settings and check the Android version.”
  • “Open my app, navigate to sign-in, and take a screenshot.”
  • “Install this APK, launch it, and check for crashes.”*

*install_apk works over CodeDroid's connection, with one setting to allow. Reading logs with adb also requires Android platform-tools and a USB or wireless debugging connection. See adb setup.

What it includes

  • MCP tools to read the screen, take screenshots, tap, type, swipe, open apps, and hand CodeDroid's agent a multi-step task, on one phone or several. See the tool list.
  • Skills: codedroid-phone teaches the agent to drive the phone one checked step at a time, and test-on-device walks it through building, installing, and verifying an Android app change. create-cujs writes an app's critical user journeys as markdown files in its repo (cujs/), create-tests adds test cases to them, and test-on-device runs them on the phone.
  • install_apk to install a build from your computer, with no cable or shared network.
  • An adb tool that runs adb commands on your computer, to read logs and run tests. You can turn it off.

Privacy and security

The plugin runs npx -y @codedroid/mcp@<version>, which downloads this exact release from npm and starts a local MCP server. Everything it sends goes over TLS to the CodeDroid server, orchestrator.codedroid.com unless the pairing command shown on your phone names another:

  • Pairing sends the one-time code, your computer's name, and its OS (for example darwin), so the phone can show which computer is connected.
  • Tool calls are relayed between your agent and the phone: screen contents, screenshots, text you ask it to type, clipboard reads and writes, and task progress. Each call also names the MCP client that made it and its version. The phone asks you to Allow a computer the first time, shows when one is in use, and can stop or revoke it.

The local server listens on 127.0.0.1 only and requires a per-user token. Pairing credentials, the token, and logs stay in ~/.codedroid on your computer. The adb tool runs only on your computer, and its push and pull stay within your project and temp directories. See Architecture for details.

The plugin itself collects no analytics. The CodeDroid app and server keep usage records under your CodeDroid account: pairing and connecting, whether a computer was allowed, and for each phone tool call its name, whether it worked and its error code, how long it took, the MCP client, session and versions involved, your computer's OS and a random id for it, and the task id of a run_task. Usage records never include tool arguments, screen contents, or text you type.

Need help?

Check your connection:

bash
npx -y @codedroid/mcp status

Manage or revoke computer access in CodeDroid → Settings → Computers.

See the reference guide for tools, manual setup, configuration, troubleshooting, and development.

License

MIT © 2026 CodeDroid

来源:README.md,提交 f004ceb

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

3
  1. v0.1.9最新Nov 7, 2026
  2. v0.1.4Nov 4, 2026
  3. v0.1.3Oct 29, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Droid 集成