DeepSeek Harness Plugin: A Settings Page for MCP Servers

Introduction

DeepSeek Harness (DSH) adopts a “plugin-first” architecture. Its official dsh-mcp-manager provides MCP server management capabilities but ships without any user interface. Developers are left to manually edit cordis.patch.yml—a process that is both tedious and error-prone. caprimoon/dsh-mcp-settings adds an MCP Servers tab to the DSH settings panel, wrapping the backend capabilities into a visual configuration interface.

Plugin Overview

This is a client-side plugin maintained by caprimoon that adds an MCP Servers tab to the DeepSeek Harness settings panel. It reuses the host’s existing settings document and MCP Remote infrastructure. It does not spawn or manage child processes—every write is persisted to the current profile’s cordis.patch.yml.

Core Features

  • Server listing: Displays name, transport type, a real-time status badge (Connected / Connecting / Reconnecting / Awaiting credentials / Disabled / Failed), and the number of registered tools
  • Add / Edit: Supports both stdio (command / args / environment variables / working directory) and streamable-http (URL / request headers) transports. Switching transport writes only the fields relevant to the target transport
  • One-click sample fill: The “Fill chrome-devtools example” button in the top-right corner of the add form populates a complete working configuration (command / args / both timeouts). You can adjust anything before saving; filling in does not auto-save—saving remains an explicit action
  • Enable / Disable: Disabling unloads the instance but keeps the entry intact
  • Test connection: Invokes the manager’s probe. Does not modify a running instance. Echoes back server identity, tool count, and elapsed time
  • Restart: Invokes the manager’s restart. Rebuilds the instance and resets the reconnect budget
  • Delete: Only appears for entries added at the user layer. Unsets the entire key. Entries inherited from lower-level configuration show a “Reset to inherited value” action instead, and the confirmation dialog explicitly states “this entry will remain at the user layer”
  • Plugin-registered servers: Servers registered by plugins are marked as “Plugin-registered” and are read-only: you can test the connection and restart them, but nothing else

Installation & Activation

In DSH, go to Plugins → Add Plugin and enter the GitHub source:

github:caprimoon/dsh-mcp-settings

Or install from a local directory: just fill in the repository path (local paths are installed via link, so edits are hot-swapped as you go). The host side is a single-line stub; the client bundle is hot-reloaded by client-hmr polling, so a restart is typically unnecessary.

Once installed, navigate to Settings → MCP Servers to start using it. The tab only appears when the host has mounted the mcp-manager entry.

Typical Workflow

The fastest path after installation: Settings → MCP Servers → Add Server → Fill chrome-devtools example → Save. This gives you a ready-to-use configuration:

npx chrome-devtools-mcp@latest --autoConnect

Startup timeout 60000 ms / Tool-call timeout 120000 ms. If the chrome-devtools key is already taken, the sample automatically falls back to chrome-devtools-2, so you’ll never hit a name collision no matter how often you click.

Writes & Persistence

All changes go through the host’s settings document (shared config form → settings.mutate) with revision validation, and are persisted to the current profile’s cordis.patch.yml:

- id: mcp-manager
  config:
    servers:
      <name>:
        transport: stdio
        command: npx
        args: ['chrome-devtools-mcp@latest', '--autoConnect']

Writes are field-level: saving a server replaces only the servers.<name> subtree; other servers are untouched. Changes take effect immediately (servers is a volatile field—the manager reconciles right away) and survive a DSH restart.

Writes carry a revision check: if another surface has written to the document since you loaded it, this write is rejected. The page re-reads the document, refreshes the editor with the current values, and lets you review again—no silent overwrites.

Credential References

Values in command / args / env / cwd / url / headers can be written as ${credential:name} to reference entries in the host’s credential store. The form stores only the reference and never writes plaintext. The naming rule matches the host’s convention: [A-Za-z_][A-Za-z0-9_]*.

Limitations & Caveats

  • The form exposes a fixed set of fields: transport, command/args/env/cwd, url/headers, enabled, startupTimeoutMs, toolCallTimeoutMs. Saving replaces the entire servers.<name> entry, but hand-written closeTimeoutMs and reconnect values at the profile layer are carried through as-is—so those two fields are invisible here and won’t be wiped by a save
  • Switching from stdio to streamable-http clears the fields of the previous transport—this is required by the manager’s cross-transport validation
  • A blank timeout means “not set at the user layer” and falls back to the mcp-client default. Existing explicit values are displayed
  • In the editor: one arg per line, one env var per line as KEY=VALUE, one header per line as KEY: VALUE
  • Connection testing has its own budget: probe uses a hard-coded DEFAULT_PROBE_TIMEOUT_MS = 10_000 inside mcp-client and does not read the entry’s startupTimeoutMs. So on a cold start where npx xxx@latest needs to fetch packages for the first time, you may see “instance connected but probe returned MCP operation timed out“—both sides are reporting their own truth. Once the package is cached, test again

Use Cases

Ideal for DSH users who need to manage a cluster of MCP servers. The plugin runs with the permissions of the current DSH process. Review the source code and license before installing.

Summary

This plugin turns MCP server management from manual config-file editing into a visual workflow, supporting the full lifecycle: list, add, edit, enable, test, restart, and delete. It’s a great fit for developers who frequently configure and debug MCP servers.

  • Plugin catalog page: https://www.skillhub.cn/plugins/caprimoon/dsh-mcp-settings
  • GitHub: https://github.com/caprimoon/dsh-mcp-settings
羽毛球分组比赛记分
小程序二维码

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

Xiaoye