Skip to main content

DeepSeek Harness

DeepSeek Harness (dsh) loads plugins as bundles: a package whose manifest declares a Loader patch that inserts plugin rows. The dsh-webrain bundle inserts one @deepseek-ai/dsh-mcp-client row that spawns webrain mcp over stdio, so every webrain tool reaches the agent as mcp__webrain__<tool> — the same tools, and the same 19-tool surface, that webrain exposes to any other MCP client. The bundle lives in integrations/dsh-webrain.

Requirements

  • A DeepSeek Harness profile. Every shipped profile already provides @deepseek-ai/dsh-mcp-client.
  • The webrain binary on the PATH of the process that starts the harness — webrain --version must work there. Install it with scoop install webrain (Windows), brew install prokopis3/webrain/webrain (macOS), or a binary from Releases.
  • A browser engine, once: webrain install downloads Chrome for Testing into webrain’s engine cache. Without it the tool list is complete but navigation fails with an engine error. webrain doctor diagnoses the install.
  • pnpm available to the harness process, because every third-party dsh plugin is installed with it. A Git subdirectory install additionally needs pnpm 11 or newer.

Install

In the Web UI: Plugins → Add plugin, paste a spec from below or choose the bundle directory. From the @ixnk scope on the npm registry (the Publish dsh-webrain workflow publishes the package at each release tag):
From this repository, pinned to a commit. The parameters are separated with npm’s :: form because pnpm 11 rejects the &path: spelling its own docs show; pnpm 11 or newer is required either way:
From a local checkout:
dsh plugin forwards its arguments to pnpm, so the verb is add. A live profile (patchReload: live) picks the bundle up without a restart.

What appears

  • A bundle card named webrain browser tools, with its own icon and the plugin name webrain.
  • One enabled row titled MCP client (row id webrain-mcp, serverName: webrain). @deepseek-ai/dsh-mcp-client owns the row’s title and generic artwork; the webrain icon belongs to the bundle card.
  • The tools mcp__webrain__webrain_navigate, mcp__webrain__webrain_extract, mcp__webrain__webrain_batch, mcp__webrain__webrain_observe, mcp__webrain__webrain_guide, and the rest of webrain’s 19-tool surface. The decision rules live in the webrain_guide tool, not in the prompt.

Verify

  1. Plugins shows the webrain browser tools bundle and one enabled MCP client row.
  2. Ask the agent to call mcp__webrain__webrain_guide. It returns the browser/challenge/extraction decision guide.
  3. Then a real task:
    Call mcp__webrain__webrain_guide, then open https://example.com and extract the heading.

Configure

The bundle inserts a row with id webrain-mcp. Override it with an id-targeted patch in the profile’s cordis.patch.yml ($DSH_HOME/profiles/<profile>/cordis.patch.yml); a patch replaces config wholly, so restate every field the row needs:
An absolute command matters on macOS when the harness is launched from Finder: a GUI process sees a minimal PATH, so a Homebrew webrain is invisible. The bundle starts webrain with WEBRAIN_STEALTH_NOISE=0: the fingerprint-noise block is off, the same choice webrain chat --serve makes for itself. It is the documented fix for a page that renders but never mounts (an SPA grid stays empty while a hand-opened tab of the same URL works). Set it to '1' to restore the noise shim, for example to reproduce a stealth-related report. One serverName can be registered once per scope. If you also kept a hand-written webrain MCP entry (for example the HTTP form, webrain mcp --http 9223), disable or remove it — otherwise the bundle’s row fails with mcp-client: serverName "webrain" is already in use by another mcp-client instance.

Troubleshooting