dsh-mcp-manager: Graphical Management of MCP Servers in the DSH Desktop Version

Preface

The official DeepSeek Harness (DSH) base bundle already includes the MCP client @deepseek-ai/dsh-mcp-client, but each MCP server still needs to be manually written as an insert entry into the cordis.patch.yml file in the profile user layer. This file is also an input during the boot phase: the top level must be a YAML array, and a parse failure will prevent the application from starting, with no UI entry point to fix it. Manual editing also easily damages other patches in the same file.

Below we introduce the community plugin dsh-mcp-manager (maintainer VCPr0j3k7, category: client): it provides a graphical management interface for MCP servers in the DSH desktop shell, supporting listing, adding, deleting, enabling/disabling, connection testing, and scanning imports from existing MCP configurations on the local machine. The plugin is loaded into the profile as a standalone bundle and does not modify the official source code.

What Is This

dsh-mcp-manager is a Cordis plugin for DeepSeek Harness (current version 0.1.0, license MIT). The host half registers APIs in Node.js and reads/writes the profile; the client half provides a sidebar “MCP Connectors” entry in the SPA within the desktop shell. The actual MCP connections are still handled by the official @deepseek-ai/dsh-mcp-client; this plugin only writes entries into the profile user-layer patch and validates them with the same js-yaml used at boot before writing.

Core Features

Connected

Displays cards for MCP servers currently in the profile: transport type, command or address, entry id, connection status, tool count, and raw configuration. Supports connection testing, enable/disable, and deletion. Connection status comes from the host: only when tools named mcp__<serverName>__* appear in the host tool registry is “Connected” displayed; when the configuration has been written but not yet restarted, “Pending Restart” is shown.

Discover

Groups and displays servers that can be connected with one click: other AI client configurations, other DSH home directories, and a built-in common directory. The built-in directory collects servers that can be launched with a single npx command, such as filesystem, long-term memory, sequential thinking, Everything demo, Playwright browser, Context7 docs, etc. Clicking “Connect” carries the filled-in parameters into the add form.

Add

Supports paste import (mcpServers JSON fragment or a single-line npx / uvx launch command) and a manual form (stdio / streamable-http). You can test the connection before writing, avoiding discovering a connection failure only after a restart.

Configuration Write Convention

This plugin only modifies the block in cordis.patch.yml delimited by paired marker comments (# >>> dsh-desktop:mcp … # <<< dsh-desktop:mcp). MCP entries manually written outside the block are displayed in the UI as read-only “manual entries” and cannot be modified or deleted through this plugin. The profile’s patchReload is startup, so all write operations prompt that a restart of DSH Desktop is required for the changes to take effect; the plugin cannot restart the host process on your behalf.

Environment Requirements

Item Requirement
Node.js ^22.19.0 \|\| >=24
DeepSeek Harness Official desktop version (Windows), depends on the process.argv layout of dsh-desktop-host and the bundled Node / pnpm
Official base bundle Must include @deepseek-ai/dsh-mcp-client
Optional “Test connection” is available when @modelcontextprotocol/sdk exists in the runtime node_modules

Installation and Activation

Installation has two steps; if you only run pnpm add without registering the bundle, the “MCP Connectors” entry will not appear in the sidebar, which is the most common installation issue.

Step 1: Install the package into the profile

Navigate to the desktop profile directory used by the official desktop version, and install with the bundled pnpm (the bundled pnpm is located at <install-dir>/resources/runtime/pnpm/bin/pnpm.cjs, which can be executed with the bundled node):

cd ~/.dsh/profiles/desktop
pnpm add "github:VCPr0j3k7/dsh-mcp-manager"

If using a local directory, replace "github:VCPr0j3k7/dsh-mcp-manager" with "file:<absolute path to the plugin directory>".

Step 2: Register in the bundle stack

Edit package.json in the profile directory, and add the package name to the dsh.profile.bundles array, for example:

{
  "name": "dsh-profile-desktop",
  "private": true,
  "dependencies": {
    "dsh-mcp-manager": "github:VCPr0j3k7/dsh-mcp-manager"
  },
  "dsh": {
    "profile": {
      "bundles": [
        "@deepseek-ai/dsh-base",
        "@deepseek-ai/dsh-web-app",
        "dsh-mcp-manager"
      ]
    }
  }
}

Step 3: Restart

After modifying package.json or cordis.patch.yml, you must restart DSH Desktop; running instances do not hot-reload. After the restart, the “MCP Connectors” entry should appear in the sidebar.

To uninstall, you can run pnpm remove dsh-mcp-manager in the profile directory and delete the corresponding entry from dsh.profile.bundles, then restart. Uninstallation does not automatically delete MCP entries already written inside the marked block; to clear them, you need to manually delete that block (including the start and end marker lines).

Typical Usage

  1. After restarting DSH, open the “MCP Connectors” entry in the sidebar.
  2. On the “Discover” page, select a built-in or scanned server, confirm the parameters, and connect; or on the “Add” page, paste JSON / a single-line launch command, “Test connection” first, then save.
  3. Follow the on-screen restart prompt to exit and reopen DSH.
  4. On the “Connected” page, confirm the status is “Connected · N tools” (N is the number of tools on the host side).

If you need to compare the structure of manual YAML, the example from the official README is as follows (the actual path and parameters depend on your environment):

- insert:
    - id: mcp-filesystem
      name: "@deepseek-ai/dsh-mcp-client"
      config:
        serverName: filesystem
        transport: stdio
        command: npx
        args: ["-y", "@modelcontextprotocol/server-filesystem", "D:\\work"]

This plugin writes equivalent configuration into the marked block and performs YAML validation and atomic writes before persisting to disk.

Host APIs are uniformly mounted under /dsh-mcp-manager/api, for example GET /mcp/list, POST /mcp/add, POST /mcp/test, GET /mcp/scan, etc.; the client validates the API base address through data.plugin in /info.

Use Cases and Notes

Who it is for: Developers using MCP on the official DSH Windows desktop version who want to avoid directly editing cordis.patch.yml; users who need to scan and import configurations from other clients like Cursor or from other local DSH home directories.

Permissions and security: The plugin runs under the permissions of the DSH host process; reading/writing the profile and calling MCP connection tests are both constrained by those permissions. Before installation, you should read the GitHub repository source code and the MIT license, and assess whether it meets your environment requirements.

Known limitations (summary):

  • Modifying MCP configurations requires a host restart to take effect; POST /restart-host always returns an error, so you need to manually restart DSH.
  • serverName only allows [A-Za-z0-9_-]{1,32}, consistent with the official dsh-mcp-client.
  • The first launch of some built-in servers via npx requires network access to fetch packages.

The DSH ecosystem emphasizes “everything is a plugin”; the community directory site SkillHub plugin page has no official affiliation with DeepSeek / High-Flyer. The information in this article is based on the repository README and package declarations.

Conclusion

dsh-mcp-manager fills the management interface gap missing from the official MCP client: structured reading and writing of profile patches, validation before writing, scan imports and connection tests, and confining changes to the marked block, thereby reducing the risk of boot failure due to YAML errors.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye