Code Relay

io.github.zarcherlot由 GitHub 帳號 zarcherlot 發布v3.1.0更新於 Oct 24, 2026

Branch-scoped runbooks, remote checkpoints, and auditable verification receipts.

概覽

AI 產生的概覽

讓編碼代理在一台機器上發布依分支綁定的執行手冊,並在另一台機器上執行驗證,回傳結構化回執。

可以做什麼
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 中

  1. 開啟 儀表板中的 Code Relay,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[圖片] Code Relay

English · Chinese

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-checkpoint GitHub Actions self-hosted runner.
  • Safe, allowlisted validation commands with bounded output and timeouts.
  • Structured receipt.json and human-readable receipts for passed, failed, and blocked runs.

Quick start

AI client installation

Let your coding agent read and follow the instructions:

text
https://raw.githubusercontent.com/zarcherlot/code-relay/main/install.md

npm fallback

sh
npx -y code-relay-mcp@latest install --client codex

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:

ToolPurpose
bind_projectBind a repository and branch to a relay role.
create_checkpoint_inviteCreate a short-lived checkpoint join link.
join_checkpointJoin a branch-scoped checkpoint subscription.
watcher_statusRead local watcher state.
stop_watcherStop the local watcher.
doctorRun non-mutating local health checks.
publish_runbookValidate and publish a runbook.
statusRead runbook and receipt status.
fetch_receiptLoad and validate a runbook receipt.
analyzeAnalyze a receipt and determine the next state.

The implementation and transport loop are in internal/relay/mcp.go.

How it works

[Dev Host sends a runbook through Code Relay to a Target Host; the Target Host runs a checkpoint and returns a receipt with evidence]

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

License

Code Relay is released under the MIT License.

來源:README.md,提交 45bc618

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v3.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分