liaoyuqing/dsh_workspace_switch ↗★ 0
dsh-workspace-switch
按工作区独立控制插件、MCP服务和技能的启闭状态 适合需要在不同项目目录中精细化定制可用AI能力的开发者。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:liaoyuqing/dsh_workspace_switch說明文件
閱讀完整 README ↗Configuration
Two sources describe one workspace, in increasing precedence:
/workspace-switch.json, whoseworkspacesmap is keyed by workspace directory;/.dsh/workspace-switch.json, which replaces the shared entry for that workspace when it exists.
{
"workspaces": {
"E:\\my_project\\godot-game": {
"plugins": { "mcp-godot-ai": { "enabled": false, "tools": ["mcp__godot-ai__run"] } },
"mcp": { "godot-ai": { "enabled": false } },
"skills": { "godot-scene-authoring": { "enabled": false } }
}
}
}
enabled: false switches a capability off for that workspace; an absent entry
means enabled. A plugin entry also declares the tool names the plugin
registers — the gate denies tools by name, so a plugin without tools has
nothing to deny.
The dialog writes the document that currently answers for the workspace: the project file while one exists, the shared store otherwise. Output is published through a temp-file rename, so a reader never sees a half-written document.