Skip to content
Back to search

dsh-plugin-switch

DeepSeek Harness plugin: sidebar panel to stop/start any plugin or MCP server at runtime

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/attiv--dsh-plugin-switch/badge.svg)](/listings/attiv--dsh-plugin-switch)

HTML

<a href="/listings/attiv--dsh-plugin-switch"><img src="/api/listings/attiv--dsh-plugin-switch/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

dsh plugin --profile <profile> add link:/path/to/dsh-plugin-switch

or from GitHub:

dsh plugin --profile <profile> add github:Attiv/dsh-plugin-switch

The panel needs `dsh-better-sidebar` (optional peer). Without it the host half still works; there is just no sidebar page.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 51 lines
  1. # dsh-plugin-switch
  2. DeepSeek Harness plugin: a sidebar panel that lists every loader entry — plugins and MCP servers — and stops or starts each one at runtime. No config edits, no Host restart.
  3. ## What you get
  4. A **插件开关** tab in the sidebar (registered through `dsh-better-sidebar`):
  5. - search by package name or loader id;
  6. - running / total counter;
  7. - one row per entry: status dot, package name, loader id, and a 停用 / 启用 button;
  8. - the choice is remembered in `~/.dsh/plugin-switch-state.json` and re-applied on the next boot.
  9. A `plugin_switch` tool is also registered for scripted sessions and the CLI:
  10. ```
  11. plugin_switch action=list
  12. plugin_switch action=disable id=rea-mcp
  13. plugin_switch action=enable id=rea-mcp
  14. ```
  15. ## Semantics
  16. - Stop = `entry.update({ disabled: true })` on the loader entry: the running fiber is disposed, an MCP client disconnects and its tools leave the registry.
  17. - Start = the reverse; the fiber re-applies and tools come back.
  18. - **Patch files are never rewritten** — comments and hand formatting in `cordis.patch.yml` stay intact.
  19. - Switches are recorded in a sidecar file and replayed at startup. Delete `~/.dsh/plugin-switch-state.json` to fall back to whatever the profile declares.
  20. - `id` resolves by exact loader id, exact package name, then a unique substring; ambiguous keys are rejected with the candidate list instead of guessing.
  21. - The plugin refuses to switch itself off.
  22. ## Install
  23. ```bash
  24. dsh plugin --profile <profile> add link:/path/to/dsh-plugin-switch
  25. ```
  26. or from GitHub:
  27. ```bash
  28. dsh plugin --profile <profile> add github:Attiv/dsh-plugin-switch
  29. ```
  30. The panel needs `dsh-better-sidebar` (optional peer). Without it the host half still works; there is just no sidebar page.
  31. ## Development
  32. ```bash
  33. node --test test.mjs
  34. ```
  35. Tests cover listing, toggling, restore-on-boot, id resolution, ambiguous keys, cross-site rejection and self-protection.

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.