DeepSeek Harness 插件

Max-Null/dsh-skill-mcp-center

Star 数 ★ 3 下载量(近 30 天) 3,558 分类 开发与运行时 收录于 2026-08-18 npm @max-null/dsh-skill-mcp-center

DeepSeek Harness 技能与 MCP 管理中心:浏览并启停用户/项目技能,热增删改 MCP 服务器(免重启),侧边栏实时展示各服务器状态。

安装

# npm 包(预构建)

dsh plugin --profile web add @max-null/dsh-skill-mcp-center

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:Max-Null/dsh-skill-mcp-center

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

本插件属于 @max-null/* 插件系列——这一系列共同构成 SSID(思灵 · Seek Soul in Darkness) 桌面体验。SSID 是整合它们的盒:dsh-capture · dsh-chat-rail · dsh-chinese-thinking · dsh-draft-polish · dsh-guardian · dsh-habit · dsh-memory · dsh-node-appearance · dsh-plugin-center · dsh-quick-toolbar · dsh-skill-mcp-center · dsh-ssid-panels · dsh-ssid-zh-ui · dsh-achievements。

This plugin belongs to the @max-null/* family — a set of plugins that together form the SSID (思灵 · Seek Soul in Darkness) desktop experience.

Skill & MCP management center for DeepSeek Harness (dsh) — manage skills and MCP servers in Settings, with live MCP status in the sidebar.

Skill 与 MCP 管理中心:在设置里管理 skills 与 MCP 服务器,右侧边栏查看 MCP 实时状态。

Features / 功能

  • Skill management / Skill 管理 — browse every skill grouped by source (Global / Workspace / Built-in DSH official, plus one group per plugin that ships skills), toggle model invocation via the disable-model-invocation frontmatter (disk-backed skills only). Covers skills shipped inside plugin packages (e.g. @max-null/dsh-skills), not just the user-level roots — the host-level skill filesystem is disabled in web-app, so a plugin's own skills/ directory would otherwise be invisible while its skills are loaded and in effect. Also covers a plugin that mounts @deepseek-ai/dsh-skill-filesystem under an id of its own and points bundledSkillDir at its skills (e.g. dsh-plugin-zhihu-search), including when the patch computes that path with a !!js expression — such a path is read from the entry's fiber, where the Loader has already evaluated it. Deleting a user-level or project-level skill is offered on the same rows, behind a confirmation that names the skill and its path; the entry is moved to ~/.dsh/.skill-trash/ rather than destroyed, so a mistaken deletion stays recoverable. Plugin and built-in skills stay read-only.
  • MCP management / MCP 管理 — add / edit / remove mcp-client servers, enable/disable without deleting config, all hot-applied through ctx.loader (no restart). Adding, editing, removing, and the on/off switch live in the in-memory tree only, so they end with the run; the card's 永久禁用 / Disable for good button is the one action that survives a restart — it pins disabled: true in an editable cordis.patch.yml.
  • Live status / 实时状态 — a sidebar "MCP" tab (via dsh-better-sidebar) showing per-server connection state; click a server row to expand its tools' names and descriptions (collapsed by default — a server can expose dozens of them). Names come from tools.schemas(); the redundant mcp__<server>__ prefix is hidden while the full name stays on hover. Polled while visible and following the session.
  • Skin-compatible / 皮肤兼容 — every color uses var(--dsw-*) tokens.

截图

设置页:集中管理

装完后设置里多出「Skill & MCP」一项,可逐条控制各模型对 Skill/MCP 的可见性。入口: 设置 → Skill & MCP

设置 → Skill & MCP

设置页:MCP 开关的效力边界

DSH 的 Loader.write() 是空实现,面板上的启停只改内存树——所以 MCP 标签页顶部写明「开关只对本次运行生效,重启后恢复」;要长期关掉,用卡片上的「永久禁用」。被面板关掉的条目会在卡片里标「本次运行已停用 · 重启恢复」,而 patch 里持久禁用的条目标「已在 cordis.patch.yml 持久禁用」——两种「关」必须能区分,持久禁用时普通开关置灰(先解除才能重新启用,否则「patch 说重启后禁用、内存说现在启用」是一种谁也说不清的状态):

「永久禁用」把 disabled: true 写进 home 层 $DSH_HOME/cordis.patch.yml——这一层在所有 bundle 层与当前 profile 层之后应用,所以覆盖得着它们,且不在 profile-seed 改写的范围内(profile 自己的 patch 会被 seed 按模板归属退役掉出厂条目)。写入只追加/删除顶格的 - id: <id> 覆盖块,insert 子条目里的字段(包括 disabled: !!js ... 这种条件表达式)一个字符都不动;解除即删掉那两行,文件逐字节还原。它对全部 profile 生效——同一台机器跑两个前端时,在一个里禁用会让另一个也看不到这个 server 的工具。条目若来自插件包内置 patch,同样可用(home 层覆盖得着);若它是本次运行从面板新建的,按钮置灰——那种条目不在任何 patch 文件里,重启本就消失,先把它写进 cordis.patch.yml 再谈持久。

MCP 开关的效力边界与「永久禁用」:probe 卡片显示已持久禁用、开关置灰,其余条目可点「永久禁用」

设置页:插件技能的启停

插件包内自带的技能没有可写的 SKILL.md——改名、移出目录、断链对安装内容都不生效(社区同类项目因此都只能显示「内置只读」)。这里改用 registry 的 rank 遮蔽:停用时注册一个同名占位技能(runtime rank 250 赢过包内 provider ≈550、bundled 600),两个 invocation 都设为 false,于是模型与人都调不到它,但它仍在 catalog 里、仍可被面板列出与管理;启用时调 disposer。停用清单落在 $DSH_HOME/skill-mcp-center/disabled-skills.json,重启后自动重放。

侧栏:Skill 一览

搜索 + 命名空间筛选(全部 / 全局 / 工作区),每条带开关与 MD(查看 SKILL.md)。插件包内自带的 skill 同样列出,并标出来源插件——下图里 8 个 ssid-* 来自 dsh-skills,而用户级的 ssid-release 没有来源标签,这正是两者的区别:

侧栏 Skill 面板

侧栏:MCP 状态与工具

每个 mcp-client 服务器的连接状态与工具数;点服务器行展开工具清单(默认收起,避免几十个工具占满面板)。工具名取自工具表、描述取自 tools.schemas(),冗余的 mcp__<server>__ 前缀隐去(全名留在 hover):

侧栏 MCP 面板

Install / 安装

dsh plugin --profile web add github:Max-Null/dsh-skill-mcp-center
# or from npm, once published / 或通过 npm(发布后)
dsh plugin --profile web add @max-null/dsh-skill-mcp-center

Restart dsh web, then open Settings → Skill & MCP. The sidebar "MCP" tab appears only when dsh-better-sidebar is installed (optional peer).

Development / 开发

pnpm install
pnpm build   # tsc (host) + esbuild (browser bundle)

License / 许可

MIT

SSID 系列

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。