dsh-windows-mcp-lite: Configuration-driven Integration of Windows Desktop Automation with DSH

Preface

A common approach to enabling agents to operate the Windows desktop within DeepSeek Harness (DSH) is to attach a separate MCP server or write a Host plugin to run the bridging logic within the harness process. The former requires maintaining processes and handling timeouts, while the latter expands the attack surface and increases audit costs. Below is an introduction to dsh-windows-mcp-lite, maintained by sheilacraig: a pure configuration bundle that bridges the DSH built-in MCP client to CursorTouch/Windows-MCP. It exposes 16 of the upstream 21 tools by default. The entire integration can be viewed in cordis.patch.yml (approximately 25 lines, no JavaScript).

What is this

dsh-windows-mcp-lite is a “Config-only DeepSeek Harness bundle”: it does not install an index.js, nor does it run author code within the harness process. Instead, it mounts the built-in @deepseek-ai/dsh-mcp-client via a patch, launches uvx windows-mcp@0.8.8 serve via stdio, and ultimately lands on local UI Automation, Win32 input, and screen capture.

The invocation chain is as follows:

DSH agent
  └─ mcp__windows__Snapshot / Click / Type / ...
       └─ @deepseek-ai/dsh-mcp-client        (ships with DeepSeek Harness)
            └─ uvx windows-mcp@0.8.8 serve   (stdio child process)
                 └─ your desktop: UI Automation tree, Win32 input, screen capture

It is categorized as a Workflow in community directories like SkillHub. The GitHub repository is at https://github.com/sheilacraig/dsh-windows-mcp-lite, currently with 0 stars. The license is MIT, and the package version is 1.0.0.

Deliberate Omissions (Design Boundaries)

The README treats these as design choices rather than a list of missing features, and they are worth reading through before installation:

  • No Host plugin, no web routes, no state files, and no installers that automatically write to profiles.
  • dependencies is empty, with no build step; bridging is initiated via uvx found on the PATH. Repository tests will reject artifacts containing machine-specific absolute paths.
  • It does not provide screenshots.json; if you require in-app dependency installation, a “Computer Use” toggle that is off by default, or doctor tools, you should look for other plugins in the ecosystem. This plugin trades features for auditability—a crucial point when dealing with keyboard, mouse, and screen access.

Environment and Dependencies

  • Windows 10 or 11 (the upstream Windows-MCP only supports Windows).
  • DeepSeek Harness with a built-in MCP client bridge: engines.dsh should be >=0.2.0-rc.1 <0.3.0-0; the author has verified this on 0.2.0-rc.2 (desktop).
  • The process running DSH must have uv on its PATH, as uvx is used to launch the upstream service and build isolated environments.
  • Optional: A model that supports image input, so that Screenshot can return real images; otherwise, the bridge will degrade the image to text diagnostics. Snapshot returns plain text and does not rely on vision models.

The Node engine requirement is >=22 (see package.json).

Core Capabilities: Tools Visible to the Model

By default, 16 tools are exposed, named in the format mcp__windows__<Tool>. Upstream 0.8.8 has 21 tools total; this plugin excludes 5 by default (see “Least Privilege” below).

Tool Function
Screenshot Capture screen, including cursor position and window list
Snapshot Full desktop state: accessibility tree, interactive elements, scrollable areas
DisplayInventory Monitor layout, workspace, DPI
Click, Move, Scroll Mouse input (including drag)
Type, Shortcut Keyboard input
Wait, WaitFor Fixed delay or poll UI until condition is met
MultiSelect, MultiEdit Batch selection / batch text input
Clipboard Read/write clipboard
Notification Windows toast
App Launch apps, resize or focus windows
ControlStatus Who currently occupies the desktop (upstream cannot exclude this item)

Installation and Activation

In-app: Settings → Plugins → Add plugin, and fill in one of the following:

dsh-windows-mcp-lite                                # npm package
github:sheilacraig/dsh-windows-mcp-lite             # GitHub repository
C:\path\to\a\local\checkout                         # absolute path

For CLI-managed profiles:

dsh plugin --profile <profile> add dsh-windows-mcp-lite

Profiles for the Electron desktop version belong to the application itself; installation should be done via the in-app plugin panel rather than solely relying on CLI writes to the wrong profile.

