Skip to content
MCP ThesaurusMCP Thesaurus

Code Relay

CommunityIncomplete39/100Claim

npm code-relay-mcpstdioMITupdated 7d ago

Code Relay lets your coding agent develop on one machine and prove the result on another.

SourceWebsite

What can you do with Code 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. It is optimized for the ChatGPT/Codex plugin surface, while the same MCP server also works with Claude Code, Cursor, VS Code, and other MCP-capable coding agents. AI on the Dev Host implements the request; the Target Host runs the real validation; a structured receipt comes back and can trigger the next repair iteration.

How it works

Describe the change in your coding agent
        ↓
Dev Host β†’ Relay runbook β†’ Target Host
        ↓                 ↓
     develop          checkpoint in the real environment
        ←────── Receipt / evidence ──────

Relay binds every runbook to a repository, branch, and source commit. The Target Host acts as the checkpoint, verifies the exact code you intended to ship, and returns an auditable receipt for passed, failed, or blocked results.

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.

Quick start

  1. Install Code Relay from the ChatGPT/Codex plugin UI, or configure the MCP server in another coding agent.

  2. On the Dev Host, open a project and say:

    Enable Code Relay for the current project and branch, then generate a Target Host join link.

  3. On the Target Host, install the same plugin or MCP server and paste the link into the coding agent.

  4. The Target Host joins the approved repository and branch as its checkpoint, executes runbooks on the code-relay-checkpoint GitHub Actions runner, and publishes a receipt.

Users do not need to install Python, Go, or a separate Relay runtime for the packaged plugin. See USER_GUIDE.md for the complete journey and recovery steps.

Install through npm (any MCP client)

Code Relay is also distributed as code-relay-mcp. Any MCP-capable coding agent can follow install.md, or you can preview and apply the client-specific installer directly:

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

For a persistent command, install it globally first:

npm install --global code-relay-mcp
code-relay-mcp install --client codex --yes

Replace codex with claude-code, cursor, vscode, or generic as needed. Node.js 18+ is required. The npm launcher downloads the matching native release binary on first use, verifies it against SHA256SUMS, and caches it locally; Go is not required. The npm distribution exposes the MCP tools. The ChatGPT/Codex plugin package additionally supplies the $code-relay:relay and $code-relay:checkpoint Skills; other clients can use the same MCP tools directly.

Install from this repository (local desktop)

The repository includes a repo-scoped marketplace at .agents/plugins/marketplace.json. To install from a source checkout, build the platform package once from the repository root:

pwsh -NoProfile -ExecutionPolicy Bypass `
  -File .\scripts\package-plugin.ps1 `
  -Output .\dist\plugin

This creates the native agent and packaged .mcp.json under dist/plugin. Go is needed only for this source build; the installed package does not need Go at runtime. If dist/plugin was supplied as a prebuilt package, skip the command.

Restart the ChatGPT desktop app, open Plugins Directory, choose Code Relay (Local) β†’ Code Relay β†’ Install, and start a new chat to test it. Keep the default dist/plugin output so the checked-in marketplace path remains valid. No manual marketplace JSON or codex plugin marketplace add command is required. For a fresh machine, see the local desktop install runbook for cloning the repository and installing Git, PowerShell 7, and Go 1.26+ first.

Core capabilities

  • 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 plus a human-readable receipt for pass, fail, and blocked runs.

Development

The repository targets Go 1.26+:

go test ./...
go vet ./...
go build ./cmd/code-relay-agent
npm ci
npm test
npm run verify
./scripts/validate-contracts.ps1
./scripts/smoke-e2e.ps1

Build the bundled agent for the current platform with ./scripts/build-agent.ps1. The CLI is a developer/CI fallback; normal users install through their coding agent's MCP/plugin mechanism.

Documentation

License

Code Relay is released under the MIT License.