Ri0n72Y/dsh-workspace-scope
DeepSeek Harness 的分工作区技能与 MCP 启用功能
Project Overview项目介绍
DSH plugin that enables or disables Skills and MCP servers per workspace. From the new-session screen, open the Workspace Capabilities popup, browse entries grouped by Skill and MCP, search, toggle items, and save. The configuration is written to .dsh-scope.json in the workspace root and applied to subsequent sessions only. Use it when many skills and MCP servers are installed and you want leaner per-project startup context. Note: the config locks when a conversation starts and does not retroactively affect active sessions.
DSH 插件:按工作区启停 Skill 与 MCP。在新建会话界面的「工作区能力」弹窗中按技能与 MCP 分组勾选启用项,配置实时写入工作区根目录的 .dsh-scope.json,仅影响之后新建的会话。适用于工程较多、已装大量技能或 MCP、希望精简每个会话启动上下文的场景。注意:配置在对话开始时锁定,已进行中的对话不受后续修改影响。
请帮我了解并安装插件:【dsh-workspace-scope】【https://github.com/Ri0n72Y/dsh-workspace-scope】
Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-workspace-scope
把 Ri0n72Y/dsh-workspace-scope 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-workspace-scope
为 DeepSeek Harness 按工作区启用或禁用当前 Agent 已拥有的 Skill 与 Host 全局 MCP。
本插件只做能力范围控制,不负责安装、发现或提供 Skill / MCP。不同工程可以通过各自的 .dsh-scope.json 暴露不同的能力集合。
English: README.en.md
安装
需要已安装 dsh CLI:
dsh plugin --profile web add dsh-workspace-scope
卸载:
dsh plugin --profile web remove dsh-workspace-scope
使用
在新建会话的空白 Session 中,点击输入卡右侧的「工作区能力」。
界面会显示当前 Agent 可由模型调用的 Skill,以及 Host 全局 MCP 服务器。切换 Agent Preset 后,列表会随当前 Agent 更新。开关、搜索、全部启用和全部禁用都会立即保存到工作区根目录的 .dsh-scope.json。
配置在会话第一次真正发起模型请求时锁定。因此开始对话前的修改会应用到该会话;之后的修改只影响新的会话。
配置
通常直接使用 UI 即可。也可以手动编辑工作区根目录的 .dsh-scope.json:
{
"default": {
"mode": "whitelist",
"skills": ["<skill-name>"],
"mcps": ["<server-name>"]
}
}
default:全部启用。whitelist:仅启用列表中的能力。blacklist:禁用列表中的能力。skills:Skill 名称。mcps:Host 全局 MCP server 名称。
边界
- Skill 范围来自当前 Agent 已有的 model-invocable Skill;本插件不会安装或补充 Skill。
- 禁用 Skill 控制的是模型调用能力。是否仍可通过
/skill-name手动调用,由该 Skill 自身的 DSHuserInvocable策略决定。 - MCP 只管理 Host 全局注册并由 Agent 继承的 MCP;Agent / Preset 作用域内注册的 Tool / MCP 不在管理范围内。
- 当前 0.5.x 不支持名称中包含
__的 MCPserverName;普通 tool name 可以包含__。
实现细节、数据流与 C4 图见 docs/architecture.md。版本变化见 CHANGELOG.md。
贡献
发现 bug 或有想法可以直接开 issue。提交 PR 前请阅读 CONTRIBUTING.md。
License
MIT
YuJunZhiXue/dsh-purge
yejiming/MuseAI
superdesigndev/superdesign-skill
FSMargoo/dsh-at-file
Rain-kl/dsh-preset-plus
bugmaker2/dsh-plugin-template