返回目录
模型与 MCP 待识别

dsh-mcp-inspector

zwgblue/dsh-mcp-inspector

MCP servers panel for the DeepSeek Harness Web UI: live status, configuration, methods, and a per-server on/off switch.

Stars
0
Forks
0
Issues
0
更新
15 天前

PROJECT TOPICS

项目标签

PROJECT README

README

dsh-mcp-inspector

English | 中文

A sidebar panel for the DeepSeek Harness Web UI that lists the MCP servers configured in the current profile, shows their live status, expands into full configuration plus every method they expose, and lets you switch a server on or off without editing configuration files.

MCP servers panel in the DeepSeek Harness sidebar

Features

  • Sidebar entry: an MCP servers icon in the left sidebar opens the global panel.
  • Servers and status: one row per server — Connected / No tools yet / Disabled / Failed / Runtime-registered.
  • Expand a server:
    • Configuration: transport badge (stdio / streamable-http), command, arguments (one per line), working directory, endpoint URL, header and environment names (values hidden), call timeout, instruction cap, startup-failure policy, reconnect policy, entry id.
    • Methods: every MCP tool with its name, full description, and parameters (required ones highlighted).
  • Live on/off switch: enable or disable one server at runtime. Disabling closes its MCP connection and unregisters its tools; enabling reconnects it. The change goes through the Host's official pluginManager.setPluginEnabled(), so it is written to the profile's cordis.patch.yml and survives a restart.
  • Refreshing: reads on open, polls every 15 seconds, and refreshes immediately after a toggle (plus one follow-up read while the server reconnects).
  • Theme and locale: built entirely from host theme tokens (light/dark), and the UI text follows the host language (English/Chinese).

Requirements

  • DeepSeek Harness 0.2.x (Web GUI or desktop).
  • A profile that loads the base and web-app bundles.
  • MCP servers declared through @deepseek-ai/dsh-mcp-client rows, for example in the profile's cordis.patch.yml:
- insert:
    - id: mcp-github
      name: '@deepseek-ai/dsh-mcp-client'
      config:
        serverName: github
        transport: stdio
        command: npx
        args: ['-y', '@modelcontextprotocol/server-github']

Install

Clone this repository, then install that directory into Harness (either way):

  1. Web UI: Settings → Plugins → Add → point at the repository's absolute path, then enable it.
  2. Agent/CLI: have the Harness agent run plugin_manager install_bundle with the repository path as target, or run dsh plugin --profile <profile> add /absolute/path/to/dsh-mcp-inspector.

After installation the MCP servers entry appears in the left sidebar. Client-side code changes need a plugin reload (disable/enable it in the Plugins page, or restart Harness).

Host routes

The Host half registers two loopback routes and has no user-facing configuration:

Method and path Purpose
GET /mcp-inspector/servers Read-only inventory: configured servers, status, configuration, methods
POST /mcp-inspector/toggle Enable/disable one row; body { "entryId": "<Loader entry id>", "enabled": true }

Security notes:

  • It binds to the Harness's own loopback Web server; no extra port is opened.
  • env and request-headers values never leave the Host; the panel only shows their names.
  • The toggle route accepts POST only, requires the x-mcp-inspector-action: toggle header (a cross-site form cannot send it), refuses cross-site sec-fetch-site, and only toggles rows that the inventory itself reports as MCP servers.

Status semantics

Status Meaning
Connected The entry is active and its server currently has registered methods
No tools yet The entry is active but no method is registered (still connecting, or the server exposes no tools)
Disabled The entry is disabled (by this switch or by disabled: true in a patch)
Failed The entry failed to activate (for example a broken startup command)
Runtime-registered A server with registered methods but no configuration row

Layout

.
├── package.json        # bundle declaration: dsh.bundle.patch + dsh.client (web)
├── cordis.patch.yml    # inserts the Host row mcp-inspector
├── index.js            # Host half: inventory + toggle routes
├── client.js           # Client half: sidebar entry + main panel (React)
├── locale/{en,zh}.json # plugin display title and description
├── icon.svg            # plugin icon
└── docs/screenshot.png # panel screenshot used by this README

Repository metadata

  • The package metadata points at github.com/zwgblue/dsh-mcp-inspector. If you fork the project, update the three URLs in package.json (homepage, repository, bugs).
  • To publish on npm, change the package name to your scope (for example @you/dsh-mcp-inspector) and update the same name in cordis.patch.yml and in the module id at the top of client.js.
  • Adjust the copyright holder/year in LICENSE (currently 2026 zwgblue).

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型待识别
功能分类模型与 MCP
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: mcp、model-context-protocol、mcp-client、deepseek-harness。