Introduction¶
When doing GUI automation in DeepSeek Harness (DSH), the common practice is to hand-write an MCP configuration pointing to cua-driver mcp. Cua Driver itself provides an accessibility-first operation surface: window discovery, accessibility snapshots, snapshot-bound element tokens, pixel fallback, menus, browser tabs, recording and playback, etc. The problem is: the Harness desktop host often cannot access the PATH from your terminal (especially when launched by launchd on macOS, where ~/.local/bin is frequently omitted), so invoking cua-driver bare can easily fail to start with unintuitive error messages; meanwhile, the MCP exposes roughly 60 tools, and without workflow guidance the model tends to misuse them (e.g., ignoring snapshots invalidates tokens, browser pages should go through browser_* instead of desktop pointers, etc.).
The cua-computer-use plugin described below (maintained by fishcg, categorized as a networking tool in the community directory) is a DSH plugin: it resolves the cua-driver executable path, connects the official MCP service to the built-in MCP client, registers the tools as mcp__cua-driver__*, and ships with a skill plus a brief standing prompt. The plugin does not reimplement automation logic and has no runtime dependencies.
What Is This¶
In one sentence: it bridges the MCP service of Cua Driver into DSH, making it usable as native computer-use tools.
- Repository: fishcg/cua-computer-use
- Directory page: skillhub.cn plugin page
- Current package version (
package.json):0.2.0, MIT license
Core Features¶
The plugin inserts configuration lines via a bundle patch; the main registrations are as follows (consistent with the README):
| Type | Name | Description |
|---|---|---|
| Tools | mcp__cua-driver__* |
~60 tools, bridged by @deepseek-ai/dsh-mcp-client |
| Skill | cua-computer-use |
Workflow, reliability rules, and troubleshooting |
| Service | cuaComputerUse |
Resolved launch arguments, consumed by other lines |
| Prompt | tool:cua-computer-use |
A three-sentence standing note; can be disabled with prompt: false |
The tool surface covers window discovery (e.g., list_windows, launch_app), state reading (get_window_state, get_accessibility_tree), input (click, type_text, set_value, press_key, hotkey, scroll, drag), verification (verify_state), batch processing (run_steps, run_script), native menus (invoke_menu), browser tabs (get_browser_state, browser_click, etc.), geometry, recording, and diagnostics.
Compared with a hand-written MCP configuration, the plugin additionally handles:
- Executable resolution: looks up in order by configuration,
$CUA_DRIVER_BIN, default install paths per platform, andPATH; when not found, it can auto-install via the official install script (can be disabled). - First-run bootstrap: installation validation (SHA256, macOS codesign); on macOS it checks Accessibility and Screen Recording permissions, and can avoid repeated permission popups via
setup.json. - Model-side guidance: the bundled skill and prompt explain snapshots and tokens,
since: "latest", and the division of labor between browser and desktop tools.
Environment and Requirements¶
- DeepSeek Harness
0.2.0-rc.2or higher. - On first run,
cua-driverdoes not need to be pre-installed; when missing, the plugin invokes the official installer. If installing manually, the README gives the following commands:
# macOS / Linux
/bin/bash -c "$(curl -fsSL https://cua.ai/driver/install.sh)"
# Windows
irm https://cua.ai/driver/install.ps1 | iex
- macOS: Accessibility and Screen Recording permissions are required; the permissions belong to the CuaDriver process, not the Harness itself.
Node engine requirement (package.json): ^22.19.0 || >=24.0.0.
Installation and Enablement¶
Given a git checkout or an already-configured profile, the README’s installation method is:
dsh plugin --profile web add github:fishcg/cua-computer-use
After installation, restart Harness. The package is pure ESM with no build step and no runtime dependencies; for git installs, the profile’s pnpm-workspace.yaml generally does not need allowBuilds.
The community plugin directory (skillhub.cn) has no official affiliation with DeepSeek / High-Flyer; it is a community ecosystem listing. Before installing, it is still recommended to review the repository source code and license.
Configuration Notes¶
In the profile’s cordis.patch.yml, set config on the cua-computer-use line. Example:
- id: cua-computer-use
config:
command: /opt/cua/cua-driver
toolCallTimeoutMs: 180000
Commonly used options (excerpt; defaults per the README):
| Option | Default | Description |
|---|---|---|
command |
'' |
Explicit path or command name; empty means auto-discovery; explicit values do not silently fall back to other binaries |
toolCallTimeoutMs |
120000 |
Per-tool-call timeout (GUI waits tend to be slow) |
autoInstall |
true |
Auto-install when missing; false or CUA_DRIVER_NO_AUTO_INSTALL=1 means only prompting the manual install command |
modifyPath |
false |
Whether the installer may modify shell rc (the plugin uses absolute paths by default and does not change PATH) |
installTelemetry |
false |
Install telemetry opt-in |
permissionCheck / permissionPrompt |
true |
macOS permission checks and one-time system popups |
The environment variable CUA_DRIVER_BIN can pin an absolute path after command and before directory discovery.
When auto-installing, the installer behavior is controlled via environment variables (the plugin defaults to CUA_DRIVER_RS_NO_MODIFY_PATH=1 and CUA_DRIVER_RS_TELEMETRY_ENABLED=0); see the README table for details.
Typical Usage and Workflow¶
After enabling the plugin and restarting, the model can invoke Cua Driver capabilities via mcp__cua-driver__*; it should follow the workflows in the skill cua-computer-use rather than scattering individual tool attempts.
A reproducible operation sequence (conceptually, consistent with the README / skill):
- Discover windows or launch apps (e.g.,
list_windows,launch_app). - Read state: prefer snapshot-based tools such as
get_accessibility_tree; for incremental needs, usesince: "latest"for a cheap re-read. - Using the snapshot-bound tokens for
click,type_text, etc. is only valid while the current snapshot remains valid; after the snapshot changes, re-acquire it. - When operating pages inside a browser, use the
browser_*family instead of assuming desktop coordinate clicks will hit web elements. - Complex sequences can use
run_steps/run_script; useverify_statewhen validation is needed.
The README does not provide standalone “end-to-end script examples”; in actual conversations, Harness orchestrates the above tools under the constraints of the skill.
Use Cases and Caveats¶
Suitable for: developers who need real desktop / browser GUI automation inside DSH and want to use the official Cua Driver MCP rather than a self-built bridge.
Notes:
- The plugin and the MCP subprocess launch with the current Harness host environment; permissions, paths, and timeouts are all affected by the profile and system settings.
- Auto-install pulls the official install script during unattended startup; in production or compliance-sensitive environments, review the installer’s behavior, and if necessary set
autoInstall: falseand deploycua-driveryourself. - Network access and local GUI operations carry risks borne by the user; before installing, review the GitHub repository source code and the MIT license.
Conclusion¶
cua-computer-use integrates Cua Driver’s MCP service into DSH as a plugin: it solves executable discovery and macOS permission prompt issues, and registers roughly 60 tools together with a skill and a prompt, letting the model use computer-use following an accessibility-first workflow.
- Directory page: https://www.skillhub.cn/plugins/fishcg/cua-computer-use
- GitHub: https://github.com/fishcg/cua-computer-use