UllrAI/dsh-mqtt 预览 preview

UllrAI/dsh-mqtt

Plugin插件 Native原生 ⭐ 2 MIT Notifications & Remote通知与远程

DSH的MQTT协议驱动与代理工作网关

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH) that adds full MQTT protocol support and a dedicated agent worker gateway. It transforms a running local DSH process into an MQTT-addressable worker that can receive tasks from remote clients, including CI pipelines and third-party cloud services. It exposes standardized execution events, supports steering or canceling in-progress runs, and injects custom context into active agent sessions, all while keeping the DSH worker behind NAT or a firewall by only using an outbound connection to the MQTT broker. It supports both MQTT 3.1.1 and 5, with connection options for TCP, TLS, WebSocket, and secure WebSocket.

Common use cases include triggering workflows on a private local workstation from a cloud CI job, running a small fleet of DSH workers that access local credentials, browsers or on-device GPUs, and handling asynchronous automation where the producer and worker do not need to maintain a persistent direct connection. It is also useful for enabling simple event integration between external software services and DSH agents, or for event passing between multiple DSH agents on different networks. It is not designed to replace synchronous HTTP APIs, general purpose MQTT client tools, or full workflow management systems with advanced features like priority queues, dependency graphs, and dead-letter processing.

To get started, you will need Node.js version 22.19.0 or newer, pnpm installed on your system PATH, a valid DSH DeepSeek API key, and access to an MQTT broker. You can run a local development broker with the command mosquitto -p 1883 -v if you just want to test the plugin locally, or use a hosted managed broker like EMQX Cloud or HiveMQ Cloud for production deployments. The plugin is released under the open source MIT license, is pinned to DSH 0.1.0-rc.8, and has several documented limitations you should review before putting it into production use.

这是一款专为 DeepSeek Harness (DSH) 开发的原生 MQTT 协议驱动与代理网关插件。它可以将一个 DSH 进程转换为可通过 MQTT 寻址的代理工作节点,允许客户端提交任务、观测标准化执行事件、调控运行中的任务、注入上下文、取消任务并接收关联的最终结果。由于 DSH 仅主动出站连接 MQTT 代理,工作节点可位于 NAT 或防火墙后,无需暴露 HTTP 服务端口。

它支持 MQTT 3.1.1 和 5 版本,可通过 TCP、TLS、WebSocket 等多种协议连接,支持持久化会话、重连、遗嘱消息、双向 TLS 认证等特性,内置限流和默认安全策略,采用版本化主题布局适配 ACL 访问控制。适合从云端服务调用内网工作站、搭建小规模 DSH 工作节点集群、实现异步自动化流程或软件与代理、代理与代理之间的事件集成。

使用前需要准备 Node.js 22.19.0 以上版本、pnpm 包管理器、有效的 DSH DeepSeek API 密钥以及一个 MQTT 代理服务,可使用本地自建的 Mosquitto 或 EMQX Cloud、HiveMQ Cloud 等公共托管服务。插件目前兼容 DSH 0.1.0-rc.8 版本,采用 MIT 许可开源,无使用成本,需注意遵循权限配置建议避免安全风险。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

npx @deepseek-ai/dsh plugin --profile web add dsh-mqtt@0.1.6

把 UllrAI/dsh-mqtt 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-mqtt

English | 中文

MQTT protocol driver and agent worker gateway for DeepSeek Harness (DSH).

dsh-mqtt turns a DSH process into an MQTT-addressable agent worker. A client can submit work, observe normalized execution events, steer or inject context into a running turn, cancel it, and receive a correlated final result. The DSH host only makes an outbound broker connection, so the worker can stay behind NAT or a firewall without exposing an HTTP server.

[!IMPORTANT] Version 0.1.6 closes a DNS-rebinding hole in the unauthenticated management API, keeps a live stream instead of polling when a management token is set, and stops a chatty controller from fsyncing the state file once per message. It currently targets DSH 0.1.0-rc.8. DSH itself is a developer preview and may introduce breaking changes.

What it provides

  • MQTT 3.1.1 and 5 connections over TCP, TLS, WebSocket, or secure WebSocket;
  • broker authentication with direct or environment-backed username/password credentials, custom CAs, and optional mutual TLS;
  • persistent MQTT sessions, reconnect, retained presence, and Last Will;
  • node-scoped submit, steer, inject, and cancel commands;
  • DSH agent creation and controlled Session continuation;
  • normalized session/event, agent status, and agent error output;
  • QoS 1 request and control deduplication across reconnects and restarts;
  • durable terminal results and interrupted-request recovery;
  • workspace aliases instead of caller-supplied filesystem paths;
  • active-request and payload limits;
  • safe event exposure by default, with explicit full-event opt-in;
  • an ACL-friendly, versioned topic layout.

This is a long-running host plugin, not an mqtt_publish or mqtt_subscribe model tool. The MQTT subscription lives with the DSH process and wakes or controls Agents when messages arrive.

When to use it

Good fits include:

  • invoking a workstation or private server from CI or a cloud service;
  • running small fleets of DSH workers with local repositories, credentials, browsers, or GPUs;
  • asynchronous automation where the producer and worker should not maintain a direct connection;
  • simple software-to-Agent or Agent-to-Agent event integration.

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev Deepseek-Harness-for-Chrome 下一个 Next dsh-companion →