dsh-phone-buddy
Controls Android devices and emulators over ADB: takes screenshots, taps/swipes/long-presses coordinates, sends key events, injects arbitrary Unicode text via the ADBKeyboard IME, and runs a one-shot type → send → verify flow with a confirming screenshot.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
dsh-phone-buddy
English | 简体中文
Android device control and a banter knowledge base for DeepSeek Harness, exposed as 14 MCP tools.
Control a physical device or an emulator from the agent: screenshot, tap, swipe, long-press, key events, CJK text injection, and a one-shot "type → send → verify" flow. Alongside it sits a retrieval layer over four markdown knowledge files (persona card, playbook, principle notes, formula drills).
Why it exists
Two problems this solves, both found the hard way:
adb shell input textcannot type Chinese. It throwsNullPointerException: Attempt to get length of null arrayfor any non-ASCII input. The only reliable channel is an ADBKeyboard broadcast with base64 payload — this plugin wraps that.Chat platforms silently rewrite content. A blocked message becomes a row of asterisks, and the recall window is often two minutes. The send tool therefore returns a screenshot and tells you to look at it immediately, because the server has no OCR and cannot judge on your behalf.
Related MCP server: Phone MCP
Tools
Device (10)
Tool | Purpose |
| Active device, kind (physical/emulator), foreground window, IME, resolution |
| List every adb device, flagged emulator or physical |
| Switch the active device |
| Screenshot to a local PNG; returns path, serial, and real resolution |
| Tap a coordinate |
| Swipe between two points |
| Long-press (message menus) |
| Key event (4=back 3=home 26=power 82=unlock) |
| Inject text into the focused input (any Unicode) |
| Tap input → inject → tap send → screenshot, in one call |
Knowledge (4)
Tool | Purpose |
| Cheat sheet: filter-safe patterns, formulas, recall flow, hard rules |
| List persona cards |
| Keyword search across the knowledge files |
| Read one file, or one persona card |
Requirements
Dependency | Required | Note |
Node.js | yes | Bundled with DSH |
adb | yes | platform-tools |
ADBKeyboard IME | yes | the only path for CJK input |
Device or emulator | yes | USB debugging, or |
root | no | screenshot/tap/type all work with plain shell |
Physical device vs emulator
Leave DEVICE_SERIAL unset and the plugin picks the first online device — both kinds work.
Physical | Emulator | |
Serial | USB serial |
|
Connect | USB + authorize on device |
|
Common ports | — | LDPlayer 5555 / MuMu 7555 / Nox 62001 / MEmu 21503 |
Detection |
|
|
phone_shot returns the actual resolution and a conversion hint, because the image preview in most viewers is scaled.
Install
npm i -g dsh-phone-buddy
# or inside a DSH profile
dsh plugin add dsh-phone-buddyThe postinstall step mirrors server.mjs and knowledge/ into <DSH_HOME>/plugins/phone-buddy/ and keeps any persona files you already wrote. Restart DSH afterwards.
Then enable the IME once per device:
adb install ADBKeyboard.apk
adb shell ime enable com.android.adbkeyboard/.AdbIMEConfiguration
Env | Default | Meaning |
|
| Absolute path to the adb binary |
| empty | Pin one device; empty = auto-pick first online |
|
| ADBKeyboard IME id |
|
| Screenshot output directory |
| first non-template | Default persona card |
Personas
knowledge/personas/ holds one .md per persona; the file name is the id. TEMPLATE.md is a fill-in-the-blanks starter. Change accounts by adding a card — nothing in the code assumes a particular in-game name.
Limitations
No OCR.
phone_sendreturns a screenshot path; judging it is the caller's job.Coordinates must be measured. Every resolution and layout differs.
The IME gets switched.
phone_typeenables ADBKeyboard when needed and does not switch back.Single-device assumption in each call, though switching is supported.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Let Claude, ChatGPT and other agents use your Android phone: see the screen, tap, type, open apps.
Give your AI agent a real cloud Android phone: push APKs, drive it, get screenshots and logs.
Cloud Android devices for AI agents: install an APK, read the screen, tap, type, read logcat.
Mobile sandboxes for AI agents: each agent gets its own cloud Android phone or iOS simulator over MCP, reads the screen, taps, types and installs your app. Android $0.01/min, iOS $0.03/min, parked phones free.
Related MCP Servers
- AlicenseCqualityBmaintenanceEnables AI agents to control Android phones, emulators, redroid containers, iOS devices, and cloud-hosted devices through a perceive-act-verify loop of screen reading, taps, gestures, typing, and app launching. Exposes 138 tools for driving screens, elements, and files over adb, Portal APIs, and ios-portal without running ARM-only code on the device.941MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to remotely control a real Android phone over MCP with no ADB, root, or emulator, by connecting a broker server to a sideloaded APK. Exposes tools to list devices, capture screenshots, read the UI tree, open links and deep links, and perform taps, swipes, typing, and global navigation actions.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP-compatible AI agents to perceive and control an Android phone through tools for screenshots, visible text and coordinates, app/screen queries, taps, swipes, text input, key events, app launching, and interrupt/resume, closing the perception-action loop.6MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to control an Android phone by reading the screen, taking screenshots, tapping, typing, swiping, opening apps, and running multi-step tasks. It also supports on-device Android app testing and optional adb commands.1,381 npm2MIT