dsh-plugin-manager:DeepSeek Harness 的插件、MCP 与技能管理

前言

DSH 的生态理念是「一切皆插件」。当开发者在同一个 profile 中同时使用插件、MCP server 和 skills 时,需要查看状态、安装/卸载、启用/禁用以及导入配置。dsh-plugin-manager 是 DeepSeek Harness 的插件管理系统,通过 Web GUI 和 agent tools 管理这些资源。项目由 CHF-hub99 维护,许可证为 MIT。

核心功能

Web GUI

下面介绍 Web GUI 提供的操作:

  • 插件:安装(包名)、卸载、启用/禁用。
  • MCP:通过表单添加 stdio / streamable-http;从 JSON.dxt.mcpb 包导入;启用/禁用、移除。
  • Skills:上传 .zip / .tar.gz、frontmatter 校验、移除、授权状态展示。

Agent 工具

该插件同时提供 agent tools,用于在对话中管理相同资源:

  • plugin_list
  • plugin_set
  • plugin_install / plugin_uninstall
  • skill_list / skill_remove / skill_dir_add
  • mcp_list / mcp_add / mcp_remove

安装与启用

已核实资料给出的安装命令为:

dsh plugin --profile web add dsh-plugin-manager

资料中同时指出,该命令与 npm registry 相关,并标注为 after publishing;当前是否已发布未在已核实资料中确认。安装前建议先确认来源可用。

安装后,重启 web profile:

dsh web

工作原理

  • 宿主服务读取实时 Cordis Loader,在内存中修改并持久化到 profile 的 cordis.patch.yml
  • 插件暴露 HTTP API 网关:/plugin-manager/api/*,仅回环。

本地验证与开发

先安装依赖并运行资料中列出的 smoke 脚本:

npm install
node scripts/smoke.mjs
node scripts/smoke-api.mjs

修改客户端后,可以重新构建客户端产物:

node scripts/build-client.mjs

如果要本地验证,可以使用临时 profile:

dsh --profile dev --port 3081

安全与适用注意

  • API 仅回环。
  • 上传大小限制:50 MiB 压缩包、1 MiB JSON。
  • 解压时提供 zip-slip 防护。
  • 技能删除仅限 ~/.dsh/skills/ 下的 kebab-case 名称。
  • 运行环境要求 node >=22.19
  • 插件以当前 dsh 进程权限运行,安装前应检查源码与许可证。该项目许可证为 MIT。

链接

  • GitHub:https://github.com/CHF-hub99/dsh-plugin-manager
  • 目录页地址:已核实资料中未提供。
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

小夜