Restart DSH after installation, as the new patch layer is merged at startup.

First Run: Pre-warm

uvx will build an isolated environment for the upstream service and download tens of MBs of Python dependencies on the first run. This may take several minutes on slow networks, and the bridge’s wait time for the initial connection is often shorter than this process. It is recommended to pre-warm outside the harness without timeouts:

npm run prewarm

This script runs uvx windows-mcp@0.8.8 serve --exclude-tools ... with the same parameters as the bridge, performs initialize and tools/list on the service, prints the service identity, elapsed time, and tool list, then exits. The author’s documentation states that after the environment is pre-warmed, initialize takes approximately 2.1 seconds.

Typical Verification Steps

  1. Run npm run prewarm once to confirm the pinned version and service availability.
  2. In DSH, ask the agent to call mcp__windows__DisplayInventory (read-only display geometry, no clicking, no input).
  3. Call mcp__windows__Snapshot to view the accessibility tree in text form.

Default Least Privilege

The bridge parameters include:

--exclude-tools PowerShell,Registry,FileSystem,Process,Scrape

The above five upstream tools are disabled by default: DSH already provides shell, file, registry, and process capabilities under its own approval and sandboxing. Enabling upstream copies would create a second path lacking identical controls. If adjustments are needed, override the corresponding line in $DSH_HOME/profiles/<profile>/cordis.patch.yml; removing --exclude-tools restores all 21 tools.

Only one Windows-MCP bridge is allowed per profile; a second line with the same serverName will conflict at load time. Please disable other Windows-MCP-type plugins in the same profile before enabling this plugin.

Configuration Override

Default values are located in cordis.patch.yml inside the plugin package. When modifying, you should override $DSH_HOME/profiles/<profile>/cordis.patch.yml rather than changing the installed copy. Example (consistent with the README, truncated parts are for structural reference only; full keys refer to the repository file):

# $DSH_HOME/profiles/<profile>/cordis.patch.yml
- id: windows-mcp-lite
  config:
    serverName: windows
    transport: stdio
    command: uvx
    args: [windows-mcp@0.8.8, serve, --exclude-tools, "PowerShell,Registry,FileSystem,Process,Scrape,App"]
    toolCallTimeoutMs: 120000
    failOnStartupError: true
    env:
      ANONYMIZED_TELEMETRY: "false"
      WINDOWS_MCP_DISABLE_FLASH: "1"

Note two points:

  1. The patch replaces the entire config object, it does not deep merge; omitted keys are effectively deleted. stdio transport requires command; streamable-http requires url.
  2. serverName determines the prefix for all tools (mcp__<serverName>__<tool>); renaming it will invalidate the entire set of tool names and prompt-cache prefixes.

If you have pre-installed the interpreter using uv tool install windows-mcp, you can change command to windows-mcp and start args with serve. For a persistent HTTP connection, change transport to streamable-http and set url (HTTP mode does not support env, so telemetry and flash-related settings must be configured elsewhere).

Use Cases and Cautions

Suitable for: Users already using DSH for workflow automation on Windows who want to unify desktop snapshots, input, and window operations via MCP, and are willing to audit permission boundaries with a short piece of YAML rather than introducing additional Host code or an HTTP attack surface.

Important Cautions:

  • Tools run with the permissions of the current DSH process, capable of clicking, typing, reading the screen, and accessing the clipboard. You should read the repository source code, cordis.patch.yml, and the MIT license before installation.
  • Community plugin directories (such as SkillHub) are independent sites and have no official affiliation with DeepSeek / High-Flyer; installation sources depend on the npm / GitHub / local path you fill in.
  • Compared to “all-in-one” Windows MCP integration plugins, this bundle does not provide a built-in doctor or one-click dependency installation, trading convenience for a configuration surface that can be read in one screen.

Conclusion

dsh-windows-mcp-lite connects the DSH built-in MCP bridge and Windows-MCP 0.8.8 via stdio: no plugin code, five high-privilege tools overlapping with DSH are disabled by default, making it suitable for Windows users who need desktop automation while prioritizing configuration auditability. Directory page: https://www.skillhub.cn/plugins/sheilacraig/dsh-windows-mcp-lite; Source code and full documentation: https://github.com/sheilacraig/dsh-windows-mcp-lite.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye