dsh-control-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
dsh-control-mcp
Control DeepSeek Harness (DSH) itself from MCP clients and an opt-in HTTP API.
Once you switch it on, an MCP client such as Claude Code, Claude Desktop, Codex, Cursor or another DSH can list and create sessions, send prompts and read the replies, and manage workspaces, models, plugins, schedules, goals, terminals and settings. It uses the same Remote API as the DSH web GUI, so a call has the same validation and effects as clicking through the GUI.
MCP server: Streamable HTTP at
/dsh-control-mcp/mcp, plus a bundled stdio bridge (npx -y dsh-control-mcp).HTTP API: JSON and Server-Sent Events at
/dsh-control-mcp/api/v1.Off by default. Turn each surface on in Plugins → dsh-control-mcp.
One bearer token for both surfaces, kept in the DSH credential store. You can show, copy and rotate it on the plugin page.
Read-only mode and blocked endpoint patterns limit what clients may do.
Install
dsh plugin --profile web add dsh-control-mcpOr open Plugins → Add plugin in the GUI and enter dsh-control-mcp. Restart DSH if the plugin page does not appear.
Requires DSH >=0.2.0 <0.3.0 and Node.js 22.19 or later.
Related MCP server: dsh-as-mcp
Turn it on
Open Plugins → dsh-control-mcp.
Switch on MCP server and/or HTTP API. Changes apply immediately, without a restart.
Under Client setup, copy the configuration for your client.
MCP over HTTP (Claude Code, Cursor, Codex, any Streamable HTTP client)
{
"mcpServers": {
"dsh-control": {
"type": "http",
"url": "http://127.0.0.1:3080/dsh-control-mcp/mcp",
"headers": { "Authorization": "Bearer <token>" }
}
}
}Claude Code: claude mcp add --transport http dsh-control http://127.0.0.1:3080/dsh-control-mcp/mcp --header "Authorization: Bearer <token>".
MCP over stdio (Claude Desktop and other stdio-only clients)
{
"mcpServers": {
"dsh-control": {
"command": "npx",
"args": ["-y", "dsh-control-mcp"],
"env": {
"DSH_CONTROL_URL": "http://127.0.0.1:3080/dsh-control-mcp/mcp",
"DSH_CONTROL_TOKEN": "<token>"
}
}
}
}The bridge relays newline-delimited JSON-RPC from stdin to the HTTP endpoint. It uses only Node.js built-ins.
Use the address of your DSH web server; the plugin page fills it in for you.
MCP tools
Tool | What it does |
| Version, control mode, namespaces and endpoint counts. Start here. |
| Sessions with id, title, directory and running state. |
| New session in a directory or workspace, optionally with an agent preset. |
| Send a message ( |
| Wait until a session is idle or needs input. |
| Latest messages as role/text pairs (or raw page records). |
| Stop the running turn. |
| Workspaces with ids, paths and sessions. |
| Every model the harness can route to. |
| Plugins and their state. |
| Every harness endpoint, filterable, optionally with JSON Schemas. |
| One endpoint's argument schema. |
| Call any unary endpoint, e.g. |
| Read a stream endpoint (e.g. |
One MCP tool per endpoint on the plugin page also lists every endpoint (about 200 on DSH 0.2.2) as its own dsh__<namespace>__<method> tool. Many clients handle the 14 tools above better.
In read-only mode, write tools are hidden and write calls are refused.
HTTP API
Every request needs Authorization: Bearer <token>. Responses are {"ok": true, "value": …} or {"ok": false, "error": {"code", "message"}} with a matching HTTP status.
Method and path | Purpose |
| Harness and plugin versions, mode, endpoint count. |
| Endpoint catalog. |
| One endpoint with argument and result schemas. |
| Call a unary endpoint. Body: its named arguments. |
| Body |
| The curated tools above, over HTTP. |
| Unauthenticated: which surfaces are on. No secrets. |
TOKEN=…; BASE=http://127.0.0.1:3080/dsh-control-mcp/api/v1
curl -s -H "Authorization: Bearer $TOKEN" $BASE/info
curl -s -X POST -H "Authorization: Bearer $TOKEN" -H 'content-type: application/json' \
-d '{"_request":{}}' $BASE/call/session/list
curl -s -X POST -H "Authorization: Bearer $TOKEN" -H 'content-type: application/json' \
-d '{"sessionId":"<id>","text":"Summarize the README","wait":true}' $BASE/tools/dsh_send_prompt
curl -N -X POST -H "Authorization: Bearer $TOKEN" -H 'accept: text/event-stream' -H 'content-type: application/json' \
-d '{"args":{}}' $BASE/stream/workspace/followEndpoint arguments are named exactly as the harness declares them. Check GET …/endpoints/<ns>/<method>. An argument resolved by the agent lookup (for example agentId) takes a session id.
Security
Full control means full control. A prompt can run tools and shell commands. Anyone with the token, and network access to DSH, can do what you can do in the GUI. Treat the token like a password, rotate it if it leaks, and prefer read-only mode when a client only needs to look.
Both surfaces are off until you turn them on, and turning one off takes effect on the next request.
Tokens are 256-bit random values compared in constant time. The plugin page reads the token through an owner-only route that accepts only your signed-in DSH browser session from the same origin.
Requests with a cross-site
Originare refused, so a web page you visit cannot use the API even if it guesses the URL.Calls run as a dedicated in-process owner peer that never answers approvals or questions; those still appear in the GUI. (
userQuestions/answerremains callable explicitly.)DSH binds to loopback by default. For remote clients use an SSH tunnel or DSH's own
trustedHosts/TLS options. Do not expose it publicly without TLS.The Host side makes no outbound network requests.
How it works
The Host plugin (index.mjs) registers one prefix route, /dsh-control-mcp, on the DSH web server. Requests are dispatched through ctx.typertGateway.invoke() and ctx.typertGateway.stream() with an owner Peer created by ctx.connection.createPeer(). Endpoint discovery and argument schemas come from the live Typert registry (ctx.typert.local.list()), so endpoints added by other plugins appear automatically.
Identity | Value |
npm package, bundle, Loader entry id/name, Host plugin name |
|
Client module id and |
|
Web route prefix |
|
Credential record |
|
Config fields (all volatile) |
|
Log prefix |
|
Injected Host services |
|
Injected client packages |
|
Source layout
Path | Role |
| Host entry: Config, token store, gateway bridge, route registration. |
| Transport-independent catalog, policy, curated tools and MCP JSON-RPC. |
| HTTP routing, auth, MCP Streamable HTTP, REST and SSE. |
| Plugin page source (source of truth). |
| Generated by |
| stdio bridge. |
Development
npm run verify # build client bundle, unit tests, release gate (metadata, identities, packed files)
npm pack --dry-runLOCAL-SETUP.md covers testing against a disposable DSH profile, including the live MCP/API smoke test (npm run test:live) and the headless-Chrome page test (npm run test:e2e).
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Host any HTTP API as a standard MCP server; auto-distribute to 12+ mainstream agent platforms.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables permission-scoped MCP clients to interact with DeepSeek Harness Desktop over a local loopback HTTP bridge, including checking status, listing models/workspaces/sessions, reading bounded session history, and creating, sending, waiting for, or canceling chats. Access is restricted per bearer token and only exposes the tools and sessions granted to that token.MIT
- AlicenseNot gradedqualityBmaintenanceExposes a running DeepSeek Harness as an MCP endpoint so any other agent or script can create workspaces and sessions, hand coding tasks to the DSH agent, read and write files, run shell commands, and invoke permitted harness tools under the same sandbox, transcript, and permission policy as the DSH UI.489 npm7MIT
- AlicenseNot gradedqualityCmaintenanceExposes a DeepSeek Harness instance — either the whole runtime or one session chosen in the UI — as an MCP Streamable HTTP endpoint on the Harness Web server's origin. Lets other MCP-speaking agents such as Codex or Claude Code delegate tasks, list and read session transcripts, and cancel or inspect running turns using the Harness's own model, tools, workspace and sandbox policy.MIT
- AlicenseNot gradedqualityBmaintenanceExposes a local DeepSeek Harness instance to external MCP clients over Streamable HTTP, legacy HTTP+SSE, or a stdio bridge. Enables creating sessions, running multi-turn conversations, reading and full-text searching history, cancelling running turns, and listing or selecting models.57 npm1MIT