Dsh As MCP
MCP server by xiseliuli Verified · npm:dsh-as-mcp
Exposes a running DeepSeek Harness (DSH) as an MCP server, so other agents and scripts can create workspaces and sessions, hand DSH agents coding tasks, and read token usage and cost. It is for developers who want Claude Code, Codex, CI jobs or their own scripts to drive DSH.
Install Dsh As MCP
Built from the published package, never by AI.
claude mcp add dsh-as-mcp -- npx -y dsh-as-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"dsh-as-mcp": {
"args": [
"-y",
"dsh-as-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"dsh-as-mcp": {
"args": [
"-y",
"dsh-as-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"dsh-as-mcp": {
"args": [
"-y",
"dsh-as-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add dsh-as-mcp -- npx -y dsh-as-mcp{
"mcpServers": {
"dsh-as-mcp": {
"args": [
"-y",
"dsh-as-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add dsh-as-mcp npx -y dsh-as-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the dsh-as-mcp block.
About
Dsh As MCP runs inside a DSH host process and exposes that harness as an MCP server. Any MCP client, such as Claude Code, Codex, another DSH, a CI job or a custom script, can create workspaces, start sessions, give the DSH agent a task, read and write files, and run commands. Sessions created over MCP are regular DSH sessions. They appear in the DSH UI, run in the DSH sandbox and follow the same permission policy as sessions started by hand.
Clients connect over Streamable HTTP with a bearer token, or over stdio through a bundled bridge. The default endpoint is on 127.0.0.1 port 8790. The dsh_info tool reports the endpoint, enabled tool groups, available harness services and usage and cost availability. The plugin is installed into a DSH profile with the dsh plugin command.
Written from the project's README and checked against it.
Tools it gives your assistant
dsh_infoReports the endpoint, version, token source, enabled tool groups and accepted providers and presets.workspace_createRegisters a directory as a DSH workspace, creating it if needed.workspace_listLists registered workspaces with their id, path, title and attached sessions.workspace_deleteUnregisters a workspace without touching files or session history.session_createStarts a DSH agent session bound to a workspace or a bare directory.session_forkBranches a live or saved session into a child session at a chosen event or turn.session_set_modelChanges the provider route and model that later turns use.session_renameSets an explicit user title on a session.session_searchSearches session message content using FTS tokens and phrases.session_listLists live session summaries, most recently updated first, with filters.
What you need
- A running DeepSeek Harness (DSH) host
- DSH 0.1.5-rc.1 or newer for git installs
- pnpm, for git installs that run the build step
- A bearer token for the MCP endpoint
Try asking
- Use dsh_info to check which DSH providers and agent presets are available.
- Create a workspace for ~/projects/api and start a session to add tests.
- List my DSH sessions in the current directory that are still running.
Good to know
- session_search is opt-in and returns a message that explains how to enable it when the index is off.
- Search results are capped at 20 per call and reports hasMore.
- Git installs need an explicit pnpm build approval for this package.
- session_rename is refused when another DSH process holds the session open.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Dsh As MCP
All alternatives →Oh My Posh Validator is listed as an MCP server, but the source is the README for oh-my-posh, a cross platform prompt theme engine. It does not describe an MCP server, tools, or schema validation.
Sim is a workspace for building, deploying and managing AI agents and workflows. Its MCP server lets Claude, Claude Code, Codex or another MCP client manage workspaces, workflows, tables, knowledge bases, files and logs.
Omnara deploys durable AI agents on any model and any machine. It is an open-source, self-hostable managed agent platform under Apache 2.0, with a REST API, TypeScript SDK, CLI, and MCP server.
Strata is an MCP server from Klavis AI for progressive tool usage, described as a way to optimize the AI agent's context window. The repository is deprecated, but it remains public for reference and for local or hosted use.
VoiceMode is an MCP server that adds voice conversations to Claude Code and other MCP capable agents. It uses speech-to-text and text-to-speech. It suits people whose hands or eyes are busy.
Gives an AI agent access to the skills, plugins, MCP connections, and Google Workspace and Microsoft 365 capabilities assigned to you by your OpenWork organization, through one OAuth MCP URL. Intended for people and teams who want to reuse the same setup across agents, tools, and machines.
Compare with Oh My Posh Validator, Sim or Omnara
Dsh As MCP: common questions
Can another AI assistant control DeepSeek Harness through MCP?
Yes. The plugin exposes DSH as an MCP server, so clients such as Claude Code or Codex can create sessions and drive DSH agents. The source names these as examples of clients that can connect.
Are sessions started over MCP visible in the DSH UI?
Yes. The source says a session created over MCP is a real DSH session that appears live in the DSH UI and runs in the DSH sandbox.
Does the bridge send my token to remote servers?
No by default. The bridge sends the token from the token file only to loopback endpoints. Pointing it at a remote host requires setting DSH_AS_MCP_TOKEN explicitly.
How do I install Dsh As MCP?
In Claude Code run claude mcp add dsh-as-mcp -- npx -y dsh-as-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Dsh As MCP the official server?
Dsh As MCP is published by npm:dsh-as-mcp from its verified domain in the official MCP Registry.
Is Dsh As MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Dsh As MCP safe to use?
It scores 81 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Dsh As MCP?
Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.
Does Dsh As MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
