BC

bestagentkits/cloud-harness-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

106 stars 41 forks 质量 87 趋势 22MIT

远程编码束作为安全可流式HTTP MCP服务器展示

概览

Cloud Harness MCP 是通过认证的 Streamable HTTP MCP 公开的 MIT 许可远程编码工具。它在受 TTL 限制的 Docker 执行器中开启一个隔离的克隆,并为可信的所有者或互信操作员提供结构化工作空间、文件、代码智能、命令、shell、会话、依赖任务、Git、工作树、技能、钩子、内存以及仓库定义的部署工具。 这是一个针对某一安全域的私有服务。其操作员必须相互信任,因为它有意在共享内核执行器内执行任意命令。主隔离不是敌对的多租户沙箱。操作前请阅读安全模型。 静态头部客户端在独立的网关使用仪表盘管理的API密钥: MCP 是北向控制协议;机束是执行时。拆分使面向互联网的请求处理远离 Docker 权限,并防止仓库凭证进入长期执行程序。

概述(AI 翻译)

云束 MCP 是一种 MIT 许可的远程编码框架,通过以下方式暴露 认证可流式 HTTP MCP。它在 TTL 限制的 Docker 执行者,并赋予一个可信的所有者或互信的名称 操作员结构化工作空间, 文件、代码智能、命令、shell、会话、依赖任务、git, 工作树、技能、钩子、内存和仓库定义的部署工具。

[!警告] 这是一个针对某一安全域的私有服务。其操作员必须信任 是因为它有意地能够任意指挥 在共享内核执行程序内执行。主隔离不是 敌对的多租户沙箱。阅读安全模型 操作前>。

托管OAuth MCP的URL为:

静态头部客户端在独立的网关使用仪表盘管理的API密钥:

建筑

MCP 是北向控制协议;束束是执行时。 这种分离使面向互联网的请求处理远离了 Docker 权威机构, 防止仓库凭证被长期执行者获取。

这些边界的真实来源是 compose.yaml, apps/runner/src/workspace-service.ts, 以及安全模型。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Cloud Harness MCP

Cloud Harness MCP is an MIT-licensed remote coding harness exposed through authenticated Streamable HTTP MCP. It opens an isolated clone in a TTL-limited Docker executor and gives a trusted owner or named mutually trusted operators structured workspace, file, code-intelligence, command, shell, session, dependency-task, Git, worktree, skill, hook, memory, and repository-defined deployment tools.

[!WARNING] This is a private service for one security domain. Its operators must trust one another because it is intentionally capable of arbitrary command execution inside a shared-kernel executor. Principal isolation is not a hostile multi-tenant sandbox. Read the security model before operating it.

The Managed OAuth MCP URL is:

https://harness.zuey.me/mcp

Static-header clients use dashboard-managed API keys at the separate gateway:

https://api.harness.zuey.me/mcp

Architecture

MCP is the northbound control protocol; the harness is the execution runtime. The split keeps Internet-facing request handling away from Docker authority and keeps repository credentials out of long-lived executors.

flowchart LR
  OAuthClient["Managed OAuth client"] -->|"Access OAuth"| Nginx["nginx + loopback ingress"]
  StaticClient["Static-header client"] -->|"managed API key"| Gateway["Cloudflare Worker gateway"]
  Gateway -->|"Access service assertion + API key"| Nginx

  subgraph Control["Trusted control plane"]
    Nginx --> API["Stateless MCP API"]
    API -->|"private authenticated RPC"| Runner["Runner · policy · lifecycle"]
    Runner --> Store[("SQLite workspace state")]
    Runner --> Docker["Docker authority"]
    Runner --> Broker["GitHub App broker"]
  end

  subgraph Execution["TTL-bound execution plane"]
    Docker --> Executor["Non-root workspace executor"]
    Docker --> GitHelper["Ephemeral Git transfer helper"]
    Executor --> Repo[("Isolated repository clone")]
  end

  Broker -->|"short-lived token over stdin"| GitHelper
  GitHelper -->|"validated HTTPS origin"| GitHub["GitHub repository"]
  Executor -.->|"no control-plane credential"| GitHub

The source of truth for these boundaries is compose.yaml, apps/runner/src/workspace-service.ts, and the security model.

Coding workflow

sequenceDiagram
  participant C as AI client
  participant A as MCP API
  participant R as Runner
  participant E as Isolated executor
  participant G as Ephemeral Git helper
  participant H as GitHub

  C->>A: workspace_open(repositoryUrl, idempotencyKey)
  A->>R: authenticated operation
  R->>G: constrained clone + optional short-lived token
  G->>H: credential-free or GitHub App HTTPS clone
在 GitHub 查看完整 README

安装

npx skills add bestagentkits/cloud-harness-mcp --skill cloudharness
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "cloud-harness-local": { "command": "node", "args": [ "/path/to/cloud-harness-mcp/apps/api/dist/index.js", "--transport", "stdio", "--workspace", "/path/to/my-project" ] } } }