Preface¶
When performing Android automation on Windows or allowing a model to “see” the emulator screen, common practices involve writing separate scripts to call adb or wrapping another layer of MCP. DeepSeek Harness (DSH) turns capabilities into plugins, allowing the model to directly call unified named tools without repeatedly piecing together shell commands in the conversation. Below is an introduction to the community plugin dsh-mumuemulator-use (Maintainer: WinTerminal, Category: Client): it controls the local MuMu Player 12 via MuMu’s built-in MuMuManager.exe and adb, without relying on Python, spinning up a separate MCP service, or adding an extra serialization layer; Windows only.
What is this¶
dsh-mumuemulator-use is an npm plugin package for DSH (version 1.1.1 and license MIT in current materials). In one sentence, its positioning is: to place the local MuMu Player 12 emulator into the model’s schedulable toolset. Upon first use, the plugin automatically detects the MuMu installation path; it can also be explicitly specified in the profile configuration.
In terms of ecosystem, DSH emphasizes “everything is a plugin.” The plugin directory page is at SkillHub. It is not officially affiliated with DeepSeek/High-Flyer; before installation, it is still recommended to check the GitHub source code and license yourself. The plugin runs with the permissions of the current DSH process and executes local emulator management commands; please ensure the environment is trusted before use.
Core Functionality: Seven mumu_ Tools¶
The README lists seven categories of tools, all prefixed with mumu_:
| Tool | Function |
|---|---|
mumu_env |
Displays the detected installation location, source, and the location of the path cache file |
mumu_list_instances |
Lists the index, name, Android version, running status, adb endpoint, and pid for each instance |
mumu_instance |
Start / Stop / Restart / Create / Delete / Rename / Show or hide window |
mumu_app |
List / Query / Install / Uninstall / Start / Close applications |
mumu_ui |
Click, swipe, long press, input text, press keys (coordinates are in framebuffer pixels) |
mumu_shell |
Execute shell commands within the Android guest system |
mumu_screenshot |
Take a screenshot; can return an image viewable by the model |
Path resolution order (mumu_env prints the full chain): Config override → cache file dsh-mumu-paths.json under profile → Registry match for MuMu by DisplayName → Fallback scan of common installation directories. adb prioritizes the newer nx_device\<version>\shell\adb.exe inside the MuMu directory, then nx_main\adb.exe, and finally adb on the PATH.
Installation and Activation¶
Install from npm (Regular Users)¶
Specify your profile and execute the command from the official README:
dsh plugin --profile <your-profile> add dsh-mumuemulator-use
dsh plugin add resolves dependencies, links them into the profile, and writes dsh-mumuemulator-use to dsh.profile.bundles. Restart the application or switch the bundle to load it. For Desktop DSH users, if you see a pnpm prompt indicating the missing peer @deepseek-ai/dsh, the README explains this is expected and harmless in the Electron desktop version.
Optional Configuration¶
In %PROFILE%\cordis.patch.yml, the plugin line id is fixed as mumu, for example:
- id: mumu
config:
adbPath: 'D:\Program Files\Netease\MuMu\nx_device\15.0\shell\adb.exe'
screenshotIncludeImage: false
Common configuration items (default values and meanings are subject to the README table) include: mumuRoot, mumuManagerPath, adbPath, cacheFile, commandTimeoutMs (default 120000), bootTimeoutMs (default 300000), adbConnectTimeoutMs (default 60000), screenshotIncludeImage (default true, affects whether mumu_screenshot returns an image by default). Setting only mumuRoot / mumuManagerPath skips the entire detection segment; setting adbPath alone only overrides the adb side.
The plugin requires DSH engine >=0.2.0-rc.1 (see dsh.engines in package.json).
Typical Usage Approach¶
- Call
mumu_envto confirm whether the MuMu root directory,MuMuManager.exe,adb, and cache file are resolved correctly; for multi-machine or non-standard installations, write override items likemumuRootincordis.patch.yml. - Use
mumu_list_instancesto get the instance index and adb endpoint, then usemumu_instanceto start the target instance (bootTimeoutMscontrols the wait time for Android readiness). - Use
mumu_appfor application layer installation or starting package names; usemumu_shellwhen output is needed (the README explains that MuMuManager’sshcannot reliably report failures, so the plugin parses the exit code by appendingecho "MUMU_SH_EXIT:$?"). - Use
mumu_uifor interface operations; coordinates are consistent withmumu_screenshot, both being framebuffer pixels. The README notes that the framebuffer is landscape:wm sizemight report 900x1600, while the screenshot is approximately 1600x900. When polling for screenshots, passincludeImage: falseor configurescreenshotIncludeImage: falseto avoid bringing in a ~1.15 MB image in every conversation.
When an instance is not running, touch, shell, and app-related tools will error out; mumu_screenshot will prompt that the instance is not running Android yet.
Applicable Scenarios and Known Limitations¶
Suitable for: Developers already using MuMu Player 12 on Windows who want DSH agents to directly manage instances, apps, touch, and screenshots without building their own adb scripts or MCP layers.
Points to Note (Excerpt from README “Known limitations”):
MuMuManager control tool cmdtype calls are fire-and-forget; usemumu_shellwhen guest output is required.- Some window/layout commands do not validate the instance index; the plugin will first run
info -v <index>on relevant paths before failing to avoid silent successes. - Incorrect
adbpath leads to spawn ENOENT;mumu_shellstill works as it does not rely on adb. - Command lines that cannot be parsed by the guest shell may swallow the exit code marker, in which case the exit code is
unavailable.
Conclusion¶
dsh-mumuemulator-use consolidates MuMu Player 12’s instances, apps, UI, and screenshots into seven DSH tools. The installation command is simple, and path discovery can be automatic or configured. For further details and source code, see the GitHub repository, and for directory indexing, see the SkillHub plugin page.