# Code Relay MCP server

> Enables coding agents to develop on one machine and verify results on a different target host through structured runbooks and receipts.

- Repository: https://github.com/zarcherlot/code-relay
- Page: https://hostedmcp.org/servers/zarcherlot/code-relay
- Transport: stdio
- Stars: 0
- License: MIT
- Latest version: 3.1.0

## Install

### Claude Code

```sh
claude mcp add code-relay -- npx -y code-relay-mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "code-relay": {
      "command": "npx",
      "args": [
        "-y",
        "code-relay-mcp"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "code-relay": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "code-relay-mcp"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"code-relay","type":"stdio","command":"npx","args":["-y","code-relay-mcp"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "code-relay": {
      "command": "npx",
      "args": [
        "-y",
        "code-relay-mcp"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add code-relay -- npx -y code-relay-mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.code-relay]
command = "npx"
args = ["-y", "code-relay-mcp"]
```

### Gemini CLI

```sh
gemini mcp add -s user code-relay npx -- -y code-relay-mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "code-relay": {
      "command": "npx",
      "args": [
        "-y",
        "code-relay-mcp"
      ]
    }
  }
}
```

## FAQ

### What coding agents are compatible with Code Relay?

It works with Codex, Claude Code, Cursor, VS Code, and other MCP-capable coding agents.

### What is the purpose of the Target Host in the Relay workflow?

The Target Host acts as the Checkpoint, checking the exact source commit in its real environment and returning a Receipt recording the result.
