dsh-mcp-server
Click on "Install 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., "@dsh-mcp-serverFix the failing tests in src/ and summarize the changes"
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-server
Exposes DeepSeek Harness's Agent (dsh, a coding agent with a full toolset: files, terminal, web search, subagents, workflows) as a locally usable model backend via Model Context Protocol, while also exposing "read me / modify me" interfaces.
┌────────────────────────────┐ stdio / HTTP ┌──────────────────────────────┐
│ 其他 Agent / MCP 客户端 │ ────────────────────────▶ │ dsh-mcp-server │
│ (Claude Desktop, Cursor, │ │ 方向A:驱动我(消耗我的额度) │
│ Claude Code, 自定义程序) │ │ 方向B:读懂我/改造我(便宜) │
└────────────────────────────┘ └──────────────┬───────────────┘
│ spawn
┌──────────▼───────────────┐
│ dsh Agent(完整工具链) │
│ DeepSeek 模型(默认) │
└──────────────────────────┘Two Directions
Direction A: Drive Me — consumes DeepSeek Harness quota, requires user confirmation
Each call to dsh_ask / dsh_converse / dsh_tool spawns a full dsh Agent process, which does the actual work (using DeepSeek models): reading/writing files, running commands, searching the web, dispatching subagents. This consumes DeepSeek Harness token quota, so:
The call first returns
confirmation_required(no quota is consumed at this point), and clearly states that "DeepSeek Harness quota will be consumed";The caller must show this request to the user (MCP clients usually display tool calls automatically);
After the user approves, call
dsh_confirm(requestId, approve=true)to actually execute; ordsh_deny(requestId)to cancel.
Each pending request also prints a prominent warning line to the server's stderr. Unconfirmed requests expire after 10 minutes.
⚠️ Risk switch:
DSH_MCP_AUTO_APPROVE=1skips the confirmation gate (for unattended/fully trusted environments). A single call can also passconfirm: falseto skip it.
Direction B: Read Me / Modify Me — consumes the other side's tokens, cheap on the server side
When other Agents want to understand "what I am, how I'm designed, how to build plugins / change config for me", they use these interfaces (the server only does local reads/validation, does not consume dsh model quota; the other model reads the results into its own context, consuming its own tokens):
Interface | Type | Content |
| Tool | Full design snapshot: backend model/version, persona template, plan-mode rules, the 81 mounted plugin lines, workspace and config paths, credential key names (values masked), discoverable skills |
| Resource | Persona and system prompt components (template, instruction limits, full plan-mode text) |
| Resource | Mounted plugin line list + tool family availability |
| Resource |
|
| Resource | Key names of configured credentials (values never exposed) |
| Resource | Skill list (built-in presets + user/project skills) |
| Resource template | SKILL.md body of a skill |
| Tool | Plugin/config modification contract for Agents that "want to modify me" (profile/patch/bundle/skill formats and security rules) |
| Tool | Propose config changes: default dry-run validates with dsh's own parser (no write); actual writes back up the original file + require user confirmation |
Typical usage: an external Agent first reads the dsh://self/* resources to understand the design (spending its tokens), then calls dsh_patch_config to propose config changes (e.g., switching models, mounting new skills, disabling a plugin), or writes a dsh plugin locally based on dsh_plugin_contract.
Related MCP server: dsh-orchestrator
Quick Start
cd E:\DeepSeek Harness\dsh-mcp
npm install # 安装 @modelcontextprotocol/sdk
# 冒烟测试:不经过 MCP,直接验证 dsh Agent 后端可用
node scripts/smoke.mjs
# 以 stdio 传输启动服务器(MCP 客户端的标准方式)
node src/index.jsThe server automatically discovers the locally installed dsh (scanning npx cache / npm cache / this directory); no configuration needed.
If not found, specify it with an environment variable: DSH_MCP_DSH_BIN=C:\...\@deepseek-ai\dsh\lib\bin.js.
Connect to Claude Desktop
Edit %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"dsh": {
"command": "node",
"args": ["E:\\DeepSeek Harness\\dsh-mcp\\src\\index.js"]
}
}
}Connect to Claude Code / Cursor / VS Code
Use examples/claude-code.json, examples/cursor-mcp.json, and examples/vscode.json respectively.
Connect to your own Agent (HTTP mode)
node src/index.js --transport http --port 3005
# 端点:http://127.0.0.1:3005/mcp (Streamable HTTP)Tool List
Tool | Direction | Description |
| A (consumes quota) | One-off task handed to a fresh dsh Agent, returns final reply + metadata. Requires confirmation. |
| A (consumes quota) | Multi-turn conversation (server records history by |
| A (consumes quota) | Have the Agent directly call a specific tool and report back verbatim. Requires confirmation. |
| — | Approve/cancel a pending request ( |
| — | List requests currently awaiting confirmation (diagnostics). |
| — | Generate a new |
| — | Clear session memory. |
| — | Diagnostics: dsh version, model, tool families, pending count, etc. |
| B | Design snapshot (persona/plugin lines/paths/skills/credential key names). |
| B | Validate/write config patch (dry-run by default, write requires confirmation + backup). |
| B | Plugin and config modification contract document. |
Environment Variables
Variable | Default | Description |
| auto-discovered | Absolute path to |
|
| Profile used to launch dsh |
|
| Hard timeout for a single Agent call |
|
| Task text length limit (Windows command line ~32k) |
|
| History injection budget for |
|
| Max number of parallel dsh processes |
| unset |
|
|
| Expiry time for pending requests |
|
| Permission mode passed to the dsh Agent |
Permissions & Security
dsh Agent inherits dsh's permission system: default
workspace-write(can only write to the working directory), adjustable toread-only/danger-full-access.All Direction A executions go through the confirmation gate, with clear quota disclosure.
Direction B read-only paths never expose any secret values; the write path (
dsh_patch_config) defaults to dry-run, auto-backs up before writing, requires confirmation, and warns that the home layer affects all profiles (including a running Web UI).Sessions persist in
~/.dsh/sessions; credentials are shared via~/.dsh/.credentials.yaml.The server only listens locally (stdio pipe / 127.0.0.1).
Switching Models (typical Direction B usage)
The default model comes from dsh's agent-default-model (locally deepseek-official / deepseek-v4-flash). To change it:
Use
dsh_patch_config(recommended): submit a patch to thehomelayer; after dry-run validation passes and the user confirms, it is written (with automatic backup). Example patch:- id: agent-default-model config: provider: deepseek-official model: deepseek-chatChange global settings: edit the
agent-default-modelsection of~/.dsh/settings.yaml.Switch the whole profile: use
DSH_MCP_PROFILEto specify another profile (different toolset/persona).
Known Limitations
Direction A spawns a new process per call (about 2~3 seconds cold start + model response), no streaming, task text ≤ ~30k characters.
The confirmation gate relies on the caller showing
confirmation_requiredto the user; if the caller is an unattended program andDSH_MCP_AUTO_APPROVEis not set, requests will hang until they expire.Resource/tool count: 6 resources + 11 tools.
Development & Testing
node scripts/smoke.mjs # 仅测 dsh 后端(无 MCP)
node scripts/demo.mjs # 演示:确认闸门 + 读懂我 + 改配置提议
node scripts/mcp-client-test.mjs # stdio 端到端:闸门/拒绝/多轮/自省/patch/资源
node scripts/http-client-test.mjs # HTTP 端到端(自动批准模式)Directory Structure
dsh-mcp/
├── src/
│ ├── index.js # CLI 入口(stdio / HTTP 传输)
│ ├── server.js # MCP 工具与资源注册
│ ├── dsh.js # dsh 子进程运行器(spawn/超时/输出捕获/并发闸门)
│ ├── approvals.js # 确认闸门(额度披露、待确认队列、过期)
│ ├── self.js # 自省:设计快照、技能发现、配置路径、插件契约
│ └── sessions.js # 会话记忆与多轮提示组装
├── scripts/ # 冒烟 + 演示 + 端到端测试
└── examples/ # 各客户端接入配置This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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.8MIT
- AlicenseAqualityBmaintenanceA local STDIO MCP server that bridges Codex to the official DeepSeek Harness (DSH) Web Host, enabling supervised DSH collaboration through session management, delegation, and monitoring tools.136MIT
- AlicenseNot gradedqualityBmaintenanceTurns DeepSeek Harness into an MCP server with tools for session management, agent execution, resources, and OAuth, plus browser automation and GitHub/GitLab integration.15MIT
- AlicenseNot gradedqualityCmaintenanceIn-process DeepSeek Harness plugin that exposes a local Streamable HTTP MCP server, allowing MCP clients like Codex to submit tasks executed by DSH child agents using DSH's existing tools.281MIT
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/NanGongWenTian01/dsh-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server