dsh-obscura: Hosting the Obscura MCP Service in DeepSeek Harness

Preface

When integrating a headless-browser MCP like Obscura into DeepSeek Harness (DSH), the common approach is to manually maintain the Obscura process, write the mcp-obscura line in the profile, and verify on your own whether the port and harness are truly connected. When the port changes, the service is unhealthy, or the config line doesn’t match the actual address, troubleshooting often requires checking back and forth across several places.

dsh-obscura (repo SodiumLayer/dsh-obscura) is a third-party workflow plugin: it parses the Obscura executable during the DSH startup sequence, launches the MCP HTTP service and performs handshake health checks, while syncing the mcp-obscura config in the profile within the settings page, and provides version detection and “Test Connection”. This article describes its positioning, capabilities, and installation/usage; facts are based on the repo README and package metadata.

What Is This

  • Name: dsh-obscura-plugin (community directory entry: sodiumlayer/dsh-obscura)
  • Maintainer: SodiumLayer
  • Category: Workflow (DeepSeek Harness plugin directory: SkillHub entry)
  • Upstream relationship: Unofficial third-party plugin, with no affiliation to DeepSeek Harness or Obscura (h4ckf0r0day/obscura); this repo neither contains nor distributes the Obscura binary. You must obtain it from upstream yourself and comply with its license.

In one sentence: a DSH settings page plugin for Obscura — it starts and health-checks the Obscura MCP service, resolves the binary from PATH or the plugin’s bin/, and keeps the mcp-obscura entry in the profile consistent with the panel settings.

Core Features

The following maps requirements to implementations based on the README (only listing capabilities explicitly documented in the materials).

Automatically Launching the MCP Service When DSH Starts

On the host side, the plugin resolves the executable during the startup sequence and runs something like spawn obscura mcp --http --port <port>, polling the MCP handshake to confirm availability. When DSH exits, it stops only the process started by this plugin itself, without ending instances held by others.

Executable Resolution and Version Display

Resolution priority: custom path → system PATH → plugin directory bin/ (including extracted subdirectories). A custom path can be either the executable file itself or the folder containing it.

The panel shows only one version line, taken from actually executing obscura --version; if the version cannot be obtained, it displays “Not available”. The plugin package ships a bin\ directory and an “Open folder” button, making it easy to place a self-downloaded binary (on Windows, the documented example uses bin\).

MCP Configuration Toggle and Connection Address

  • Toggle (on): Writes or reuses a mcp-obscura line in the profile’s cordis.patch.yml.
  • Toggle (off): Removes that line.
  • Connection address: If the text box is left empty, generates http://localhost:<port>/mcp based on --port; if filled in, uses your address. When the port or address changes, the config line follows automatically; if it conflicts with manual edits in the file, the panel will clearly indicate it.

In implementation, the plugin edits the patch file line by line, preserving header comments, other plugin lines, and unparseable !!js expressions; the config line is generated from the effective MCP URL projection, avoiding the case where the panel tests a new port while the harness still points to the old port.

Service Control and Launch Arguments

The settings page provides Start Service / Restart Service / Stop Service, plus a Custom Launch Arguments text box. The plugin fixes the subcommand to mcp; host, port, stealth, etc. are all determined by the arguments box, with defaults:

--http --host 127.0.0.1 --port 3000

--port determines the health check and harness connection address; a missing --http will produce an explicit error rather than silently falling back to stdio.

One-Click Test of Whether the Harness Is Connected

“Test Connection” has two parts:

  1. Service part: Directly requests the MCP connection address shown on the panel, performing initialize and tools/list.
  2. Connection part: Reads the loader entry and the number of mcp__obscura__* tools.

The two are reported separately, making it easy to distinguish “service not running” from “service running but not connected to the harness”. The MCP toggle reflects whether the line exists in the patch file; whether it is actually mounted is determined by the connection part. After modifying MCP-related config, a DSH restart is usually required for mounting to take effect (the materials emphasize that writing config ≠ in effect).

Design Constraints (Expected Behavior During Use)

  • Obscura-related failures are consolidated into panel state and cause, without blocking DSH startup.
  • Does not download Obscura over the network, and does not end processes not held by this plugin; port conflicts are reported as conflicts rather than forcibly killing the occupier.
  • The host implementation depends only on Node built-in modules; the settings page introduces no additional frontend libraries (uses the host-injected react).
  • Compatibility declaration (package.json): DSH >=0.2.0-rc.1 <0.3.0, profiles support web and desktop; Node >=22.19.

Installation and Enablement

For detailed installation and usage instructions, see the repo’s INSTALL.md. The add command given in the README is as follows (for the web profile):

dsh plugin --profile web add github:SodiumLayer/dsh-obscura

After adding the plugin, configure the Obscura path (or place it in the plugin’s bin/), launch arguments, and the MCP toggle in the DSH settings page. Please prepare the Obscura executable yourself before first use.

Typical Usage

You can complete a full integration in the settings page in the following order (steps from the README’s feature descriptions, with no additional case data).

  1. Place the Obscura binary in the system PATH, the plugin’s bin/, or specify a custom path in the panel.
  2. Confirm the panel’s version line shows the result of obscura --version; otherwise resolve “Not available” first before enabling MCP.
  3. Edit the launch arguments as needed (must include --http and --port), use Start Service to launch the process; use Restart Service / Stop Service for adjustments if necessary.
  4. Turn on the MCP toggle, and verify that the generated mcp-obscura connection address matches the port in the arguments.
  5. Click Test Connection: first check whether the service part passes, then whether the connection part lists the mcp__obscura__* tools. If the connection part fails while the service part succeeds, focus on whether the profile has been restarted to load the patch.
  6. Restart DSH (follow the panel prompts after modifying MCP config or the patch), then call the MCP tools provided by Obscura in harness conversations.

Use Cases and Notes

Who it’s for: Workflow users who are already using or plan to use Obscura as a headless browser MCP in DSH, and who want the plugin to uniformly maintain the process lifecycle, health checks, and the mcp-obscura line in cordis.patch.yml.

Recommendations before installation:

  • The plugin runs with the current DSH process privileges. Before installation, you should read the GitHub source and MIT license, and evaluate Obscura’s upstream license and security policy yourself.
  • Community plugin directories (such as SkillHub) are independent ecosystem sites with no official affiliation to DeepSeek / High-Flyer; do not treat them as official app stores.
  • The current package version is 0.1.0; the repo stars are subject to what the directory page displays (0 at the time the materials were captured).

Conclusion

dsh-obscura consolidates “launching Obscura MCP, verifying health, writing patch, testing harness connection” into a single settings page, reducing manual back-and-forth modifications of ports and config lines. For further information, visit the SkillHub plugin page and the GitHub repo.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye