Eddyxyc/dsh-rea-switch ↗★ 0

dsh-rea-switch

提供REA代理总开关及完整与压缩工具集切换 适合需要一键启停REA、或在完整版和轻量压缩版MCP工具集之间切换的用户。

套件
dsh-rea-switch
相容性
待驗證
版本
0.2.0
最近更新
2026年10月18日

安裝

$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 层。