dsh
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@dshimplement user login in C:\repo and run the tests"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
dsh-mcp-bridge
把 DeepSeek Harness 暴露成一个 MCP server,让 Codex 或其他 MCP 客户端把任务交给 DSH 执行。
MCP client → dsh-mcp-bridge → dsh --profile sdk → DSH agent → workspace桥只负责建会话、投任务、等结果;规划、读写文件、跑命令都由 DSH 自己的 agent 完成。它使用 DSH 官方 SDK profile,不修改桌面端,也不是 DSH 插件。
要求
DSH Desktop 已安装,且
dsh命令可用Node.js 22+
DEEPSEEK_API_KEY:放在环境变量,或留在$DSH_HOME/.credentials.yaml(桥会自动读取)
Related MCP server: hermes-dsh-bridge
安装
git clone https://github.com/pjzck/dsh-mcp-bridge.git
cd dsh-mcp-bridge
npm install
npm run test:smoke接到 Codex
codex mcp add dsh -- node "H:\path\to\dsh-mcp-bridge\src\server.mjs"或写进 ~/.codex/config.toml:
[mcp_servers.dsh]
command = "node"
args = ["H:\\path\\to\\dsh-mcp-bridge\\src\\server.mjs"]首次调用 MCP 工具时 Codex 会要求审批,允许即可。非交互的 codex exec 默认拒绝 MCP 工具,自动化场景请加 --approve-for-me。
工具
工具 | 作用 |
| 查看 dsh 命令、模型、API key、运行中的会话 |
| 投任务,立即返回 |
| 等当前 turn,最多 30 秒,可重复调用 |
| 投任务并等到完成,适合短任务 |
| 读取当前状态和最后输出 |
| 列出本进程启动过的会话 |
| 停掉 SDK runtime |
典型用法:
dsh_info
dsh_start { task: "实现 X 并跑测试", cwd: "H:\\repo" }
dsh_wait { sessionId: "session-…" }续聊时把上次的 sessionId 传给 dsh_start。
配置
环境变量 | 说明 |
| dsh 可执行文件路径;默认用桌面端 |
| 模型 provider;默认读 DSH settings |
| 模型 id;默认读 DSH settings |
| API key;默认读 |
| DSH home,默认 |
| DSH 权限模式,默认 |
| 设为 |
限制
SDK 协议没有 per-turn cancel;只能
dsh_shutdown停 runtime。会话在独立的 SDK runtime 里,不会出现在桌面端窗口中。
需要 API key;SDK profile 不使用桌面登录态。
同一个
sessionId同时只能有一个进行中的 run。
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Discover and call AI agents via MCP. Supports A2A agents and platform agents with async tasks.
Public MCP for agent verification, work discovery and governed interoperability.
Manage SRG+ hubs, channels, content, assets, users, and workspaces from any MCP-aware AI agent.
Agent-native collaboration network: orchestrate a team of long-running agents from any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceExposes DeepSeek Harness agent capabilities as an MCP server, letting any MCP client drive Harness to execute real coding tasks with structured results, context isolation, and parallel execution.62 npm13MIT
- AlicenseNot gradedqualityAmaintenanceEnables external MCP clients to drive DeepSeek Harness agents for real coding tasks, providing tools for task execution and queueing, session management, sandboxed file access, preset switching, and usage statistics.373 npm6GPL 3.0
- AlicenseNot gradedqualityAmaintenanceLets any MCP-capable coding harness (Cursor, Claude Code, Codex, Gemini CLI, VS Code/Copilot, opencode, and others) hand a self-contained task to a real, isolated DeepSeek Harness process that works in a chosen workspace with its own context window, model, and toolchain, then returns the final answer. Exposes task submission with time estimates and acceptance criteria, status polling with live progress and process-tree telemetry, graceful cancel and forced kill of whole process trees, and a health probe reporting concurrency, deadlines, and recent jobs.MIT
- AlicenseNot gradedqualityBmaintenanceExposes DeepSeek Harness agent capabilities over MCP so any MCP client can delegate real coding work to a running agent with its full toolset (bash, filesystem, todo, web). Turns are dispatched asynchronously into sessions and then tracked through status, tail, wait, cancel, compact, and rename tools, with the session log as the source of truth so results survive restarts.MIT