awol2005ex3/dsh-hosts ↗★ 0

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脚本的用户。

Package
dsh-host-mcp
Compatibility
Unverified
Harness peer range
^0.2.0-rc.2
Cordis peer range
^4.0.1
Version
0.1.0
License
Apache-2.0
Last updated
Oct 16, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:awol2005ex3/dsh-hosts

配置服务器

打开 设置 → 插件 → 服务器(在「内置插件」页的页签里):

  1. 点 + 添加服务器,填 主机/IP、端口、Token(host_server_mcp 的 token,形如 hsk_...);
  2. 单选钮设为默认服务器;
  3. 点 保存配置 —— 写入 profile 配置(volatile 字段,宿主热更新,无需重启);
  4. 想先验证再保存,点行内 测试连接:依次探 /health 与 MCP initialize,token 是否有效一目了然。

也可以用 高级:JSON 编辑 直接编辑 servers 数组。 token 会明文写入本机 profile 配置文件,请只填可信的内网服务器。

配置字段

字段默认说明
servers[]JSON 数组 [{id,host,port,token,mcpPath,note}]
defaultServer第一个省略 server 参数时使用的服务器
requestTimeoutMs60000单次 MCP 请求 HTTP 超时
defaultTimeoutSecs10exec_script 默认超时(服务端会再钳一次)
readLimitBytes131072读文件预览默认字节上限
maxResultChars262144工具结果回传上限(超出截断)

配置字段

字段默认说明
servers[]JSON 数组 [{id,host,port,token,mcpPath,note}]
defaultServer第一个省略 server 参数时使用的服务器
requestTimeoutMs60000单次 MCP 请求 HTTP 超时
defaultTimeoutSecs10exec_script 默认超时(服务端会再钳一次)
readLimitBytes131072读文件预览默认字节上限
maxResultChars262144工具结果回传上限(超出截断)