
Code Relay
io.github.zarcherlot由 GitHub 账号 zarcherlot 发布v3.1.0更新于 Oct 24, 2026
Branch-scoped runbooks, remote checkpoints, and auditable verification receipts.
概览
让编码代理在一台机器上发布按分支绑定的运行手册,并在另一台机器上执行验证,返回结构化回执。
- 可以做什么
- Code Relay 是一个本地 stdio MCP 服务器,用于跨机器的编码代理工作流。工具包括 bind_project、create_checkpoint_invite、join_checkpoint、watcher_status、stop_watcher、doctor、publish_runbook、status、fetch_receipt 和 analyze。开发主机发送绑定仓库与分支的运行手册;目标主机在真实环境中校验确切的源代码提交,并返回记录通过、失败或阻塞验证的回执,供下一轮修复迭代使用。
- 适用场景
- 适用于开发与验证位于不同机器或环境的场景,例如在 Windows 或 macOS 上开发、在 Linux 或类生产主机上验证。也适合特殊硬件,如 CUDA/GPU 机器或已连接的摄像头与传感器,以及无法在本地复现的真实集成,如支付回调、队列、数据库或浏览器。
- 运行要求
- 作为本地进程通过 stdio 运行,使用 npm 包 code-relay-mcp 通过 npx 启动。仅限桌面端,无网页可执行版本。未声明身份验证、环境变量或请求头。检查点执行路径使用 code-relay-checkpoint GitHub Actions 自托管运行器。
安装
在 SourceWeft 中
- 打开 控制台中的 Code Relay,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[图片] Code Relay
Build. Prove. Relay.
Code Relay lets your coding agent develop on one machine and prove the result on another.
Relay is an MCP-based coding-agent integration for cross-machine development and verification. AI on the Dev Host implements the request; the Target Host runs the real validation; a structured receipt comes back to guide the next repair iteration. It works with Codex, Claude Code, Cursor, VS Code, and other MCP-capable coding agents.
When Relay is useful
- Different environments — develop on Windows or macOS, verify on Linux, a private network, or a production-like host.
- Special hardware — send model code to a CUDA/GPU machine, or verify a camera, serial device, or sensor where it is connected.
- Real integrations — exercise payment callbacks, queues, databases, browsers, or internal services that cannot be reproduced locally.
- AI-driven iteration — return concrete expected/actual results so the coding agent can repair, republish, and retry.
What Relay provides
- Branch-scoped project binding and short-lived join links.
- Exact source-commit verification in an isolated worktree.
- Checkpoint execution through a
code-relay-checkpointGitHub Actions self-hosted runner. - Safe, allowlisted validation commands with bounded output and timeouts.
- Structured
receipt.jsonand human-readable receipts for passed, failed, and blocked runs.
Quick start
AI client installation
Let your coding agent read and follow the instructions:
npm fallback
Replace codex with claude-code, cursor, vscode, or generic as needed.
MCP server details
Code Relay is a local MCP server that communicates over stdio. The npm package starts the server with:
The server implements the MCP JSON-RPC surface directly in Go (without a
third-party MCP SDK). It supports initialize, ping, tools/list, and
tools/call, and exposes these tools:
The implementation and transport loop are in internal/relay/mcp.go.
How it works
the Dev Host sends a repository- and branch-bound runbook through Relay; the Target Host checks the exact source commit in its real environment and returns a Receipt recording the Checkpoint result.
Every runbook is bound to a repository, branch, and source commit. The Target Host acts as the Checkpoint, and the resulting receipt records passed, failed, or blocked verification for the next iteration.
Documentation
- Chinese README
- User guide
- AI-client installation guide
- Local desktop install runbook
- Deployment and runbook
- Security
- Contributing
License
Code Relay is released under the MIT License.
来源:README.md,提交 45bc618
工具
0版本历史
1- v3.1.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分