dsh-mcp-pill
English
Current release: 0.2.5 — Remote settings are capability-detected and optional, so older DSH RC hosts continue to start the plugin. This release adds a documented install path: dsh plugin --profile web add dsh-mcp-pill.
A lifecycle-safe MCP connection status pill for DeepSeek Harness Web. It exposes loopback-fenced status/toggle RPC, an official Settings card, and a composer-seat pill that stays hidden until enabled. DSH 0.1.2+ fine-grained remote.settings is preferred; older RC hosts use the legacy connection API.
中文
用于 DeepSeek Harness Web 的生命周期安全 MCP 连接状态胶囊。提供本机同源 RPC、官方设置卡片和输入框状态胶囊;优先使用 DSH 0.1.2+ 的 remote.settings,旧版 RC 自动回退到 connection API。
Global MCP connection status pill for the DSH web UI — official bundle form
(host RPC + __ModuleLoader__ client, no tapIndex injection).
GET /api/mcp-pill/status — JSON status of every configured MCP connection
plus pill.enabled, the hot host mirror of the visibility toggle.
POST /api/mcp-pill/set — { id, enabled } toggles a connection via the
patch file's disabled marker (loader HMR applies it).
- The pill is hidden by DEFAULT. An official-style expandable Settings Card
(
settings.plugin.item / key mcp-pill) owns one switch,
「显示状态胶囊」(pill.enabled, default false); while it is off the pill
never mounts visibly, and toggling it takes effect within one status poll
(instantly after a save in the same tab).
- The pill snaps to one of the chat input's four corners (drag to switch);
the anchor is remembered in
localStorage (dsh.mcpPill.anchor).
- The pill mounts inside the composer seat (same stacking level as the input
box) at a normal
z-index, so DSH web popups (modal / menu / toast) can
cover it instead of being hidden behind it.
Install
dsh plugin --profile web add dsh-mcp-pill
Restart the existing DSH Web process afterwards: the Host scans the browser plugin roster at startup, so the pill and its Settings card appear only after that restart. Then open Settings → Plugins → MCP 状态胶囊 and turn on「显示状态胶囊」— the pill is hidden by default.
Local development, from this package directory:
dsh plugin --profile web add .
Either form records the package in the profile's dsh.profile.bundles, which is what mounts the Host half and serves the client bundle.
Config
The mounting row (in this package's cordis.patch.yml) passes
config.patchFile — the cordis.patch.yml holding the dsh-mcp-client rows,
resolved against the profile working directory (default <cwd>/cordis.patch.yml).