dsh-mcp-hub: One-Click Deployment and Tool Hub for MCP in DSH

Introduction

Integrating MCP (Model Context Protocol) servers into DeepSeek Harness (DSH) typically involves editing static mcp.json files or manually writing client configurations, often requiring a process restart afterward. On Windows development machines, there is an additional layer of friction: npx is actually npx.cmd, and Node’s spawn can easily fail with ENOENT if PATHEXT is not handled properly. Furthermore, the native command execution tool for DSH on Windows is pwsh, not bash, so installing a “universal shell MCP” can duplicate built-in capabilities. When dependencies are missing, logs often lack actionable fix commands, providing only stack traces.

The following introduces the community plugin dsh-mcp-hub (maintainer JD579g), categorized as a workflow tool. It provides one-click installation, online search, environment diagnostics, and tiered permissions for MCP within the DSH settings page. When connecting to a running Harness, no restart is required. Architecturally, it is Windows-first but can also be installed and used on macOS / Linux.

What is this?

dsh-mcp-hub is a DSH plugin: search for an MCP server in Settings → MCP Tools, click install, and it registers the connection in the current Harness. There is no need to manually edit configuration files or deal with npx.cmd separately. The same capabilities are also exposed via slash commands and model-facing tools.

Compared to “just maintaining a single mcp.json”, the feature matrix in the README summarizes the differences: one-click addition, no forced restart on connection, on-demand search across the official MCP Registry / npm / GitHub, deduplication against DSH native tools with explanations, four-level permissions per server, 7 zero-dependency built-in MCP services (61 tools), and environment diagnostics via /mcp doctor and the settings page.

Core Features

Settings Page “MCP Tools”

The settings page centrally provides: a status bar, environment Doctor, one-click presets, on-demand search (Official MCP Registry / npm / GitHub), a list of installed servers with permission dropdowns for each, a list of DSH native tools for the current platform, a custom MCP form, an built-in terminal, and real-time host logs.

Slash Commands

The commands listed in the README are as follows, corresponding to the settings page capabilities:

/mcp doctor                 # Diagnose environment
/mcp list                   # Installed servers and running status
/mcp search sqlite          # Search registry (no full prefetch)
/mcp add mcp-sqlite         # Install
/mcp permission kb ask      # Permission: always / session / ask every time / disabled
/mcp reload                 # Full resync

Built-in Zero-Dependency MCP Services

The plugin comes with 7 servers that can run via stdio under any MCP Host, totaling 61 tools: files, exec, net, kb (long-term memory), util, hub (control plane), device (only meaningful for Android/DSHA; not provided for desktop).

Permissions and Deduplication

Each external MCP server can be set to one of four permission levels: always, this session, ask every time, or disabled. “Ask” utilizes DSH’s approval channel; if there is no approval UI, it fails closed rather than silently allowing execution.

The directory and search results display DSH native capabilities side-by-side and indicate whether a candidate server duplicates existing tools, preventing the installation of redundant services like a second shell.

Windows-First Engineering Details

Platform-specific logic is concentrated in lib/platform.js, written as pure functions with injectable platform parameters. This facilitates testing Windows branches on Linux CI and real execution on Windows runners. Key points include: PATHEXT-aware executable resolution (solving spawn npx failing to find npx.cmd), default file roots (user home directory and %TEMP%), path policies, dangerous command lists, and the terminal fallback chain pwsh.exe → powershell.exe → cmd.exe. For details, see the “Windows-first engineering” table in the repository README.

Installation and Activation

Node.js >= 20 is required. There are zero third-party dependencies at runtime (the MCP SDK is provided by DSH).

Method 1: DSH Plugin Channel (same artifact as manual installation)

After installation, restart DSH once, then open Settings → MCP Tools → Doctor:

dsh plugin --profile web add dsh-mcp-hub

Method 2: Install from a cloned directory or unzipped release package

Windows (PowerShell):

.\install.ps1 -Verify

macOS / Linux:

./install.sh

Similarly, restart DSH once after installation is complete, and check the environment in Settings → MCP Tools → Doctor. For details on execution policies and pnpm fallbacks, refer to the repository documentation in the README.

The current package.json version is 1.2.0, License MIT. The Roadmap notes that it has not yet been published to npm, so dsh plugin add dsh-mcp-hub (without cloning) is still a planned item; refer to the repository instructions for details.

Typical Usage

  1. Finish installation and restart DSH. Check for missing items in Settings → MCP Tools → Doctor; Doctor will provide specific fix commands (e.g., winget install OpenJS.NodeJS.LTS, winget install astral-sh.uv), rather than just throwing stack traces.
  2. Search for the required MCP on the settings page or command line, e.g., /mcp search sqlite. After confirming there is no duplication with DSH native tools, use /mcp add … or click one-click install.
  3. Set permissions for sensitive servers, e.g., /mcp permission kb ask, to route through approval by session or per call.
  4. Use /mcp reload when a full configuration sync is needed; installed servers will not auto-update, so a new version requires reinstallation.

Python-based MCPs depend on uvx; the plugin will prompt the winget installation command but will not install it for you.

Use Cases and Notes

Who it is for: Developers who primarily use DSH on Windows, want to minimize configuration changes, want to quickly try MCPs from the Registry / npm / GitHub, and need a built-in zero-dependency toolkit for files, execution, networking, and memory.

Honest Boundaries (README “Honest status”):

  • CI is verified on windows-latest, ubuntu-latest, macos-latest (Node 20/22); on Windows, install/uninstall scripts are run for real. GUI testing is only browser-half smoke testing, and the UI polish might still be fresh on the first run.
  • Registry search relies on third-party APIs; rate limits and failures will be exposed to users.
  • In headless sessions, “ask” permissions cannot pop up windows, so they will reject rather than default to allow.
  • The plugin is not published to npm (see Roadmap).

Security and Trust: The plugin runs with the current DSH process privileges. Built-in exec, path policies, and dangerous command interception cannot replace your review of third-party MCP server source code and licenses. Please read the GitHub repository and the MIT license before installing; use the bug template provided in the repository for issue feedback (version, OS, Node, doctor report, relevant lines from hub.log).

The community directory SkillHub Plugin Page and GitHub are independent sources of information and have no official affiliation with DeepSeek / High-Flyer. The DSH ecosystem philosophy is “everything is a plugin”; this article serves only as a technical introduction.

Conclusion

dsh-mcp-hub consolidates MCP discovery, installation, permissions, diagnostics, and a set of zero-dependency built-in services into the DSH settings page and /mcp commands. It also provides a testable platform layer addressing differences in spawn, paths, and terminals on Windows. If you are already using DSH and frequently add or remove MCPs, you can start by installing via the official plugin channel, use Doctor to supplement dependencies like Node / uvx, and then search and install external servers as needed.

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

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

Xiaoye