dsh-computer-mcp: Using MCP to Let DSH Control a Remote Computer

Introduction

DeepSeek Harness (DSH) typically runs on development machines, servers, or NAS devices, where the workspace selector only reflects directories within the Harness environment. To allow agents to directly read and write project files on a home computer or office desktop, common approaches include SSH, mounting network drives, or syncing files to the Harness machine—each requiring separate maintenance of connectivity and permission boundaries.

cander0815/dsh-computer-mcp connects “another computer” to the Harness MCP toolchain: a lightweight connector runs on the target machine with authorized directories, while a Profile Bundle is installed on the Harness side to invoke remote file and optional command tools via the local network or Tailscale. The target computer does not need to install Node.js, Python, or the full Harness.

What is this?

Maintainer cander0815 has open-sourced this project on GitHub (MIT License), categorized as Workflow in the community directory. The repository includes:

  • A Connector program for the target computer (built with Go, Streamable HTTP MCP).
  • An installable DSH Profile Bundle (dsh-plugin) that registers the MCP client configuration in the environment running Harness.

The connector and bundle have distinct roles: the computer program runs on the machine to be operated; dsh plugin add only installs the configuration bundle and does not automatically download or start the connector.

Core Features

The following capabilities are derived from the project README. File tools will reject out-of-bounds paths and symlinks in sub-paths.

Remote Files

  • Browse directories, find files via wildcards, read in segments, edit fragments, write whole files, move, and rename.
  • read_file targets UTF-8 text (max 1 MiB per file) and returns the SHA-256 hash; edit_file requires the replacement fragment to be unique within the file.
  • write_file requires the most recent read hash to overwrite existing files; delete_file only moves regular files to the system Trash/Recycle Bin and does not support directories or permanent deletion.

Search and Commands

  • search_text supports optional regex and filename filters; find_files matches filenames only and does not support patterns containing /.
  • run_command is disabled by default and must be enabled on the configuration page; execution bypasses Shell parsing, with a default timeout of 30 seconds and a maximum of 120 seconds.

Operations and Permissions

  • The local configuration page displays communication status, authorized directories, command switches, and log locations; daily JSON logs facilitate troubleshooting.
  • Release packages support Windows 10/11 (amd64), Intel Macs (10.15+), and Apple Silicon Macs (11+); Linux amd64 and source code are also provided. Windows ARM and 32-bit Windows are currently not supported.

Remote desktop, mouse/keyboard control, or browser control are not provided; file contents read by the AI are sent to the model and services used by Harness, so you must assess network and trust boundaries before deployment.

Installation and Setup

1. Target Computer: Running the Connector

  1. Download the ZIP for your corresponding system from Releases and extract it to a fixed directory.
  2. On Windows, run 启动.cmd; on Mac, run 启动.command, or execute ./dsh-computer-mcp in the terminal.
  3. On the automatically opened configuration page (default management port 18791), select the directories to allow access to and save; enable “Allow AI to execute commands on this computer” only if commands are needed.
  4. Copy the connection configuration using the local network or Tailscale address, or download the pairing file. The default MCP port is 18790. Keep the program running; auto-start on boot or automatic device discovery is not currently provided.

Mac may show a system prompt due to ad-hoc signing on the first launch; the Windows program does not use commercial code signing and may also trigger security prompts.

2. Harness Environment: Installing Plugin and Injecting Environment Variables

The verified combination is Node.js 24 with DSH 0.2.0-rc.2, using DSH’s built-in @deepseek-ai/dsh-mcp-client. Execute the following in the environment where dsh is installed:

dsh plugin --profile web add github:cander0815/dsh-computer-mcp

If using a different profile, replace web with the actual name. This command installs the bundle from GitHub (package.json version is 0.0.1); currently, there is no npm registry package with the same name. The bundle does not contain install-time build scripts.

Write the url and token from the pairing file into the Harness process startup environment (do not put them in the project .env):

export DSH_COMPUTER_MCP_URL='http://<target-computer-address>:18790/mcp'
export DSH_COMPUTER_MCP_TOKEN='<connection-token>'
dsh --profile web

Windows PowerShell:

$env:DSH_COMPUTER_MCP_URL = 'http://<target-computer-address>:18790/mcp'
$env:DSH_COMPUTER_MCP_TOKEN = '<connection-token>'
dsh --profile web

The plugin remains disabled if the two variables are not completely filled. If you have manually loaded a local-computer patch generated by the configuration page, please disable the old patch before using the bundle to avoid duplicate registration of the MCP server with the same name. After modifying configuration or upgrading, you need to make Harness reconnect to MCP and refresh the tool list.

HTTP is only suitable for trusted local networks; Tailscale is recommended for cross-network use. Do not expose the MCP port directly to the public internet. Do not commit tokens to public repositories.

Typical Usage

In a new session, you can explicitly constrain the model to use remote MCP rather than the Harness local workspace tools. The instructions suggested in the README are as follows:

Please use the localcomputer MCP to operate the connected computer. First call list_roots to confirm the device, authorized directories, and current permissions, then use the corresponding file or command tools. Do not substitute Harness’s built-in server tools; if you cannot find the MCP tool, please explicitly tell me.

Common tools include: list_roots, list_directory, find_files, read_file, edit_file, write_file, create_directory, move_file, delete_file, search_text, and run_command (after permissions are enabled). The Harness workspace selector still only displays directories in the Harness environment; target machine files are accessed only via the above MCP tools.

Use Cases and Cautions

Suitable for

  • Development machine runs DSH, while the project is on another Windows/Mac, hoping to complete tasks like reading code, modifying fragments, searching text, or short command builds via conversation, with directory authorization to narrow the visible scope.
  • Local network or Tailscale is established, and firewalls on both ends allow access to the MCP port.

Important Notes

  • Commands are executed with the system privileges of the user who started the connector; directory authorization is not an OS-level sandbox and cannot replace review of the source code and deployment methods. You should read the GitHub repository and license before installing the bundle and running the connector.
  • After a successful delete_file, users need to empty the Trash/Recycle Bin themselves; do not attempt to replace failed trash operations with permanent delete commands.
  • Harness cannot access the computer if the connector is closed or the machine is hibernating; logs and command outputs may contain sensitive information and should be kept locally.

The DSH ecosystem emphasizes “Everything is a plugin”; the SkillHub directory page is a community collection and has no official affiliation with DeepSeek / High-Flyer. For details, limitations, and build instructions, refer to the cander0815/dsh-computer-mcp README.

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

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

Xiaoye