Minimalist MCP Management: View and Disable MCP Servers in DSH Web

Introduction

In DeepSeek Harness (DSH), the standard practice for integrating MCP is to add @deepseek-ai/dsh-mcp-client instances into cordis.yml or the cordis.patch.yml files of various bundles. As more instances are installed, there is no unified interface to view “which MCPs are currently loaded by the process, which are still running, and which have been manually stopped.” Users often have to dig through patch files in the profile and user layers, identify which lines correspond to MCPs, and then decide how to modify them. There is also no web interface for disabling an MCP.

MCP Mini Manager (Plugin ID: dsh-mcp-mini-manager) is published by community maintainer runcat-tommy and categorized under admin-security. It adds a page to the DSH Web “Settings” sidebar, at the same level as “Plugins” (Settings Page ID: mcp-mini-manager, order 16). It lists every MCP server currently actually loaded by DSH, along with descriptions and status, and supports individual “removal” (writing a recoverable disable patch). Repository and directory page:

  • GitHub: https://github.com/runcat-tommy/dsh-mcp-mini-manager
  • SkillHub Directory: https://www.skillhub.cn/plugins/runcat-tommy/dsh-mcp-mini-manager

SkillHub is a community plugin directory site and has no official affiliation with DeepSeek or High-Flyer. Please review the source code and MIT license before installation. The plugin runs with the permissions of the current dsh web process and involves reading and writing to the profile and user-level cordis.patch.yml files.

What is this

In one sentence: Minimal MCP manager for DeepSeek Harness Web—consolidates MCPs, displays status, and allows individual disabling within the same settings page. Disabling is done via profile-level patches and is recoverable.

DSH’s philosophy is “Everything is a Plugin.” This plugin is a standard DSH bundle (declaring dsh.bundle.patch and dsh.client). The current npm package version is 1.5.4 (subject to the repository’s package.json).

How it knows “which MCPs are installed”

In DSH, one MCP server corresponds to a line in the cordis loading tree, with the module being @deepseek-ai/dsh-mcp-client. Each plugin instance connects to one MCP; multiple servers mean multiple instances are loaded in cordis.yml.

This plugin reads and merges data from two sources:

Source What it provides Limitations
Running Loader (ctx.loader.entries()) Authoritative config (serverName, transport, command, url, etc.) and fiber status Cannot see disabled rows (not in the tree)
Patch Layer (bundles’ cordis.patch.yml, profile’s cordis.patch.yml, ~/.dsh/cordis.patch.yml) Disabled rows and source packages Static configuration only, no running status

After merging, an MCP “removed” yesterday will still show as “Removed” and retain its original configuration (from the removal record). The running tree takes priority regarding observable events, while the patch layer supplements the parts invisible to the tree.

Security boundary: Browser requests only carry the row id returned by this plugin’s catalog interface. The host-side confirms that the row is indeed an MCP client row before deriving the file and section to write. The browser does not send paths or YAML content.

Core Features

Listing & Status

Each MCP server is displayed as a row:

  • Description: Shows the command line for stdio, and the endpoint for streamable-http; if the configuration contains !!js, only the field name is marked, and the value is not displayed.
  • Status: Active / Removed / Start Failed / Starting / Unobserved (derived from Loader fiber and patch layer).
  • Tools: Tools registered to the model by this server via mcp__<serverName>__<rawName> and their descriptions.

Additionally, there is a section for Plugins suspected of having built-in MCP capabilities (Read-only): Plugins that connect to remote MCPs on their own without going through dsh-mcp-client are listed only; removal is not provided (removal semantics would equal uninstalling the plugin).

Diagnostic Information at the bottom of the page: Profile directory, write target, home layer patch, which patch layers were read, and unparseable content in each layer.

Removal & Recovery

“Remove” = appending a disable patch targeted by id to the profile’s own cordis.patch.yml, for example:

# >>> dsh-mcp-mini-manager: disabled mcp row mcp-github
# server: github
# removed: <ISO timestamp> by dsh-mcp-mini-manager
# restore this server from the MCP Mini Manager settings page, or delete
# these lines to re-enable the row by hand.
- id: mcp-github
  disabled: true
# <<< dsh-mcp-mini-manager: disabled mcp row mcp-github

