The design philosophy of DSH (DeepSeek Harness) is “Everything is a plugin”. In local development or deployment environments, managing Model Context Protocol (MCP) servers typically requires directly editing configuration files or Loader lines. The fanyongbing/dsh-mcp-native plugin provides a settings page entry to manage MCP servers as native Loader lines, supporting card lists, search, start/stop, and configuration editing.
Core Features¶
The plugin provides the following management capabilities:
- Card List & Search: Displays server status as cards in the settings page, supporting real-time filtering by service name, Loader ID, command, address, description, and other fields.
- Status Filtering: Supports filtering by All, Running, Stopped, and Error.
- Start & Stop: Controls service start/stop by toggling the
disabledflag of the Loader line via the settings page. - Restart & Reconnect: Supports restarting servers to restore connections after reconnection attempts are exhausted.
- Configuration Editing: Provides form mode and raw JSON mode, supporting field descriptions and bidirectional conversion.
- Add & Delete: Directly adds or deletes Loader lines within the current profile.
- MCP Descriptions: Contains a built-in library of descriptions for common MCP servers and displays registered tools and their descriptions on the “Description” page.
- Import from Local: Scans and imports MCP configurations from clients such as Claude Desktop, Cursor, and Claude Code.
Installation and Enablement¶
Install the plugin via the official command:
dsh plugin --profile desktop add github:fanyongbing/dsh-mcp-native
After installation, the MCP Services entry will appear in the settings navigation bar.
Typical Usage¶
Start/Stop Servers¶
In the MCP Services area of the settings page, click the action buttons on the cards to control services by modifying the disabled flag of the Loader lines.
Edit Configuration¶
Two editing modes are supported:
1. Form Mode: Fill in basic information, transport method, environment variables, etc.
2. Raw JSON Mode: Directly edit configuration file content, supporting !!js expressions.
Import Existing Configurations¶
Click “Import from Local”, select configurations from clients like Claude Desktop or Cursor, and the plugin will write them into the current DSH profile.
Configuration Field Example¶
Configuration items must be filled in the config field of the Loader line. Supported transport methods are stdio or streamable-http:
- id: mcp-github
name: '@deepseek-ai/dsh-mcp-client'
config:
serverName: github
transport: stdio
command: npx
args: ['-y', '@modelcontextprotocol/server-github']
env:
GITHUB_TOKEN: !!js process.env.GITHUB_TOKEN
Applicable Scenarios & Notes¶
This plugin is written in pure JavaScript with zero dependencies and zero build steps, but it has the following limitations:
- Connection Status: It cannot enumerate the set of connected servers, nor can it read the connection status of a single server. The interface defines “Running” as the Loader line being mounted, rather than a successful connection.
- Control Granularity: It cannot start/stop a single server without switching the Loader line; if reconnection attempts are exhausted, you can only restart the line or restart DSH.
- Transport Limitations: Only supports
stdioandstreamable-httptransport methods; SSE is not supported. - Security: The host side uses local loopback HTTP routes, and reading configurations includes environment variables. Please use in a trusted environment.
- Default Behavior: The default
failOnStartupErrorisfalse. Even if the first connection fails, the plugin fiber remains in the ACTIVE state.
Plugin URL: https://github.com/fanyongbing/dsh-mcp-native