dsh-streaming-mcp-bridge

by yabolee-kkk

0 通知与集成github 检测到 manifest package.json#dsh收录于 08-17

DeepSeek Harness 社区插件:把 Harness 的实时 session.event / session.status 流桥接给外部客户端,解决 ACP 只能返回最终结果、看不到思考/工具过程的问题。

DeepSeek Harness streaming MCP bridge: live session events as MCP progress, plus ACP adapter for cc-connect/Feishu.

安装

dsh plugin --profile web add github:yabolee-kkk/dsh-streaming-mcp-bridge

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

目录

DeepSeek Harness 社区插件:把 Harness 的实时 session.event / session.status 流桥接给外部客户端,解决 ACP 只能返回最终结果、看不到思考/工具过程的问题。

  • MCP 模式:Streamable HTTP,dsh_run_stream 执行任务时发送 notifications/progress。
  • ACP 模式:供 cc-connect / Feishu 使用,把思考、工具、状态实时推给飞书。
  • Feishu 展示:每条状态、思考、工具调用/结果使用独立代码块,最终回答放在代码块外。

安装

作为 DSH bundle 插件安装到 Web profile:

dsh plugin --profile web add dsh-streaming-mcp-bridge

也可以固定使用 GitHub Release:

dsh plugin --profile web add github:yabolee-kkk/dsh-streaming-mcp-bridge#v0.1.0

或者从本地 checkout 安装:

dsh plugin --profile web add /path/to/dsh-streaming-mcp-bridge

安装后启动 DSH Web:

dsh web

MCP 默认监听:

http://127.0.0.1:3477/mcp

建议设置 Bearer token:

export DSH_STREAMING_MCP_TOKEN="your-secret-token"

配置

可通过 profile 的 cordis.patch.yml 覆盖:

- id: dsh-streaming-mcp-bridge
  config:
    host: 127.0.0.1
    port: 3477
    authTokenEnv: DSH_STREAMING_MCP_TOKEN
    workspace: /home/you/workspace
    provider: deepseek-official
    model: deepseek-v4-flash

MCP 验证

curl -X POST http://127.0.0.1:3477/mcp \
  -H 'Authorization: Bearer TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"curl","version":"1"}}}'

拿到 Mcp-Session-Id 后,先打开 GET SSE 流,再调用 dsh_run_stream,即可看到 notifications/progress。

ACP / Feishu 模式

cc-connect 的 dsh 项目可以直接使用:

[projects.agent]
type = "acp"

[projects.agent.options]
work_dir = "/home/you/workspace"
cmd = "<node>"
args = [
  "<path-to-package>/bin/acp.js",
  "--workspace",
  "/home/you/workspace"
]

ACP 模式需要可用的 Harness JSON-RPC runtime。默认使用 DSH_HARNESS_HOME 下的源码路径,或通过 DSH_JSONRPC_BIN / DSH_CORDIS_CONFIG 指定运行环境。

安全

  • MCP 默认只监听 127.0.0.1,不要直接暴露到公网。
  • 使用 Bearer token 鉴权。
  • dsh_run_stream 会让 Harness 执行真实任务,只对可信用户开放。

License

MIT

Development

npm ci
npm test
npm run check

Plugin Market

dsh-market reads its catalog from 社区精选目录. See docs/market-submission.md for submission details.

原始 README: https://github.com/yabolee-kkk/dsh-streaming-mcp-bridge/blob/main/README.md ↗

同类插件

查看全部 →
通知与集成alvinunreal

dsh

将 DeepSeek Harness 的生命周期状态、错误与审批请求,桥接到本地运行的 OpenPets 桌面伙伴。

查看详情
1081github+08-21
通知与集成tencent-connect

dsh-qqbot

让 QQ Bot 接入 DeepSeek Harness(dsh)的官方插件

查看详情
55github+08-17
通知与集成omdsh-dev

dsh-open-in-vscode

从 Web GUI 一键在 VS Code 中打开工作区目录。

查看详情
39github+08-13
通知与集成omdsh-dev

dsh-notification

回合完成桌面通知,按结果分控 + 关键词过滤。

查看详情
38github+08-13
通知与集成THEWOLFWALKER

dsh-notifier

DSH 统一通知推送与远程控制:一个 `notify()` API 打通 25+ 渠道(Telegram / 钉钉 / 飞书 / 企业微信 / QQ 机器人 / WxPusher / PushPlus / Server 酱 / Bark / Discord / Slack / ntfy / webhook 等),timeSensitive / active / passive 分级路由并重试;五通道反向审批(Telegram 按钮 / 飞书卡片 / QQ / WxPusher / 微信 iLink);QQ/钉钉/飞书官方扫码登录;本地 Web 管理台;多 agent 路由;系统桌面通知——以及**手机指挥中心**:在手机上发 `!status` / `!stop` / `!retry` 遥控 agent,通知带可操作按钮(查看结果 / 重试 / 日志,点击回调 agent)。密钥脱敏、工具限流、零运行时依赖。

查看详情
27github+08-16
通知与集成wzj998

chatccc

飞书(Lark)或微信(WeChat)聊天控制 DeepSeek Harness / Claude Code / Cursor / Codex / CCC Agent

查看详情
22github+08-23