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
  • 目錄頁地址:已覈實資料中未提供。
羽毛球分组比赛记分
小程序二维码

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

小夜