aurumple/dsh-rea-toggle ↗★ 0

dsh-rea-toggle

One switch that takes the REA (reverse-engineer-anything) MCP server's tool schemas and its server-instructions prompt block out of the model context, per agent and live, and puts them back on demand. · 一个开关,实时把 REA 逆向工具的工具与说明从模型上下文中移除或放回。 适合使用 REA 工具,且需要灵活控制上下文长度以节省 Token 的用户。

パッケージ
dsh-rea-toggle
互換性
未検証
バージョン
1.1.0
ライセンス
MIT
最終更新
2026/10/18

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:aurumple/dsh-rea-toggle

ドキュメント

README 全文を読む ↗

Configuration

Every field is optional.

- id: rea-toggle
  name: dsh-rea-toggle
  config:
    server: rea               # one MCP server to govern; default "rea"
    # servers: [rea, ghidra]  # or several; wins over `server` when present
    # defaultEnabled: true    # new conversations start ON instead of off

Changing server governs a different MCP server by the same rules: tool prefix mcp____, instructions section mcp:. Because the mechanism is generic, this works for any MCP server whose tools are bridged by dsh-mcp-client — the REA case is just the one that motivated it.

defaultEnabled exists for anyone who wants the pre-plugin behaviour back: with it on, a conversation nobody has switched behaves exactly as if this plugin were not installed.

使用

位置作用
输入框下方的小胶囊点一下翻转本对话。绿=开,灰=关,红框=宿主没应答。
/rea off · /rea on设定本对话的位置(enable / disable 亦可)。
/rea toggle翻转本对话。
/rea status报告本对话的位置。

新对话默认关。你第一次把某个对话打开时,那次选择才会被记下来;从没碰过的对话 一直走默认值,不写盘。

位置存在 $DSH_HOME/rea-toggle.json(通常是 ~/.dsh/rea-toggle.json),按 session id 索引,重启后保持。文件保留最近改动的 500 个对话,更早的自动回落到默 认值。

配置

字段全部可选。

- id: rea-toggle
  name: dsh-rea-toggle
  config:
    server: rea               # 要控制哪个 MCP server,默认 rea
    # servers: [rea, ghidra]  # 也可以给多个;存在时优先于 server
    # defaultEnabled: true    # 新对话默认改为「开」

改了 server 就按同样规则控制另一个 MCP server:工具前缀 mcp____、说明 section mcp:。机制本身是通用的,所以任何由 dsh-mcp-client 桥接的 MCP server 都能用 —— REA 只是促成它的那个场景。

defaultEnabled 是给想退回装插件前行为的人用的:打开它,没被手动切过的对话就和 没装这个插件时完全一样。