Zenjibad/dsh-mcp-toggle
dsh-mcp-toggle
Enable/disable MCP servers directly from DSH Settings: a 'MCP Servers' page that stops/starts each @deepseek-ai/dsh-mcp-client connection live and persists the change across restarts.
Install
npx @deepseek-ai/dsh plugin --profile web add ./dsh-mcp-toggleRestart `dsh web` after install. Bundle APIs can change during the developer preview.
README badge
[](https://dshhub.dev/plugins/dsh-mcp-toggle)Paste this into your README. The star count updates with every catalog sync.
From the README
Excerpt from Zenjibad/dsh-mcp-toggle, cleaned of badges and images.
dsh-mcp-toggle · Enable/Disable MCP Servers from DSH Settings
Turn MCP servers on and off directly from Settings → MCP Servers: an additive settings page that stops/starts each
@deepseek-ai/dsh-mcp-clientconnection immediately (itsmcp__*tools unregister/register live) and persists the change so it survives a DSH restart. 在 DSH 设置 → MCP 服务器页面直接启用/停用 MCP:即时停止/启动每个 MCP 客户端连接,并持久化,重启后依旧生效。中文文档: README.zh.md · LLM index: llms.txt · Agent guide: AGENTS.md
Keywords: dsh-plugin · deepseek-harness-plugin · mcp · mcp-client · settings · enable · disable · toggle · MCP 服务器 · 启用 · 停用
Repo
GitHub: Zenjibad/dsh-mcp-toggle · Requires DSH ≥ 0.1 with the web profile.
📑 Table of Contents
- ✨ Features
- 🏗️ How it works
- 🚀 Quick start
- ⚙️ Configuration
- ❓ FAQ
- ⚠️ Security notes
- 📦 Project structure
- 🙏 Credits
✨ Features
| Feature | Description |
|---|---|
| 🎚️ MCP Servers settings page | Additive Settings page (id mcp-toggle, order 70) listing every @deepseek-ai/dsh-mcp-client server the user has configured — with a toggle per row |
| 🔄 Live toggle | Flipping the switch calls the Cordis Loader's Entry.update({disabled}) — the MCP connection fiber is disposed (stop) or started immediately, its mcp__* tools unregister/register live, no DSH restart |
| 💾 Persists across restarts | Each change is appended to the home patch layer ($DSH_HOME/cordis.patch.yml) — the layer that outranks every profile, so the state survives a DSH restart regardless of where the MCP row originated |
| 📊 Status at a glance | Each row shows the MCP server name, an Enabled/Disabled tag, and the connection phase (Connected / Stopped / Connecting / Connection failed) |
| 🔒 Safety guard | The loader's include entry, non-MCP entries, and this plugin itself are guarded; unknown ids return 404, locked ids return 403 |
| 🌗 Theme-aware | All colors use --dsw-alias-* design tokens; follows light/dark automatically |
| ♨️ Survives restarts | Real profile-bundled plugin: install once with dsh plugin add, auto-loads on every DSH boot — no per-session define, no cordis_define |
🏗️ How it works
…
