Chooses which skills and MCP servers each workspace may use, from a "Skills & MCP" item in the workspace row's "..." menu; unchecked skills leave the session catalog, the `skill` tool and `/name`, and unchecked servers have their `mcp__<server>__*` tools denied for that workspace's sessions, running ones included from the next turn.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Fleey/dsh-workspace-capabilities
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
按工作区选择可用的技能(skill)和 MCP 服务器的 DeepSeek Harness 插件。
在侧栏工作区行的「…」菜单里多一项 技能与 MCP,点击后弹出窗口,勾选该工作区要用的技能和 MCP 服务器。取消勾选的项目不会提供给该工作区的会话,从下一轮对话起生效,无需重启。
插件界面
支持在工作区里面设置skill与mcp,可以有效的规避工具上下文占用或其他特需需求场景
行为
- 技能:取消勾选的技能从会话的技能目录中消失,
skill工具和/技能名都无法再加载它。 - MCP:取消勾选的服务器,其全部
mcp__<服务器>__*工具对该工作区的会话(含子代理)隐藏;服务器本身保持连接,其他工作区不受影响。 - 默认全部启用。保存的是「禁用列表」,所以之后新装的技能、新加的 MCP 服务器默认可用。
- 选择按工作区路径保存在
$DSH_HOME/workspace-capabilities.json(默认~/.dsh/workspace-capabilities.json):
{
"version": 1,
"workspaces": {
"/path/to/project": { "disabledSkills": ["some-skill"], "disabledMcpServers": ["github"] }
}
}
安装
先退出桌面版 DSH NEXT,然后:
ELECTRON_RUN_AS_NODE=1 DSH_HOME="$HOME/.dsh" "/Applications/DSH NEXT.app/Contents/MacOS/DSH NEXT" --expose-internals "/Applications/DSH NEXT.app/Contents/Resources/app.asar/lib/plugin-cli.js" desktop add github:Fleey/dsh-workspace-capabilities
重新打开 DSH NEXT 即可。卸载把 add github:... 换成 remove dsh-workspace-capabilities。本地开发可改用 add link:/path/to/clone。
命令行版(Web profile):
dsh plugin --profile web add github:Fleey/dsh-workspace-capabilities
实现说明
- DSH 0.2.2 起工作区「…」菜单由
ctx.contextMenus组成,浏览器端注册一条target: "workspace"的菜单项(order: 250,位于「在访达中显示」与「删除」之间)。更早的版本菜单写死为两项(重命名 / 删除),没有扩展点,此时回退为 DOM 注入:菜单弹出时复制「重命名」一行并插入;contextMenus服务一出现,DOM 回退即停用(lib/client.js)。 - 技能注册表没有过滤钩子,Host 端包装了注册表的
collectFresh,按查询的cwd去掉禁用的技能;注册表缓存本来就按cwd区分(lib/index.js)。 - MCP 通过
agent.ctx.tools.restrict({ deny })对每个会话屏蔽工具,工具集合或选择变化时自动重算。 - 接口:
GET /dsh-workspace-capabilities/state?workspaceId=、POST /dsh-workspace-capabilities/save,走 Host 自己的请求鉴权。
限制
- 技能过滤依赖 DSH 0.2 内部结构(技能注册表
collectFresh),DSH 0.2.1 及更早版本的菜单项还依赖侧栏菜单 DOM。DSH 升级后若这些变化,菜单项可能不出现或技能过滤失效(会在日志中警告);DSH 0.2.2+ 的菜单项和 MCP 过滤走的是公开 API。 - 被禁用的 MCP 服务器若返回了服务器指令(instructions),该文本仍会出现在系统提示词中;只是工具不可用。
- 列表中的技能按当前工作区路径发现;只在其他 agent preset 中挂载的技能可能不显示。
- 本插件只能隐藏技能,不能启用在来源处被停用的技能。例如在 dsh-skills-manager 中停用的技能仍会出现在列表里,但会标为「来源已停用」且无法勾选;需先在技能管理器中重新启用。
测试
npm test
Links
More in this category
Tencent/WeKnora#dsh-weknora★ 38526
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
DayuanJiang/next-ai-draw-io#dsh-plugin★ 37266
Draws draw.io diagrams in DeepSeek Harness through the next-ai-drawio MCP server: the link in the reply opens a live preview in the right sidebar, you can edit the diagram by hand, and each AI change is a version you can restore. Node.js 18+; npx downloads the MCP server on first use.
yikart/AiToEarn#dsh-plugin-aitoearn★ 28921
Generate copy, images and short videos, and publish with one click to Douyin, Kuaishou, Xiaohongshu, WeChat Official, Bilibili, Facebook, TikTok and more, covering the full content lifecycle from creation to publishing and monetization.
superdesigndev/treg★ 9983
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 6095
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
Hithink-Tech-Org/Financial-API#hithink-finance★ 4745
Query Hithink Finance data in DeepSeek Harness, view charts in chat, and save refreshable dashboards.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.