About Dsh Android
Dsh Android is an MCP server published by ZSeven-W in the Agents category: deepSeek Harness plugin for Android — build, run, and interact with a live emulator or USB device stream inside a conversation, driven entirely through adb. Conduid read 20 tools from its source: android_app_info, android_backtrace, android_boot, android_build_run, android_devices, android_find_text and 14 more. No package is published for it, so it installs from a source checkout.
The repository has 371 stars and 37 forks, is licensed MIT, and its last commit was on 10 Nov 2026. The latest release is v0.1.0-rc.9. It follows v0.1.0-rc.8, and the 5 most recent releases go back to v0.1.0-rc.3. It passes 3 of the 5 static checks Conduid ran on the repository; it does not pass Tests present and No dynamic code execution. Its topics include accessibility, adb, android, coding-agent, deepseek-harness and dsh.
Install
git clone https://github.com/ZSeven-W/dsh-androidTools (20)
android_app_infoInstalled-app facts from `dumpsys package <package>`: version name and code, data directory, code path, first-install time, and the system flag. A missing app returns `installed: false` plus a note naming `android_list_apps` — it does not throw.android_backtraceAsk the process to dump its stacks (`kill -3`) and read the resulting ANR trace from `/data/anr/`. Most non-rooted devices refuse that directory, so the tool degrades to the crash buffer (`logcat -b crash -d`) and reports honestly which engine answered and what it cannot see.android_bootStart the live stream. Pass an ONLINE serial to stream it immediately, or an AVD name to launch that emulator first and stream it once it finishes booting (minutes on a cold start). The stream stays alive for the conversation so the panel can show the device live.android_build_runBuild a Gradle project (`./gradlew assembleDebug`), install the resulting debug APK (`adb install -r`), and launch it. Takes minutes for a full build; on failure the result carries the tail of the Gradle error output.android_devicesList every device `adb devices -l` reports (serial, state, emulator/physical, model, Android version, API level, AVD name) plus the machine's AVD names under `avds`. Use it to discover the serial the other tools take. A failed enumeration throws instead of returning an empty list.android_find_textRecognize the current screen with the selected OCR backend. Returns confidence-sorted pixel boxes (top-left origin), capped at 40 KB.android_interactInteract with the streamed device: tap at normalized 0..1 coordinates, type text, press a navigation or hardware button (`back`, `home`, `recents`, `power`, `volume_up`, `volume_down`, `menu`, `enter`, `delete`), send a swipe gesture, or scroll. After the action settles (~300 ms) a fresh screenshot shows the effect.android_launch_appLaunch an installed app by `packageName`, or by `name` (a case-insensitive label substring resolved through the same listing). Exactly one of the two. `relaunch` force-stops the app first.android_list_appsList the packages installed on the device (`pm list packages`), with the version name from `dumpsys package` and a human label when one is resolvable — a third-party package name cannot be guessed, so list it or pass `name` to `android_launch_app`.android_logsRead what the device logs: `snapshot` (`logcat -d -v time` over a recent window, default 2m) or `follow` (a bounded live capture for `duration_seconds`, default 10, max 60 — never a hanging stream). Filter to one app with `bundle_id` (the Android package name, resolved to its pid). Output is capped at ~300 lines / 30 KB with a narrowing hint.android_meminfoParse `dumpsys meminfo <package>`: total PSS, the Java/native/graphics split, and the top categories — the Android answer to a leak summary.android_processesList the device's running processes (`ps -A`) as `{pid, name}` — the pid source for `android_backtrace`.android_screenshotCapture a PNG and return a small JSON summary (path, bytes, dimensions, device); the image renders in the card and the panel, never as an image block.android_shutdownShut an emulator down (`adb emu kill`) and stop the stream when it targets that device. A physical device is refused with the reason: adb cannot power off a phone.android_tap_elementTap an element by identity — `resource_id` matches the node's `resource-id`; `text` matches its text or content-description. Exact match first, then case-insensitive substring; nested duplicates collapse to one target and an ambiguous match lists up to 8 candidates instead of picking one. Disabled elements are refused. The tap lands on the element center, then a ~300 ms screenshot shows the effect; pass `expect_text` / `expect_gone` and the tap plus its verification become one round trip.android_tap_rowTap at a relative position inside one visible row (`index` from `android_ui_rows`; `x`/`y` as fractions of that row's frame, default 0.5 = center). The frame comes from a FRESH tree read, so no absolute coordinates are guessed, and an out-of-range index FAILS rather than clamping. With `expect_count={key, delta}` the tool re-reads the row after ~800 ms and verifies the counter moved by exactly ±1; an unknown key REFUSES the tap before it happens.android_tap_textTap the best exact or substring text match, or report ambiguous candidates. Sends the recognized pixel center directly, then captures the result.android_ui_rowsRead a list/feed screen (`RecyclerView` and friends) as ROWS instead of a raw tree: repeated same-shaped children become rows carrying an index, a pixel frame, the aggregated label, and the counters parsed out of that label (number + classifier token, Chinese or English — no app vocabulary is hardcoded). Counter keys round-trip: pass one exactly as listed to `android_tap_row.expect_count`.android_ui_treeDump the foreground app's `uiautomator` hierarchy as nodes — `type` (the class tail), `text`, `contentDesc`, `resourceId`, `bounds` in pixels, `enabled`, `focused` — capped at ~40 KB (the deepest levels are pruned and `truncated` is set).android_wait_forWait for text to appear or disappear. Default 8 s, maximum 60 s; timeout returns `matched:false`.Security checks
Static checks derived from the repository yesterday. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 4.2K words.
- ✓License declaredThe repository declares the MIT license.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- ✓Dependencies pinnedDependency versions are pinned by pnpm-lock.yaml.
- !No dynamic code executionScanned 56 source files and found 1 call to eval or shell execution, in src/adb.ts:269. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
What the source scan found
- Transport
- None found in the source
- Starts other programs
- 11 callssrc/adb.ts:221, src/adb.ts:269, src/adb.ts:283
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- No file writes or deletes
- Lockfile
- pnpm-lock.yaml
Pattern matches on the source text of 56 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 4.2K words, fetched yesterday. The original in the repository is authoritative.
Read full README