dsh-any-agent — Claude Code MCP server: setup
The dsh-any-agent MCP server for Claude Code hands coding tasks to DeepSeek Harness. It keeps conversations resumable across restarts and returns results after long-running work finishes.
MIT ★ 6 updated 2026-11-16
claude mcp add --env DSH_BIN=<DSH_BIN> --env DSH_MCP_PERMISSION=<DSH_MCP_PERMISSION> --env DSH_MCP_APPROVAL=<DSH_MCP_APPROVAL> --env DSH_MCP_LANG=<DSH_MCP_LANG> --transport stdio dsh-any-agent -- npx -y dsh-any-agentWhat dsh-any-agent does
dsh-any-agent sends a goal to DeepSeek Harness and lets the client collect the result later. The agent can write code and run scripts; session identity is stored on disk so a conversation can resume after a restart. To keep an active turn alive after the client closes, enable resident process mode with DSH_MCP_DAEMON=1.
Long jobs return a run_id; a sentinel file signals completion to the host. A running turn can be interrupted or redirected. Use dsh-any-agent watch or the local web dashboard, dsh-any-agent dashboard, to follow activity. Git worktree isolation is an optional setting. DeepSeek Harness and an MCP client that supports stdio are required.
What it helps with
- hand off a long coding task and collect its result later
- resume a conversation after the server restarts
- redirect an agent while its turn is running
- inspect tool calls during dispatched work
Example prompts for the agent
- Ask DeepSeek Harness to fix the authorization module and report when the result is ready.
- Stop the current turn and redirect the agent to fix the tests.
- Show the tools called during the task.
How to install dsh-any-agent
Platform CLI
claude mcp add --env DSH_BIN=<DSH_BIN> --env DSH_MCP_PERMISSION=<DSH_MCP_PERMISSION> --env DSH_MCP_APPROVAL=<DSH_MCP_APPROVAL> --env DSH_MCP_LANG=<DSH_MCP_LANG> --transport stdio dsh-any-agent -- npx -y dsh-any-agentReplace <…> with your own values
Platform CLI
codex mcp add dsh-any-agent --env DSH_BIN=<DSH_BIN> --env DSH_MCP_PERMISSION=<DSH_MCP_PERMISSION> --env DSH_MCP_APPROVAL=<DSH_MCP_APPROVAL> --env DSH_MCP_LANG=<DSH_MCP_LANG> -- npx -y dsh-any-agentReplace <…> with your own values
Config file
{
"mcpServers": {
"dsh-any-agent": {
"command": "npx",
"args": [
"-y",
"dsh-any-agent"
],
"env": {
"DSH_BIN": "<DSH_BIN>",
"DSH_MCP_PERMISSION": "<DSH_MCP_PERMISSION>",
"DSH_MCP_APPROVAL": "<DSH_MCP_APPROVAL>",
"DSH_MCP_LANG": "<DSH_MCP_LANG>"
}
}
}
}Replace <…> with your own values
Config file
{
"servers": {
"dsh-any-agent": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"dsh-any-agent"
],
"env": {
"DSH_BIN": "<DSH_BIN>",
"DSH_MCP_PERMISSION": "<DSH_MCP_PERMISSION>",
"DSH_MCP_APPROVAL": "<DSH_MCP_APPROVAL>",
"DSH_MCP_LANG": "<DSH_MCP_LANG>"
}
}
}
}Replace <…> with your own values
Platform CLI
gemini mcp add -e DSH_BIN=<DSH_BIN> -e DSH_MCP_PERMISSION=<DSH_MCP_PERMISSION> -e DSH_MCP_APPROVAL=<DSH_MCP_APPROVAL> -e DSH_MCP_LANG=<DSH_MCP_LANG> dsh-any-agent npx -y dsh-any-agentReplace <…> with your own values
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about dsh-any-agent
How do I install dsh-any-agent in Claude Code?
Run claude mcp add dsh-any-agent -- npx -y dsh-any-agent.
What does dsh-any-agent do?
It connects DeepSeek Harness to an MCP client as a persistent coding agent. Send it a goal, follow its work, and collect the result later.
What does dsh-any-agent require?
It needs DeepSeek Harness and an MCP client with stdio support. Set DSH_MCP_DAEMON=1 to keep an active turn running after the client closes.