dsh-rea-switch
DSH Plugins-page tab: a master switch that turns REA off entirely, plus a switch between the full and the compact REA MCP tool set 适合需要一键启停REA、或在完整版和轻量压缩版MCP工具集之间切换的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Eddyxyc/dsh-rea-switch依赖的运行配置
开关通过 pluginManager.setPluginEnabled() 写 profile patch,因此 两行 REA 必须声明在
profile 层(~/.dsh/profiles/desktop/cordis.patch.yml),例如:
- insert:
- id: rea-mcp
name: "@deepseek-ai/dsh-mcp-client"
config:
serverName: rea
transport: stdio
command: E:\dev\nodejs\node.exe
args: [E:\dev\npm-global\node_modules\rea-agents\scripts\rea.mjs, mcp]
- id: rea-compact
name: "@deepseek-ai/dsh-mcp-client"
disabled: true
config:
serverName: rea-compact
transport: stdio
env:
REA_MCP_INPUT_SCHEMA_PROFILE: compact
REA_MCP_OUTPUT_SCHEMA_PROFILE: "off"
command: E:\dev\nodejs\node.exe
args: [E:\dev\npm-global\node_modules\rea-agents\scripts\rea.mjs, mcp]
不要把 REA 行放进 ~/.dsh/cordis.patch.yml(home 层):那一层的优先级高于 profile
层,会让开关写入的 disabled 被覆盖,set_plugin 返回 overridden。项目首次实现时
就在这里踩过坑,已把 home 层的 REA 行迁移到 desktop profile 层。