dsh-as-mcp-server
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., "@dsh-as-mcp-servergrab the floor lock and alert the agent to hold off on writes"
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-as-mcp-server
English | 中文
Exposes DSH as an MCP server, so any MCP client can watch what the agent is doing and steer it mid-flight.
Two agents on one workspace normally means two agents overwriting each other. This bridge gives them a shared protocol instead: what the other side is thinking, what it's touching, who owns the floor, and a way to interrupt.
What the other client gets
Capability | Mechanism |
See the agent think | LLM stream deltas → |
See what it touches | tool calls → |
Share intent |
|
One writer at a time |
|
Interrupt the current turn |
|
Delegate a review |
|
Related MCP server: Local Codex Bridge
The 8 MCP tools
dsh_get_status · dsh_get_intent · dsh_set_intent · dsh_lock_acquire · dsh_lock_release · dsh_lock_status · dsh_inject_alert · dsh_review_request
Notifications (server → client, SSE)
notifications/dsh/status · thinking · tool · file · intent · lock · alert-queued · review
Install
dsh plugin --profile web add dsh-as-mcp-serverThen add the bridge to your MCP client — any client speaking Streamable HTTP works (WorkBuddy, Claude Desktop with an MCP-HTTP adapter, Cursor, Cline, …):
{
"mcpServers": {
"dsh-bridge": {
"type": "streamableHttp",
"url": "http://127.0.0.1:51630/mcp",
"timeout": 60000
}
}
}Restart DSH. The log should show [dsh-as-mcp-server] MCP server 就绪: http://127.0.0.1:51630/mcp.
Self-test without installing
# terminal A — start a demo server on 51999
node dsh/mcp.js 51999
# terminal B — handshake, all 8 tools, floor lock, SSE stream
node dsh/mcp-test.js http://127.0.0.1:51999/mcpExpected: 13 checks pass, ending with 全部通过 ✅.
There is also a unit-level regression suite that runs with no server:
node dsh/bridge-regression.test.mjs # 13 pass / 0 failConfiguration
~/.dsh-mcp-bridge/config.json (all optional):
{
"port": 51630,
"host": "127.0.0.1",
"token": "",
"lockTtlMs": 300000,
"denyTools": ["write", "edit", "git"],
"alertInjection": true,
"inboxRoot": ""
}inboxRoot defaults to ~/.dsh-mcp-bridge/inbox.
Honest boundaries
Loopback only by default. Binds
127.0.0.1; atokenis supported but empty by default. Do not expose the port.The lock is enforced on the DSH side only. While held, DSH's
write/edit/gitare denied attools/pre-execute. The remote client is trusted to honour the lock by convention — this is a coordination primitive, not a security boundary between mutually hostile parties.Alert injection is best-effort. It goes through
agent/pre-step. If the current step cannot be injected, the alert stays queued and lands on the next step.One Server + transport per client. That is an MCP SDK constraint; multiple clients (a recorder and an agent, say) each get their own. A reconnecting client must use a new
sessionId.The thinking stream forwards text deltas only, and tool arguments are truncated to their first 120 characters — this is a visibility channel, not a full transcript tap.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Agent-native collaboration network: orchestrate a team of long-running agents from any MCP client.
Agent-native notes, tasks, dev-docs, vaults, sync & handoffs. MCP + OpenAPI dual surface.
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables one coding agent to inspect, configure, debug, and repair another agent over stdio MCP, with redacted reads and confirm-gated writes and restarts.MIT
- AlicenseNot gradedqualityBmaintenanceEnables external AI supervisors to oversee and steer native Codex through MCP, including thread and turn management, observation, interruption, approval responses, runtime status, and checkpointing.MIT
- AlicenseNot gradedqualityBmaintenanceEnables supervising existing AI coding sessions through a local MCP bridge, preserving observations, requesting attention, recording scoped follow-ups, and tracking delivery and completion evidence.1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables a human supervisor’s MCP client to inspect policies, agents, trust scores, and runs, and to pause, resume, kill, approve, reject, edit run memory, or override an agent’s next tool call.MIT