Skip to main content

Environment Variables

All MCP Agent Bridge servers are configured through environment variables. No config files are required.

Claude

VariableDefaultDescription
CLAUDE_REVIEW_MODELopusClaude model to use for reviews
CLAUDE_REVIEW_MAX_TURNS(unset)Maximum agentic turns per review
CLAUDE_REVIEW_CWD(unset)Working directory for the Claude subprocess
CLAUDE_REVIEW_ALLOWED_TOOLSRead,Grep,Glob,LSComma-separated tool allowlist
CLAUDE_REVIEW_PERMISSION_MODEdontAskPermission handling mode
CLAUDE_REVIEW_TIMEOUT_MS300000Process timeout in milliseconds (5 min)
CLAUDE_ALLOWED_CWD_ROOTS$PWDColon-separated list of allowed working directories
CLAUDE_MCP_HTTP_PORT8940HTTP proxy port
CLAUDE_MCP_STREAM_ENDPOINT/mcpStreamable HTTP endpoint path

Codex

VariableDefaultDescription
CODEX_REVIEW_MODEL(unset)Model override for Codex
CODEX_REVIEW_AGENT_PATH~/.codex/agents/code-reviewer.tomlPath to agent TOML config
CODEX_MCP_HTTP_PORT8941HTTP proxy port
CODEX_MCP_STREAM_ENDPOINT/mcpStreamable HTTP endpoint path

Copilot

VariableDefaultDescription
COPILOT_REVIEW_MODEL(unset)Model override for Copilot
COPILOT_MCP_HTTP_PORT8945HTTP proxy port
COPILOT_MCP_STREAM_ENDPOINT/mcpStreamable HTTP endpoint path

Setting Variables

macOS (LaunchAgent env files)

mkdir -p ~/.local/share/launch-agent-env
echo "CLAUDE_REVIEW_MODEL=sonnet" > ~/.local/share/launch-agent-env/claude-mcp-http.env

Windows

.\examples\windows\env-setup.ps1 -ClaudeModel sonnet

Linux (systemd)

Add Environment= lines to your service file:

[Service]
Environment=CLAUDE_REVIEW_MODEL=sonnet
Environment=CLAUDE_REVIEW_TIMEOUT_MS=600000

Direct (any platform)

CLAUDE_REVIEW_MODEL=sonnet claude-mcp-server