chushixixin/dsh-harness-mcp-server 预览 preview

chushixixin/dsh-harness-mcp-server

将DeepSeek Harness代理能力作为MCP服务器暴露(大脑=Hermes,手臂=Harness)

Project Overview项目介绍

This is a native DSH plugin that exposes DeepSeek Harness’s built-in agent runtime as a Model Context Protocol (MCP) server. It lets any external MCP-compatible client, like the Hermes agent, delegate coding tasks directly to Harness’s powerful agent runtime. It spins up a StreamableHTTP MCP server inside your running Harness instance, then bridges Harness’s core services for agents, presets, and tools to create a clear interface for external clients. You can install it via npm directly, or clone it from source into your Harness workspace to build from scratch.

This plugin is designed to be used as a fallback tool rather than a daily development driver. It is most useful for large refactoring jobs that need context isolation, or when you need to run multiple unrelated tasks in parallel on the same codebase. It exposes five core tools to connected MCP clients: echo for connectivity checks, harness_list_tools to get registered tool names, agent_run for synchronous task execution, and task_inbox/task_result for async tasks. Agents reuse existing sessions per working directory, cutting down context reload time dramatically.

This plugin is released under the open source MIT license, so you can use or modify it freely for personal or commercial projects. By default, the MCP server binds only to 127.0.0.1 port 8090, so it is not accessible from outside the local machine. The server offers unauthenticated remote code execution, so you must add authentication, TLS, and a reverse proxy before exposing it to any network. It requires bubblewrap installed on the host to sandbox bash write commands, otherwise write operations will be blocked.

这是一款专为DeepSeek Harness(DSH)开发的原生Cordis插件,它将DSH内置的强大代理运行时能力暴露为符合Model Context Protocol规范的MCP服务器,允许任何外部MCP客户端(比如Hermes智能体)调用DSH来执行实际编码任务。它会在DSH内部启动一个StreamableHTTP协议的MCP服务,桥接DSH核心的代理、预设和工具服务,让外部“大脑”可以把具体工作委派给DSH执行。

开发者通常将这款插件用作后备工具而非日常开发驱动,适合处理需要上下文隔离的大型重构任务,或是需要并行执行多个无关任务的场景。外部MCP客户端可以调用它提供的echo、harness_list_tools、agent_run等工具,同步或异步推送任务到DSH,获取包含会话ID、变更内容、验证结果的结构化输出,再将结果回写到客户端的持久化内存中。

它使用MIT许可证开源,可通过npm或源码两种方式安装到DSH工作区,安装后需要在Harness的配置文件中注册插件,再启动Harness加载该服务。默认情况下MCP服务仅绑定本地127.0.0.1的8090端口,由于存在未认证的远程代码执行风险,禁止直接绑定到公网或未做访问控制的局域网。需要Bubblewrap来实现Bash命令的沙箱运行,否则写操作会被拒绝。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 12 stars - an early-stage project星标 12,属于早期项目
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命令行安装

dsh plugin --profile web add github:chushixixin/dsh-harness-mcp-server

把 chushixixin/dsh-harness-mcp-server 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-harness-mcp-server

Expose DeepSeek Harness agent capabilities as an MCP server, letting any MCP client (e.g. Hermes) drive Harness to execute real coding tasks.

Hermes is the brain (pro), Harness is the arms (flash) — 1+1>2.

npm version license

Why this exists

Harness ships a powerful agent runtime (tools, LLM, agents, sessions), but it is a Cordis app, not something another agent can call. This plugin turns Harness inside-out: it starts a real MCP server (StreamableHTTP) inside Harness and bridges Harness's core services — ctx.agents, ctx.agentPresets, ctx.tools — so an external "brain" can delegate real work to Harness's "arms".

Hermes (MCP client, brain)
   │  agent_run / task_inbox (HTTP)
   ▼
dsh-harness-mcp-server (MCP server, :8090)
   │  ctx.agents.create → mount 'standard' preset
   ▼
Harness agent (flash) — full toolset: bash, fs, todo, web…

Tools

Tool Direction Purpose
echo — Verify MCP connectivity
harness_list_tools — List Harness's registered tool names
agent_run Hermes → Harness Run a task synchronously and return a structured result
task_inbox Hermes → Harness Push a structured task (task + memory context + cwd) to an async queue
task_result Hermes ← Harness Poll a queued task's structured result

Every task result is structured:

{
  "sessionId": "...",
  "assistantText": "final answer",
  "toolCalls": [{ "name": "bash", "args": "..." }],
  "toolResults": ["command output"],
  "changes": "what was changed",
  "verification": "how it was verified",
  "leftovers": "open issues"
}

This closes the loop between the client's persistent memory and Harness's coding: memory is fed into each task as context, and the result (changes / verification / leftovers) can be persisted back to the client's memory for the next run.

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

← 上一个 Prev dsh-observe 下一个 Next better-model-provider →