dsh-as-mcp
将DSH能力作为MCP服务开放给其他智能体的桥接插件 适合需要将DSH的工作区、会话和代码执行能力接入外部MCP生态的开发者。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xiseliuli/dsh-as-mcp说明文档
阅读完整 README ↗Configuration
Defaults ship in cordis.patch.yml. A profile's own cordis.patch.yml overrides the row by
id, and an override replaces the row's whole config object rather than deep-merging
it — restate every key you still want. Unknown keys are rejected at boot with the offending
key named, because a silently ignored typo means your override is not being applied.
- id: dsh-as-mcp
name: dsh-as-mcp
config:
http:
enabled: true # plugin-owned listener
host: 127.0.0.1
port: 8790 # 0 asks the OS for a free port
path: /mcp
mountOnWebServer: false # also serve at http://:/mcp
auth:
token: '' # empty: read/generate $DSH_HOME/dsh-as-mcp/token
tools:
workspace: true
session: true
files: true
shell: true
session:
agentPreset: '' # empty: harness default
provider: '' # must be paired with model
model: ''
promptTimeoutMs: 900000
limits:
maxReadBytes: 1048576
shellTimeoutMs: 120000
agentToolTimeoutMs: 120000
approval:
policy: inherit # inherit | allow