Design points (summarized from the README):

  1. Does not modify any package files; disabling is written to the user layer, so reinstalling packages will not erase your disable choices.
  2. Usually no restart required: DSH has watchUserPatches for profile/home layers; after writing, the host re-reads the running tree and truthfully prompts “Applied immediately” or “Effective after restart”.
  3. Recoverable: Before writing, the original row is saved to <harness home>/.mcp-mini-manager/removed/<rowId>.json; “Restore” only deletes the corresponding disable block, splicing at the row level without rewriting the entire YAML (to avoid breaking comments and other plugins’ !!js).

Rejected scenarios include: row already disabled, mismatched start/end markers, no newline at the end of the patch file, row id resembling a path, browser cross-site Origin mismatching Host (403), etc.

“Clear Removal Records” is the only irreversible operation: it only deletes record files, does not restore or delete any MCP, and requires double confirmation.

Limitations (Explicitly stated in docs)

  • A fiber being active only indicates successful loading, not that the remote is connected; connection status should be checked in dsh-mcp-client logs. This page does not guess.
  • The loader service is required to list running rows; if unreadable, the page will explain this rather than showing “No MCPs”.
  • Only covers tools bridged via dsh-mcp-client; resources / prompts are out of scope.

Installation & Activation

The three installation paths install the same package; a restart of dsh web is required after installation (new bundles are read by the profile manifest at startup; refreshing the page is not enough). Disabling/restoring MCPs itself relies on patch hot-loading and generally does not require another restart.

① Install directly from GitHub

Suitable for users who do not want to clone and have git locally:

dsh plugin --profile web add github:runcat-tommy/dsh-mcp-mini-manager

The repository has committed lib/ runtime artifacts and has no install-type scripts, usually not triggering build approval. To update: rerun the same command.

② Download ZIP and install

No git or npm needed: Download the ZIP from GitHub, extract it to a fixed directory, then:

dsh plugin --profile web add D:\plugins\dsh-mcp-mini-manager

(Replace the path with your extraction directory on Linux/macOS.) To update: overwrite the directory, rerun add, and restart.

③ Install from npm

dsh plugin --profile web add dsh-mcp-mini-manager

Package URL: https://www.npmjs.com/package/dsh-mcp-mini-manager

Update:

dsh plugin --profile web up dsh-mcp-mini-manager

View and uninstall the plugin (distinct from “disabling a specific MCP”):

dsh plugin --profile web list
dsh plugin --profile web remove dsh-mcp-mini-manager

Typical Usage

  1. Add dsh-mcp-mini-manager to the web profile using any method above, and restart dsh web.
  2. Open Web Settings and find MCP Mini Manager (mcp-mini-manager) in the sidebar, at the same level as “Plugins”.
  3. Browse the command lines or endpoints, status, and registered tools in the list; to take an MCP offline, perform “Remove” on that row. If necessary, “Restore” on the page or manually delete the marked disable block in the profile cordis.patch.yml.
  4. If the status does not match expectations, expand the diagnostic information to check the patch layers; for connection issues, check dsh-mcp-client logs for reconnection and failure records.

Host HTTP Interface (for scripts or debugging; browser cross-site requests must have Origin matching Host):

Method Path Function
GET /dsh-mcp-mini-manager/api/catalog Catalog + removal records + diagnostics
POST /dsh-mcp-mini-manager/api/disable Disable, body: {"rowId":"..."}
POST /dsh-mcp-mini-manager/api/restore Restore, body: {"rowId":"..."}

Use Cases & Notes

Suitable for: Users who have already connected one or more MCPs via dsh-mcp-client in their DSH Web profile and want a unified interface to view status and temporarily take servers offline without modifying third-party bundle files.

Notes:

  • Installation and patch writing occur on the local profile / harness home with the same permissions as the current DSH process; on production or shared machines, please review host logic like lib/index.js first.
  • Does not manage the start/stop of “Plugin Built-in MCPs”; those entries are read-only.
  • Community directory and GitHub stars are subject to the site (current stars on the directory page are 0); version is subject to npm / repository tags.

Conclusion

MCP Mini Manager consolidates “seeing loaded MCPs clearly” and “recoverably disabling a row” into a single settings page. Patches are written to the user layer with row-level read/write, avoiding whole-file YAML re-serialization. For installation commands and boundary details, refer to the repository README:

  • Directory Page: https://www.skillhub.cn/plugins/runcat-tommy/dsh-mcp-mini-manager
  • Source Code & Docs: https://github.com/runcat-tommy/dsh-mcp-mini-manager
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye