dsh-bridge-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-bridge-mcp
中文 · English
Pre-release. Distributed from this repository only — there is no npm package yet. Install with the four commands below; nothing else is required.
Hand one task to an existing DeepSeek Harness session from Claude Code, Antigravity, Codex, or any other agent — and get that session's answer back.
You already have a DSH session holding the context, tools, and half-finished work for something. This lets another harness — or a shell script — ask it a question, wait for that message's own turn to finish, and read the answer as plain text.
dsh-bridge send "where did you get to on the ingest?" --title "polymarket" --latestOne message in, one answer out. No session is created, nothing is forked.
The answer is the turn that consumed your message — never an earlier turn that happened to be running when you sent it.
Long jobs:
--detachreturns anrpcId;dsh-bridge result --rpc-id <id> --waitpicks the verdict up later, from a different process, after a reboot.Works against a remote DSH host, not just the local process.
Zero runtime dependencies, Node ≥ 22.19.
Why not just install a DSH plugin?
There is an existing in-host plugin with a similar purpose
(dsh-bridge on npm, an in-process DSH plugin exposing
session messaging to the host's own agents). Both are reasonable; they sit in different places:
A DSH plugin |
| |
Install | added to a DSH profile, fenced by DSH plugin version requirements | nothing added to DSH; a client, like a browser tab |
Reach | only the local host process | any reachable DSH Web host, including remote over TLS |
Caller | DSH's own agents | any harness: Claude Code, Antigravity, Codex, scripts |
Completion | delivery acknowledgement (the host accepted the message) | waits for the turn that consumed your message, with exit codes |
Cost | follows DSH's plugin API | depends on DSH's browser-cookie authentication, so a DSH release can require a fix here |
Pick the plugin if you want DSH agents messaging each other inside one host. Pick this if the caller lives outside DSH, or if the host is on another machine.
Related MCP server: zhihui-xiezuo-mcp
Install (source only, for now)
Not on npm yet. Use it straight from this repository — Node ≥ 22.19 and no other prerequisites.
git clone https://github.com/6thChoice/dsh-bridge-mcp
cd dsh-bridge-mcp
npm install # builds dist/ through the package's prepare script
npm link # optional: puts dsh-bridge and dsh-bridge-mcp on PATHRunning npm link is optional: every command below also works as
node dist/cli.js … from inside the checkout, and setup emits an absolute path either way, so
nothing depends on a global install.
No clone at all — npx can run it from GitHub (note --package: the package ships two binaries, and
a bare npx <spec> would pick neither):
npx -y --package github:6thChoice/dsh-bridge-mcp dsh-bridge doctorThe first npx run fetches and builds the package into npx's cache (a slow first start), so for a
harness you use every day prefer the clone above. When a published release lands, npx -y dsh-bridge-mcp will replace that form.
60 seconds
From inside the checkout (if you skipped npm link, prefix each with node dist/cli.js):
dsh-bridge doctor # host, auth path, reachability, and the fix for anything failing
dsh-bridge sessions --limit 5
dsh-bridge send "reply with the single word PONG" --cwd ~/code/my-project --latestWire it into a harness — setup prints a block generated from your machine (absolute node and
the checkout's dist/mcp.js, so it works without a publish):
dsh-bridge setup claude-code # or antigravity, codex, cursor, cline, continue, zed, raw
dsh-bridge setup claude-code --write # applies it (Claude Code and Antigravity only)Copy-paste configurations for every supported harness live in examples/ — including
examples/remote-host.md for a DSH on another machine. Details and
troubleshooting: docs/install.md.
The commands
command | purpose |
| send one message; print the final assistant text of its turn |
| read that send back later; |
| list and resolve sessions |
| diagnose host, auth path, reachability |
| emit MCP configuration for this machine |
Targets: --session <id\|prefix>, --title <substr>, --cwd <path>, --latest. Exactly one
family; no selector is an error, several matches is an error listing candidates. Full reference:
docs/usage.md.
MCP tools: dsh_send, dsh_result, dsh_sessions — same semantics; structuredContent carries the
JSON verdict and isError mirrors the CLI exit code.
It tells you the truth
Plain stdout is only the final assistant text — safe to paste into another agent's tool result.
--jsongivesrpcId,sessionId,turn,status,reason,text,toolCalls[{name,ok}],durationMs,usage,host.Exit codes:
0completed (or detached, or still pending),2timeout,3the turn ended in error/cancelled,1local failure. On timeout therpcIdand a read-later hint go to stderr, so a caller that only parses stdout cannot mistake a partial turn for a finished one.A still-running turn never prints text:
pendingmeans "no verdict in the durable log yet".
Authentication
Two paths, chosen automatically, both producing an ordinary DSH browser session:
Launch URL token — the
http://127.0.0.1:<port>/?token=…URL thatdsh webprints. This is DSH's public flow; the token is exchanged for the browser cookie and works across machines and DSH versions.Credential minting — reads
$DSH_HOME/.credentials.yaml(client-connection/browser-session) and signs the browser cookie for the target host. Zero user steps; needed for the desktop app, which never prints its launch URL.
The cookie is held in memory only and never printed. doctor reports which path was used.
Read SECURITY.md before pointing this at a host you do not control: sending a prompt
can make that host's agent run tools, so treat the bridge like the DSH composer itself.
Known limitations
Authentication follows DSH internals (cookie scheme, credential record). A DSH release can break it;
doctormakes that obvious anddocs/protocol.mdrecords exactly what was verified. Verified against DSH0.2.1-rc.2; older0.1.xhosts are best-effort.A blocking
sendis bounded by the calling harness's own tool timeout as well as--timeout(Claude Code's Bash tool caps at 10 minutes). Use--detach+resultfor long handoffs.resultreportingpendingis not proof the turn is alive — it can also mean the prompt was dropped or fell outside the read window.A dropped follow socket is not retried; the answer remains readable with
result.--steerinto a turn that has been running for a long time can fail after delivery.
The full list, with file references, is docs/backlog.md.
Development
npm install && npm run build
npm run typecheck && npm testIntegration tests spawn a disposable dsh web with a temp DSH_HOME and a local stub model
provider — no real model call, no real session touched — and self-skip when no dsh binary exists.
See CONTRIBUTING.md.
License
MIT © 2026 6thChoice. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hand Rush a task: a cloud agent does the work and returns a PR, report, files or answer.
Hand Rush a task: a cloud agent does the work and returns a PR, report, files or answer.
Remote shell and detached long-running jobs on your own machines — no SSH, open ports or VPN.
Shared task layer for AI agents: tasks, handoffs and decisions that persist across tools.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceLets an external MCP client drive a running DeepSeek Harness instance: list its sessions, create or continue a session in a chosen workspace with an instruction, and wait for the finished answer. It also carries the instance's questions and approval decisions back to the caller, so a delegated turn never deadlocks waiting for a human.MIT
- AlicenseNot gradedqualityCmaintenanceLets external MCP clients attach to an already-running local DeepSeek Harness web instance to list and inspect sessions, explicitly bind a target, deliver a task, and wait for that turn's final reply. Read-only tools are always available, while binding, sending, creating, and renaming require an explicit confirm flag so human approval is never bypassed.MIT
- AlicenseNot gradedqualityBmaintenanceEnables an MCP host to delegate a task to a fresh headless DeepSeek Harness agent that inherits the user's skills, AGENTS.md, and sign-in, runs one turn in a specified project directory, and returns the answer without a resident daemon. Supports long-running tasks via task ids for later collection, plus status, continue, and cancel tools.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables Codex to delegate scoped tasks to a local DeepSeek Harness over MCP — dispatching read-only reviews or authorized workspace writes, steering and monitoring runs to a terminal state, and returning structured evidence such as changed paths, test results, and assistant text. It also supports exact archival of the terminal session by full session ID.1MIT