Preface¶
When integrating MCP servers like REA (reverse-engineer-anything) into DeepSeek Harness (DSH), dsh-mcp-client attaches tool schemas and server-instructions at the global level. REA registers 207 tool schemas at once, along with a substantial instruction block; as long as a profile has REA installed, every agent and every request round carries this context, even if the current conversation is merely modifying frontend code or writing documentation, which is unrelated to reverse engineering.
aurumple/dsh-rea-toggle does something different: it does not unload the MCP or restart the process, but decides within the current conversation whether REA’s tools and instructions enter the model-visible context. Below is an introduction to what it is, how to install it, how to use it, and the boundaries to be aware of during use.
What is this¶
- Name:
dsh-rea-toggle(bundle row id isrea-toggle) - Maintainer: aurumple
- Repository: github.com/aurumple/dsh-rea-toggle
- License: MIT (version 1.1.0 in
package.json, requires Node>=20to run)
In one sentence: a per-conversation switch that controls whether REA MCP’s 207 tool schemas and the mcp:rea instruction block appear in the model context; when turned off, the MCP connection remains, but the model is no longer informed of the existence of these tools.
Core Features¶
Remembered per conversation, off by default for new conversations¶
The switch state is saved per conversation (session) without mutual interference. New conversations default to REA off; only conversations you have actively turned on will have the state written. Sub-agents inherit the position of the conversation that created them, so delegating sub-agents in reverse engineering tasks will not silently fail due to a global REA-off setting.
Two disabling paths (where tokens are saved)¶
The README breaks down the cost into two paths, handled by the plugin respectively:
| Goal | Mechanism (Summary) |
|---|---|
| Tool schema | Calls tools.restrict({ deny }) within each agent’s own context; ToolRuntime.view() filters content inherited from the global layer and reconstructs the model-visible schema list during each assembly. |
| Instruction text | dsh-mcp-client registers server instructions as a mcp:<server> section under order MCP_SERVERS (3100); a same-named scoped section shadows the global section, and empty sections are discarded during rendering, thus removing the instruction block for that agent only. |
Both are scoped registrations and restore the original state after dispose, so switching the toggle does not require a restart or reload.
UI and Slash Commands¶
After installation, a small pill appears below the input box:
- REA on (green): Consistent with the state before the plugin was installed; REA tools and instructions are visible to the model.
- REA off (gray): The aforementioned schemas and instructions leave the model context starting from the next step.
- Red border: Indicates the host did not respond (status cannot be confirmed).
The same logic can be triggered via keyboard commands (acting on the conversation where you type the command):
/rea off,/rea on(enable/disablealso work)/rea toggle/rea status
State Persistence¶
Positions are written to $DSH_HOME/rea-toggle.json (usually ~/.dsh/rea-toggle.json), indexed by session id, and remain valid after restart. The file retains the last 500 changed conversations; older sessions fall back to the default policy.
Configurable as a Generic MCP Toggle¶
By default, it governs the server named rea (tool prefix mcp__rea__, instruction section mcp:rea). In the configuration, you can change the server or servers list, applying the same rules to any MCP bridged by dsh-mcp-client; when defaultEnabled: true, conversations that have never been manually toggled remain consistent with when the plugin is not installed (new conversations default to on).
HTTP API (for UI / Integration)¶
The Client communicates with the Host via fixed routes on the webServer (not via the /api prefix). Key points:
GET /rea-toggle/state?session=<id>: Single conversation stateGET /rea-toggle/state: Summary when no session is providedPOST /rea-toggle/state, body containssessionand optionalenabled(omitted means toggle)
The tools in the response represents the number of tools identified under the governed server; if it is 0, it usually means no MCP is connected under that name.
Installation and Enablement¶
The plugin runs with the current DSH process permissions; it is recommended to read the repository source code and LICENSE before installation. Installation commands follow the README:
dsh plugin --profile <profile> add github:aurumple/dsh-rea-toggle
For a local checkout, you can point to a path:
dsh plugin --profile <profile> add link:/absolute/path/to/dsh-rea-toggle
Optional configuration (all fields can be omitted), written under the config of the bundle corresponding to the profile:
- id: rea-toggle
name: dsh-rea-toggle
config:
server: rea # Default "rea"
# servers: [rea, ghidra] # Takes precedence over server if present
# defaultEnabled: true # New conversations default to on
Typical Usage¶
- In a conversation requiring reverse engineering, click the pill or execute
/rea on, and usemcp__rea__*tools as usual. - Switch to a conversation for writing documentation or modifying the Web, keep it off or execute
/rea offto avoid carrying 207 schemas every round. - Use
/rea statusor the pill color to confirm the state of the current conversation; open a second conversation to verify: one can be on and one off simultaneously.
Self-check steps provided in the README (verifying whether tools truly disappear from the model context, rather than just being hidden in the UI):
- When the switch is on, ask the agent to list tools; you should see
mcp__rea__*(approximately 207 for a standard REA installation). - After turning off, list again or call by name; the tools should not exist, e.g.,
unknown tool "mcp__rea__binary_session". - Turn on again; tools are restored.
- A second conversation defaults to off, while the first remains on.
Use Cases and Notes¶
Who it suits: Teams or individuals who keep REA mounted in their profile long-term but only perform reverse engineering in some conversations; who want to save tokens per conversation without frequently unloading the MCP or changing global configurations.
Boundaries (README Scope and limits):
- By default, it only governs MCP servers listed in the configuration; others are untouched.
- Hide, not unload: The MCP process is still running; when turned off, the model cannot indirectly access REA through paths like
run_code. This is by design. - State is read and written within the process; multiple DSH instances under the same profile each read the file once and will not sync with each other in real-time.
- Turning off can be reverted with one click; uninstalling the bundle removes all registrations.
The community directory entry on skillhub.cn is sourced from the same GitHub repository for easy retrieval; the directory site is a community ecosystem site and has no official affiliation with DeepSeek / High-Flyer. DSH itself adheres to “everything is a plugin,” and this kind of switch is a supplementary means to the global MCP context cost, not a pre-installed capability in the official app store.
Conclusion¶
dsh-rea-toggle changes REA’s large block of MCP context from “globally always-on” to “visible on-demand per conversation.” It is simple to install and requires no restart for switching. If you are already using REA and are often dragged down by irrelevant conversations affecting your context, you can add this bundle to your profile and use the pill or /rea commands to switch per session.
- Directory Page: https://www.skillhub.cn/plugins/aurumple/dsh-rea-toggle
- GitHub: https://github.com/aurumple/dsh-rea-toggle