Skip to main content

Connect an MCP Client

OpRelay works with any MCP-compatible client. No SDK — just point, authenticate, and tools auto-discover.

Supported Clients

ClientConfig LocationNotes
Claude Code~/.claude/mcp.jsonFirst-class support, recommended
CursorSettings → MCP ServersAdd URL + auth header
Codex CLI~/.codex/mcp.jsonOptimized for agent lane
WindsurfSettings → MCPURL-based connection
Custom agentsYour MCP client configAny spec-compliant client

Configuration

All clients use the same connection format:

{
"mcpServers": {
"oprelay": {
"url": "https://your-host/mcp",
"headers": {
"Authorization": "Bearer your-api-token"
}
}
}
}

Generating API tokens

From the OpRelay dashboard:

  1. Navigate to Settings → API Keys
  2. Click Generate Token
  3. Set scope (read-only, read-write, or admin)
  4. Copy the token — it's only shown once

Verifying the connection

Once connected, your agent should see 30+ OpRelay tools. Test with:

List all projects in OpRelay

This calls list_projects and returns your project keys.

Multiple agents

Each agent gets its own token and registers independently. OpRelay tracks agent presence and can assign work based on agent capabilities and lane configuration.