codedroid-mcp

mcp
Guvenlik Denetimi
Uyari
Health Uyari
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 9 GitHub stars
Code Uyari
  • fs module — File system access in .github/workflows/ci.yml
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Use your Android phone from Claude Code, Codex, Gemini CLI, or any MCP client.

README.md

CodeDroid MCP

Let Claude Code, Codex, Antigravity, 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 an Android phone. Both devices need internet access.

Fastest: one command

npx -y @codedroid/mcp setup

It adds CodeDroid to every coding client it finds (Claude Code, Codex, Antigravity, Cursor, VS Code,
Claude Desktop, Windsurf, Zed) and signs this computer in with the Google account you use in
CodeDroid, in your browser: check that the page shows the code the terminal prints on its own
line. Every phone signed in to CodeDroid with that account is reached, with nothing to pair. setup
then connects to your phones, and each asks once whether to allow this computer: tap Allow. Then
restart your coding client.

With phones or tablets plugged in (USB debugging on, or Wireless debugging), setup also
installs the CodeDroid app on each if needed, turns on its accessibility service, and signs it in
with your account, all at once, so a device with no Google account on it needs no sign-in of its own
and no Allow to tap. With several, it lists them and asks once whether to set them all up, or
lets you pick. Setting up over USB needs adb.

That is the last command you need: every client launches @codedroid/mcp@latest, so a new
release is with you the next time the client starts, and the running server brings the skills and
plugin copies on your computer along with it (details).

Already have the plugin? Ask your agent to "set up my phones" instead: it does the same, and asks
you before installing anything.

Or step by step

1. Install for your coding client

Every client at once: run npx -y @codedroid/mcp setup in your terminal. Or for one client:

Claude.ai, Claude Desktop, Cowork, or Claude Code without installing anything: add
CodeDroid's hosted server by URL, then sign in with the Google account you use in the CodeDroid
app. No server runs on your computer: Claude reaches your phone through CodeDroid's server, so
there is no pairing, but no adb or install_apk either. In Claude Code:

claude mcp add --transport http codedroid https://orchestrator.codedroid.com/mcp

Claude Code, with adb and installs from this computer: run in your terminal:

claude plugin install codedroid --marketplace codedroid-team/codedroid-mcp

Codex: run in your terminal:

codex plugin marketplace add codedroid-team/codedroid-mcp
codex plugin add codedroid@codedroid

Antigravity: run in your terminal:

npx -y @codedroid/mcp setup --client=antigravity

It adds the CodeDroid plugin to ~/.gemini/config/plugins. Restart Antigravity and find it under
Customizations > Installed.

Cursor: Add to Cursor

VS Code: Install in VS Code

Zed: add this to ~/.config/zed/settings.json (Windows: %APPDATA%\Zed\settings.json):

{
  "context_servers": {
    "codedroid": {
      "command": "npx",
      "args": ["-y", "@codedroid/mcp"]
    }
  }
}

Each plugin 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. Sign in

  1. Install CodeDroid from Google Play, sign in, and turn on its
    accessibility service when it asks.

  2. On your computer, run:

    npx -y @codedroid/mcp login
    

    and sign in with the same Google account in the browser that opens. Every phone on the account
    is reached. Check that the page shows the code the terminal printed.

  3. Tap Allow on your phone when prompted.

With no browser on this computer, open the link login prints on any device, the phone too. For a
phone signed in with another Google account, plug it in with USB debugging on and run
npx -y @codedroid/mcp setup: CodeDroid hands the pairing code to adb, so there is none to type.

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.
    Phones can be shared like a device farm: an agent claims one for its job, and every other agent
    or computer sees it in_use until it is released (details).
    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.
    app-e2e tests an app end to end: it explores the app, writes a test PRD, critical user
    journeys and test cases into its repo (e2e/), stops for your review of each, runs the cases on
    the phone and writes a report with a screenshot per case. Each step is its own skill
    (app-e2e-explore, -prd, -cujs, -testcases, -run), and app-e2e-verify has a fresh
    agent judge each test case's design, hunting for a broken app that would still pass it, before
    you review them. Then app-e2e-rerun runs some of the cases (by id, journey or priority, last
    failures, the ones a change touches, a flaky check), app-e2e-bug turns a bug into a case that reproduces it, and app-e2e-maintain keeps
    the cases current as the app changes. After writing the documents, the agent runs
    npx -y @codedroid/mcp e2e report, which writes a quality report and HTML pages into e2e/
    and lists any problems in them; it needs no phone (details).
  • Flows: the agent records what it does as a Maestro flow
    (record_start, record_stop), and run_flow or npx -y @codedroid/mcp flow run <file> replays
    it on the phone with no model in the loop, from a terminal or CI. A flow written for Maestro runs
    too. batch runs several known steps in one call. See flows.
  • A screencast: the screencast tool, or npx -y @codedroid/mcp screencast, streams the phone's
    screen live to your browser while the agent drives it, and you can click, drag, scroll and type
    there to drive it yourself. Over adb it is H.264 at up to 30 fps; any other paired phone streams
    through CodeDroid (video up to 15 fps once set up over USB, else screenshots at about 3 fps). See
    screencast.
  • 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.

The flows, the screencast, the viewer and the last two run on your computer, so they come with the local install only. Claude's
directory lists claude-plugin/ in this repository: a plugin for testing your own app, with the
codedroid-phone and test-on-device skills and the hosted server at /mcp/test, whose tools act
only in debuggable apps and have no run_task. Adding the server by URL gives the phone tools alone.

Privacy and security

The plugin runs npx -y @codedroid/mcp@latest, which asks npm for the newest release, downloads
it when it has changed, and starts a local MCP server; the app-e2e skills run
npx -y @codedroid/mcp e2e report the same way. Once a day the server asks npm for the newest
version too, sending nothing but the package name (CODEDROID_MCP_UPDATE_CHECK=0 turns that off).
Everything else 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.
  • Setting up over USB downloads the app from get.codedroid.com, checks it against the
    published SHA-256 before installing it, and changes only CodeDroid's own settings on the phone
    (its accessibility service, keyboard and permissions). It installs only after you agree.
  • 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. A phone on this computer's adb (USB,
    Wireless debugging or an emulator) is reached over adb instead, so its tool calls never leave
    your computer, and it needs no sign-in or pairing.

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.

When your agent calls run_task, the instruction travels through the CodeDroid relay to your phone,
which runs the task with CodeDroid's servers and our AI model provider (OpenAI). The relay passes
messages through without storing them. CodeDroid does not keep task content (instructions, task
history, screen contents, screenshots, text the agent types, clipboard contents, or model inputs and
outputs) beyond what is needed to run the task, and never longer than 30 days. While your account is
open we keep only task metadata: ids, timestamps, status, token counts, cost, tool names, error
codes, and a one-way hash of the instruction. OpenAI may keep task conversations for a limited time
under its own data policies. CodeDroid is not intended for users under 18. See the
privacy policy.

Need help?

Check everything at once (Node, adb, pairing, the daemon, each phone, your coding clients):

npx -y @codedroid/mcp doctor

Manage or revoke computer access in CodeDroid → Settings → Computers. Run flows from CI with
the GitHub Action.

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

License

MIT © 2026 CodeDroid

Yorumlar (0)

Sonuc bulunamadi