Cline

Add human oversight to Cline, the autonomous coding agent for VS Code.

Prerequisites

  • VS Code with Cline extension installed
  • A RelayRail account with an API key
  • Node.js 18+ installed

Configuration

Add RelayRail to Cline's MCP server configuration in VS Code settings:

  1. Open VS Code Settings (Cmd/Ctrl + ,)
  2. Search for "Cline MCP"
  3. Add the RelayRail server configuration
settings.json
{
  "cline.mcpServers": {
    "relayrail": {
      "command": "npx",
      "args": ["@relayrail/server", "start"],
      "env": {
        "RELAYRAIL_API_KEY": "rr_your_api_key_here"
      }
    }
  }
}

Why Use RelayRail with Cline?

Cline is an autonomous agent that can make significant changes to your codebase. RelayRail adds a safety layer:

  • Approval gates - Require human approval before critical changes
  • Remote monitoring - Get SMS updates on long-running tasks
  • Emergency stop - Send a command to halt operations

Example: Safe Refactoring

Tell Cline to be cautious:

"Refactor the database layer to use the new ORM. Use RelayRail to ask for my approval before modifying any file, and notify me of progress every 5 changes."

Best Practices

  • 1.Always require approval for production-related changes
  • 2.Set up notifications for error handling
  • 3.Use the web response page for complex decisions