Preface¶
DeepSeek Harness (DSH) is an agent development and execution platform. When managing multiple machines, a common pain point is the difficulty of efficiently controlling remote devices. Traditional approaches often rely on screenshots or simulated keyboard input, which are inefficient and unstable.
The dsh-peer-mcp plugin solves this problem. It enables direct communication between DSH machines, allowing agents on Machine A to invoke Machine B’s environment as if calling local tools, execute tasks, and transfer files. Most importantly, all files always remain on their original machines, with no data migration.
Plugin Overview¶
| Item | Content |
|---|---|
| Name | dsh-peer-mcp |
| Repository | MyPanda-Hash/CHENGXIAO |
| License | MIT |
| Description | Enables two computers running DSH to work together and transfer files to each other — while each file always stays on its local machine. |
Installation¶
Use the following command to install the plugin. The installation process places the plugin into the profile’s node_modules and automatically registers it in dsh.profile.bundles.
dsh plugin --profile <your-profile> add github:MyPanda-Hash/CHENGXIAO
After installation, the plugin is not exposed by default and needs to be manually enabled for listening.
Core Features¶
- Remote Control & Collaboration: Remotely control two DSH machines, run tasks and transfer files.
- Pairing Mechanism: Uses a one-time pairing code mechanism, safe and convenient.
- Network Support: Supports direct LAN connections or cross-network relay (official default relay service provided).
- Security & Privacy: End-to-end encryption; the relay only forwards encrypted envelopes without holding keys or plaintext files; not exposed by default.
- Standalone Worker Mode: Supports standalone Worker processes that do not require DSH Desktop to run.
- File Transfer: Supports chunked file transfer to avoid large file transfer failures; files always remain on the local machine.
- Async Tasks: Supports asynchronous task flows, with task state stored on the device executing the task.
Configuration & Usage¶
Basic Configuration¶
The plugin’s default shared workspace is %USERPROFILE%\DSH Workspace.
To enable peer connections, you must enable listen in the profile’s override layer configuration. When enabling listening, you must configure allowedDirs to specify absolute directories that peers are allowed to access.
Add to ~/.dsh/profiles/<your-profile>/cordis.patch.yml:
- id: dsh-peer-mcp
config:
listen: true # Enable listening, allow peer pairing
host: 0.0.0.0
port: 7331
allowedDirs: # Must configure at least one absolute directory
- 'C:\Users\your-username\DSH Workspace'
Interactive Tools¶
After successful pairing, you can use the following command-line tools for interaction:
peer status # Check peer status
peer ls # List peer directories
peer ask "Restart nginx and report status" # Execute task on peer
peer read D:\logs\app.log # Read file from peer
peer pull D:\logs\big.zip C:\local\ # Pull large file
peer push C:\local\report.pdf # Push file to peer
Agent-level supported tools include:
peer_status, peer_ticket, peer_pair, peer_revoke, ask, submit_task, task_status, task_events, task_result, cancel_task, fetch_file, send_file, open_read, read_chunk, close_read, send_begin, send_chunk, send_finish, send_cancel.
Relay Mode¶
By default, the plugin uses the official public relay service, requiring no firewall or port mapping configuration. Two machines can communicate in any network environment. The relay only forwards end-to-end encrypted envelopes and does not store plaintext.
Standalone Worker Mode¶
Working with the plugin CLI, the driven side can also run without DSH Desktop. The worker.mjs in the repository root is a pure Node.js standalone Worker that shares the trust store with DSH.
Start the standalone Worker:
node worker.mjs --port 7331 --dirs "D:\repos" # Listening mode
node worker.mjs --relay # Relay mode
Conclusion¶
dsh-peer-mcp provides DSH with secure, efficient remote collaboration capabilities. Through end-to-end encryption and a one-time pairing code mechanism, it achieves cross-machine file sharing and task scheduling without sacrificing security. Developers can choose between LAN direct connection or the official relay mode based on their needs.
- Plugin Directory: skillhub.cn/plugins/MyPanda-Hash/CHENGXIAO
- GitHub Repository: github.com/MyPanda-Hash/CHENGXIAO