dsh-host-mcp
DeepSeek Harness (dsh) plugin: connect to host_server_mcp instances (本机文件 + 脚本执行 MCP 服务) — configure servers in the Web settings page, then inspect, run scripts and troubleshoot them from the agent or the browser panel. 适合需要通过Web界面配置、测试和运行本机MCP脚本的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:awol2005ex3/dsh-hostsREADME
Read the full README ↗配置服务器
打开 设置 → 插件 → 服务器(在「内置插件」页的页签里):
- 点
+ 添加服务器,填 主机/IP、端口、Token(host_server_mcp 的 token,形如hsk_...); - 单选钮设为默认服务器;
- 点
保存配置—— 写入 profile 配置(volatile 字段,宿主热更新,无需重启); - 想先验证再保存,点行内
测试连接:依次探/health与 MCPinitialize,token 是否有效一目了然。
也可以用
高级:JSON 编辑直接编辑servers数组。 token 会明文写入本机 profile 配置文件,请只填可信的内网服务器。
配置字段
| 字段 | 默认 | 说明 |
|---|---|---|
servers | [] | JSON 数组 [{id,host,port,token,mcpPath,note}] |
defaultServer | 第一个 | 省略 server 参数时使用的服务器 |
requestTimeoutMs | 60000 | 单次 MCP 请求 HTTP 超时 |
defaultTimeoutSecs | 10 | exec_script 默认超时(服务端会再钳一次) |
readLimitBytes | 131072 | 读文件预览默认字节上限 |
maxResultChars | 262144 | 工具结果回传上限(超出截断) |
配置字段
| 字段 | 默认 | 说明 |
|---|---|---|
servers | [] | JSON 数组 [{id,host,port,token,mcpPath,note}] |
defaultServer | 第一个 | 省略 server 参数时使用的服务器 |
requestTimeoutMs | 60000 | 单次 MCP 请求 HTTP 超时 |
defaultTimeoutSecs | 10 | exec_script 默认超时(服务端会再钳一次) |
readLimitBytes | 131072 | 读文件预览默认字节上限 |
maxResultChars | 262144 | 工具结果回传上限(超出截断) |