Foreword¶
When connecting multiple MCP servers in DeepSeek Harness (DSH), the number of tools can easily grow into the hundreds. If every conversation turn writes all tools into the system prompt, token overhead increases significantly; meanwhile, tools/list_changed notifications on the MCP side cause tools to repeatedly unregister and re-register, reducing cache hit rates. On the other hand, if server start/stop, environment variables, credentials, and tool selections all rely on manually editing config files, operational costs become high as well.
Below we introduce the community plugin dsh-destinywind-mcp (maintainer rickwindman, category admin-security). It provides an MCP management UI within the DSH Web settings, and carries forward the capability approach of dsh-mcp: visually hosted servers, fine-grained control of tool loading, and two injection modes — search and full. The plugin is a modified version based on dsh-mcp 1.12.0 (MIT); the npm package name is dsh-destinywind-mcp, current version 1.0.0.
What This Is¶
dsh-destinywind-mcp is a Web-side DSH plugin: it centrally manages the MCP server registry under Settings → MCP (entrance below “Skills”), integrating with the Harness’s internal MCP client, storage domain, and credentials service.
It primarily solves three kinds of problems:
- When there is no visual management entry, create/edit/delete, test connections, start/stop, and refresh can all be done in the UI;
- In multi-server scenarios, control the scale of tools entering the context via on-demand search (
mcp_tool_searchhot injection) or full injection; - Process-level environment variables and secrets separation: regular KVs can be maintained in a list, sensitive values go through credential hosting; request headers support
variable_nameor${variable_name}substitution at connection time.
The DSH ecosystem adopts a “everything is a plugin” approach; the SkillHub directory page is a community-collected site with no official affiliation with DeepSeek / High-Flyer. Before installing and running, please review the GitHub repository source code and MIT license yourself. The plugin runs with the current dsh web process permissions; the MCP commands and network access scope it connects to are consistent with this.
Core Features¶
The following capabilities all come from the repository README and package.json descriptions, and can be used item by item in the settings page as needed.
Visual Management and Configuration Methods¶
- Server lifecycle: list display, supporting create, edit, delete, test connection, start/stop, refresh; adding a server can be done via a dialog, with built-in GitHub-related presets (package.json description).
- JSON full maintenance: the “JSON Maintenance Configuration” panel allows viewing/editing all servers as a JSON array, and applying saves immediately.
- Tool-level switches: expand each server’s tool list, all selected by default, and uncheck to load only the needed tools.
- Dual injection modes:
searchon-demand retrieval to save tokens;fullfull injection, convenient for troubleshooting “whether the tool registered successfully”. - Image result passthrough: images returned by MCP enter the model context via the attachment service, with pre-check and fallback handling (upstream dsh-mcp implementation description).
Environment Variables, Credentials, and OAuth¶
- Process-level environment variables: global KV configuration supports batch addition; server request header values written as variable names or
${variable_name}will be substituted at connection time (e.g.,Authorization: Bearer ${TOKEN}). - Secret hosting: sensitive information is stored through the DSH credentials service, not hardcoded in plaintext config (package.json description).
- OAuth: for
streamable-httpservers that require MCP OAuth (authorization code + PKCE), it can be explicitly enabled in the config (settings page “Use OAuth Authorization”,oauth: true); at connection time a browser authorization is opened, tokens are persisted and refreshed by the SDK. If the server uses a staticAuthorizationheader, OAuth should not be mistakenly enabled, otherwise 401 may be treated as an OAuth challenge and repeatedly trigger authorization prompts.
Collaboration with cordis Declarative MCP¶
DSH can declare MCP servers in cordis.patch.yml using @deepseek-ai/dsh-mcp-client. The plugin reads these declarations and displays them read-only in the settings page (marked “cordis declaration”). When serverName is the same, the declaration takes precedence; you can switch between the declaration row and plugin-hosted row via “Take over / Release” to enable capabilities only supported on the plugin side, such as OAuth, credentials, ${VAR} header substitution, etc. Rules and limitations (such as missing explicit id, declarations containing !!js cannot be taken over, etc.) follow the README.
Host Architecture Key Points¶
The plugin is divided into host and client: lib/index.js registers the mcpManager service and persists the mcp_servers storage domain; the client mounts the remote namespace itself in apply(), and the settings page operates via internal APIs. At runtime it depends on @deepseek-ai/* etc. peer dependencies, provided by the DSH profile’s module resolution; the plugin itself has zero npm dependencies bundled.
The repository README states that development and validation were done on dsh 0.1.6-alpha.2; when the DSH and plugin declared versions are inconsistent, the settings page will provide troubleshooting hints (check registration lines, restart dsh web, hard refresh, synchronized upgrades). Before use, please compare your local DSH version with the dsh field in package.json.
Installation and Activation¶
This plugin declares dsh.bundle.patch; installing the bundle via the profile will write the dependency and automatically append the registration line, without manually editing config files.
Method 1: plugin_manager
plugin_manager { action: "install_bundle", target: "<absolute path to this repository>" }
Method 2: command-line link installation (packaged into the profile, auto-registered by the bundle patch):
dsh plugin --profile web add link:<absolute path to this repository>
For local link: installation, the plugin directory needs to include a node_modules symlink pointing to $DSH_HOME/profiles/node_modules (for development, not committed), otherwise after the symlink is realpath’d, @deepseek-ai/* may not resolve (README explanation).
Activation steps (both steps are indispensable):
- Restart
dsh web— the host half and client roster are loaded at process startup, refreshing the browser alone is not enough. - Hard refresh the browser (
Ctrl + Shift + R) — to avoid loading a cached old client bundle.
If only the client bundle artifact lib/client.js is changed, refreshing the page is sufficient; changing lib/index.js and other host code still requires restarting dsh web.
Typical Usage¶
Opening the Management Page¶
After restarting and hard refreshing, open Settings → MCP in DSH Web to see the server list and global options (including injection mode etc.).
Adding an MCP Server (Example)¶
The way to declare a stdio-type GitHub MCP in cordis.patch.yml (for read-only display or when maintaining the declaration yourself):
- insert:
- id: mcp-github
name: '@deepseek-ai/dsh-mcp-client'
config:
transport: stdio
serverName: github
command: npx
args: ['-y', '@modelcontextprotocol/server-github']
In the settings page, the same information can be maintained via the “Add Server” form or the JSON panel; when OAuth, credentials, or header placeholders are needed, prefer using plugin-hosted rows rather than pure declaration rows (README “Declarative Servers” section).
Confirming Tools Enter the Session¶
- Confirm the corresponding server status is connected, and the required tools are checked (all selected by default).
- When the injection mode is “on-demand search”, the model will hot-inject tools only after searching via
mcp_tool_search; tools not retrieved are not in the system prompt, which is normal; you can temporarily switch to “full injection” to verify whether registration succeeded.
Common Questions (Excerpt)¶
- MCP menu not visible: check in order whether
dsh webwas restarted, whether a hard refresh was performed, whether installed into the current profile (e.g.,web), whether peer dependencies are fully declared (can runnode tests/check-peers.mjs). - Empty list or API 404: mostly due to the host
mcpManagernot being registered or not restarted; after upgrading the plugin, restart and hard refresh are needed to avoid mixing client and host versions. - Intranet HTTPS certificate error: can start
dsh webwithNODE_OPTIONS=--use-system-ca, or configureNODE_EXTRA_CA_CERTSand then restart.
For the complete Q&A, see the “Installation and Usage” and “Common Troubleshooting” chapters in the repository README.
Applicable Scenarios and Notes¶
Who It’s For
- Developers who frequently add/remove MCP servers under the DSH Web profile, needing UI start/stop and connection testing;
- Agent scenarios connecting multiple MCPs, wanting to control tool token overhead with the
searchmode; - Deployment approaches needing to put secrets into the credentials service and reference environment variables with
${VAR}in request headers; - Users who already declare MCP via
cordis.patch.ymland want to view declaration sources in the same interface and selectively “take over” to enable capabilities like OAuth.
Notes Before Use
- Plugin logic, MCP subprocesses, and remote HTTP access all execute under the DSH process permissions; review the source code and NOTICE (including vendored source explanations) before installing.
- When a declarative server and a plugin storage row have the same name, they will conflict, and the page will prompt; OAuth needs to be explicitly enabled, do not mistakenly enable it for static Bearer servers.
- The community directory currently has 0 stars; functionality is based on the repository documentation and local validation; do not assume behavior is completely consistent with upstream dsh-mcp (this repository is a modified version).
Conclusion¶
dsh-destinywind-mcp consolidates MCP server registration, tool selection, environment variables and credentials, OAuth, and injection modes into DSH Web’s Settings → MCP, and is compatible with cordis declarative configuration. If you already have multiple MCPs stacked in the Harness and want fewer file changes and controllable tokens, you can install it into the current profile via link: or install_bundle following the README, restart dsh web, hard refresh, and then start configuring from the settings page.
- Directory page: https://www.skillhub.cn/plugins/rickwindman/dsh-destinywind-mcp
- GitHub: https://github.com/rickwindman/dsh-destinywind-mcp