DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Connection Rpc Fix — DeepSeek Harness 插件(DSH Plugin)
← Plugins

dsh-connection-rpc-fix

Connection Rpc Fix

恢复 dsh Web 组合中面向插件的 connection.rpc.handle() API 的社区捆绑包。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add dsh-connection-rpc-fix@0.1.0
README兼容性版本

兼容性与来源证明

Connection Rpc Fix 以 dsh-connection-rpc-fix 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
npm
Registry 更新时间
2026/9/14

版本

0.1.0stable
2026/9/14

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
11.4 kB
文件数
6
Surface
any
许可证
MIT
发布源
npm
GitHub
★ 0
周下载
0
最近提交
2026/9/14
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

继续浏览 developer-tools 分类下经过校验的插件。

DSCODE@toddzheng024/dscode-bundle完整的 DeepSeek 编码代理,支持持久化 shell、Ultra 协作和自动权限审查。Plugindsh-pluginDeepSeek Harness 社区插件市场,遵循官方插件规范——无需离开应用即可浏览、搜索并安装 9000+ 个由人工精选的社区插件。· DeepSeek Harness 社区插件市场(遵循官方开发规范):9000+ 人工精选社区插件,每日更新。Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Sdk Minimal@deepseek-ai/dsh-sdk-minimal独立的最小 SDK 配置包:JSON-RPC、一个 DeepSeek 适配器、持久化 Shell 和 JSONL 会话

README

dsh-connection-rpc-fix

English | 中文

A community bundle that restores the plugin-facing connection.rpc.handle() API in the DeepSeek Harness Web composition.

Maintained by @Robin1987China

The symptom

A third-party plugin registers a private Web RPC channel, and every browser-side call to it fails:

cannot get property "webServer" without inject

Nothing is logged where the plugin can see it, and the browser request falls through to the static handler and answers HTTP 405.

English: connection.rpc.handle not working · plugin RPC channel returns 405 · cannot get property webServer without inject

中文: 插件 RPC 通道注册不上 · 浏览器端一律 405 · cannot get property webServer without inject

Who this affects

Anyone shipping a plugin that needs a browser-reachable channel through connection.rpc.handle(channel, handler). The official /api transport is not affected — only the plugin-facing API is.

Root cause

In @deepseek-ai/dsh-client-connection:

const inject = ['credentials'];                       // the package's own injections

async function apply(ctx, config) {
  const connection = new HostConnectionService(ctx, ...);   // the service holds this ctx
  ctx.inject(['webServer'], (webCtx) => {
    webCtx.effect(() => webCtx.webServer.register(route), ...);   // official /api — works
  });
}

// inside the service:
const owner = this.ctx;                                // = apply's ctx: no webServer
  handle: (channel, handler) => this.register(owner, channel, handler),

register(owner, channel, handler) {
  return owner.effect(() => owner.webServer.register(route), ...);   // throws, swallowed
}

The plugin row declares inject: [webRuntime], so the service's context never carries webServer. The property access throws inside owner.effect, the throw is swallowed, and the channel is never mounted.

The package's own doc comment says it mounts the browser transport “When webServer is present” — the plugin-facing API assumes it unconditionally.

The fix

This bundle patches one row, giving the service's context the service it reads:

- id: connection
  inject: [webRuntime, webServer]

Install

As a bundle — the official distribution form:

cd ~/.dsh/profiles/web
npm install dsh-connection-rpc-fix

then add it to that profile's package.json:

{"dsh": {"profile": {"bundles": ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "dsh-connection-rpc-fix"]}}}

Or, without installing anything, patch it yourself in ~/.dsh/profiles/web/cordis.patch.yml:

- id: connection
  inject: [webRuntime, webServer]

Verification

A probe plugin calls ctx.connection.rpc.handle('/lab-probe', handler) at startup, and the channel is then probed over HTTP. A registered channel sits behind the connection fence and answers 401 to an unauthenticated request; an unregistered one falls through and answers 405.

plugin logPOST /lab-probe
beforeTHREW: cannot get property "webServer" without inject405
afterreturned without throwing (disposer: function)401

Both runs used an isolated DSH_HOME on a separate port; the POST /api control answered 401 in both.

The patch was also confirmed to work when delivered as a bundle (listed in dsh.profile.bundles) rather than as an inline patch layer, which is the form this package ships.

Scope and limits

  • It patches a composition row, not the package. The underlying access is still unguarded, so read the upstream reports below before assuming a future release is fixed.
  • It targets the Web composition. A deployment that mounts connection without a web server was already broken for this API and gains nothing here.
  • It does not make rpc.handle() tolerate a missing web server; it makes the web server present.

Upstream reports

  • #6105 — connection.rpc.handle() cannot register plugin RPC channels (browser gets HTTP 405)
  • #6179 — always throws (cannot get property webServer without inject)
  • #6289 — cannot mount third-party Web RPC channels
  • #6081 — the Web bundle should declare a modules to webServer activation dependency

License

MIT