dsh-mcp-test: Tool Surface Snapshot and Drift Gating for DeepSeek Harness

Introduction

In DeepSeek Harness (DSH), models can invoke not only built-in tools but also plugin tools and MCP tools. After upgrading a plugin or MCP service, the tool names, descriptions, or parameter schemas may change without explicit notification. Static installation-time scanning or loader-level compatibility audits often fail to answer runtime questions: “Has the set of things the model sees changed just now?”

The following introduces the community plugin dsh-mcp-test (Maintainer: zhengqiuyang, SkillHub Category: Workflow). It takes a snapshot of the complete tool registry visible to DSH and compares it against a baseline committed to the repository. By default, it alerts on additions, deletions, or modifications to prevent silent drift. The trust path does not rely on LLM invocation. Currently, it has 0 GitHub stars, is at version 0.1.0, and is licensed under MIT.

What is this

dsh-mcp-test positions itself as a “tool-surface snapshot and drift gate” for DSH. It records the name, description, and parameters of every visible tool via ctx.tools.schemas(), generates a committable baseline, and performs a diff every time the registry changes.

It stands alongside the series’ dsh-read-guard (Read), dsh-pr-gate (Write), and dsh-attest (Behavior), focusing specifically on “what the model can call.” The methodology is adapted from the upgrade gating approach of mcp-test, but covers the entire registry rather than a single MCP connection. v0.1 includes only snapshotting and drift detection; feature probing and injection testing for running MCPs (the main capabilities of mcp-test) are on the roadmap.

Core Features

Workflow

The plugin triggers on boot and tools/change:

boot / tools/change ──> snapshot ctx.tools.schemas()
                   ──> baseline present? diff : establish baseline
                   ──> drift: added / removed / changed(name.description|parameters)
                   ──> warn (default) or rebaseline (explicit opt-in)

Key points are as follows:

  1. Baseline File: Default path is .dsh-mcp-test/baseline.json. It is a stable, name-sorted JSON designed to be included in version control as a contract.
  2. Drift Types: Added, Removed, Changed (Name/Description/Parameters).
  3. Parameter Diff: Insensitive to key order—reordering a schema is not considered drift; only content changes count.
  4. ignoreTools: Allows excluding tools you intentionally keep dynamic.
  5. No Baseline: The first run establishes a baseline; if a baseline exists, it compares against the current snapshot.

By default, it warns on drift; you should only enable rebaselineOnDrift: true to reset the baseline when explicitly accepting an upgrade.

Comparison with Other Ecosystem Approaches (Based on Source Material)

The DSH supply chain side already has several static scanning plugins (auditing package manifests at install time), but these do not monitor the live tool surface. dsh-plugin-observatory audits plugin compatibility at the loader layer, rather than at the schema layer visible to the model. This plugin addresses the specific question at upgrade time: “Has the interface available to the model just changed?”

Installation and Activation

The installation command provided in the official README is as follows (distributed via npm, no build or allowBuilds required; pre-built lib/ is included in the repo):

dsh plugin --profile default add dsh-mcp-test

Compatibility (Original Text):

  • DSH: Verified on the 0.2.x line (source snapshot 0.2.1-alpha.2); any profile can install via dsh plugin add.
  • Node: >= 20 (CI matrix includes Node 20/22/24 on Ubuntu and Windows).

Enable it in the configuration and specify paths and behavior:

- id: dsh-mcp-test
  name: dsh-mcp-test
  config:
    baselinePath: .dsh-mcp-test/baseline.json
    rebaselineOnDrift: false   # true only when accepting an intended upgrade
    ignoreTools: []

Upon successful installation, the boot log will show a prompt like [dsh-mcp-test] active: … (disposable-profile verification recorded on 2026-10-19).

Typical Usage

  1. Initial Integration: Install the plugin and start DSH. Let the plugin generate .dsh-mcp-test/baseline.json when no baseline exists, and commit the file to the repository.
  2. Daily Development: After upgrading a plugin or MCP, boot again or trigger tools/change. If the tool surface differs from the baseline, a warning is issued by default, facilitating the detection of unintended changes before merging or releasing.
  3. Intentional Tool Surface Upgrade: After confirming the diff matches expectations, set rebaselineOnDrift to true to accept the new baseline, then switch it back to false, and commit the updated baseline.

Local development and self-testing (from maintainer repo):

npm install
npm test

Use Cases and Notes

Who it is for:

  • Teams integrating multiple plugins and MCPs on DSH who want tool schema changes during upgrades to “fail loudly” rather than pass silently.
  • Supply-chain practitioners who need to treat the “model-visible tool surface” as an auditable, versionable contract.

Important Notes:

  • The plugin runs with the current dsh process permissions and can read and compare the full tool registry; you should review the GitHub Source and the MIT license before installation.
  • v0.1 does not include behavior probing for running MCPs; this capability is on the roadmap, planned alongside per-source split baselines and integrating drift results into CI.
  • If DSH officially provides first-party tool-surface pinning in the future, or if observatory-type plugins provide equivalent drift gating at the schema layer, the maintainer’s README states that this plugin may be frozen at the last available version with a postmortem here. You should be aware of this exit condition when choosing to use it.

The community directory on SkillHub is an independent site and has no official affiliation with DeepSeek / High-Flyer. The DSH ecosystem philosophy is “everything is a plugin”; this plugin is a community workflow supplement, not an official app store entry.

Conclusion

dsh-mcp-test turns “what the model can call” into a committable baseline and a diff upon boot/tools changes. It uses a zero-LLM trust path to address silent tool surface drift caused by plugin and MCP upgrades. For details, configuration, and roadmap, please refer to the directory page and the repository:

  • Directory Page: https://www.skillhub.cn/plugins/zhengqiuyang/dsh-mcp-test
  • GitHub: https://github.com/zhengqiuyang/dsh-mcp-test
羽毛球分组比赛记分
小程序二维码

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

Xiaoye