dsh-codex-mcp
MCP bridge for DSH: a loopback Streamable HTTP MCP server inside DeepSeek Harness that lets Codex dispatch coding tasks to a DSH headless agent. · 让 Codex 通过 MCP 把开发任务派给 DSH 的桥 适合需要通过协议将编码任务无缝分发至后台执行的开发者。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:GEB-lab/dsh-codex-mcpドキュメント
README 全文を読む ↗Codex configuration
~/.codex/config.toml:
[mcp_servers.dsh_codex]
url = "http://127.0.0.1:39391/mcp"
http_headers = { Authorization = "Bearer " }
startup_timeout_sec = 30
tool_timeout_sec = 3600
enabled = true
codex mcp list should then show dsh_codex … enabled Bearer token.
Then, from Codex:
Use
dsh_runto have DSH, inC:\work\proj, add typed input support tosrc/sum.mjsplus threenode:testcases; only touchsrc/andtest/. After it returns, runnode --test test\*.test.mjsyourself and report the result.
Configuration
All keys live under this entry's config in cordis.patch.yml (bundle default) or in ~/.dsh/profiles/ /cordis.patch.yml (your override):
- id: dsh-codex-mcp
name: dsh-codex-mcp
config:
port: 39400
defaultCwd: 'D:\code'
| key | default | meaning |
|---|---|---|
host | 127.0.0.1 | bind address; non-loopback is refused unless allowNonLoopback: true |
port | 39391 | 0 picks a free port (dsh_env reports the real one) |
path | /mcp | endpoint path |
tokenFile | $DSH_HOME/codex-mcp.token | Bearer token; created when missing |
regenerateToken | false | rotate the token on next start |
dshHome | $DSH_HOME or ~/.dsh | child DSH_HOME |
profile | headless | child DSH profile |
permissionMode | danger-full-access | child DSH_PERMISSION_MODE |
defaultCwd | host cwd | used when a call omits cwd |
defaultTimeoutSec | 3600 | per-call timeout |
maxConcurrentRuns | 4 | parallel headless tasks |
dshCli | auto-detected | explicit path to …/@deepseek-ai/dsh/lib/bin.js |
nodePath | auto-detected | explicit Node executable |
locale | zh | en or zh for MCP tool text |
includeEvents | false | append the raw NDJSON event tail to results |
~/, relative paths and $DSH_HOME are expanded; unknown keys are ignored.