# ClusterControl MCP Server — /etc/default/cmon-mcp
# Edit this file then run: systemctl restart cmon-mcp

# CMON Controller connection (required)
CMON_ENDPOINT=https://127.0.0.1:9501
CMON_USERNAME=admin
CMON_PASSWORD=
# RSA key auth alternative (leave CMON_PASSWORD empty):
# CMON_KEY_FILE=/etc/clustercontrol/id_rsa

# HTTP listen address (required for systemd service mode)
# 127.0.0.1:3000 = local access only; 0.0.0.0:3000 = remote access
# Exposes two MCP transports on the same port:
#   /sse + /message  — SSE transport (Claude Desktop, Claude Code)
#   /mcp             — Streamable HTTP transport (Codex / OpenAI)
MCP_BIND_ADDRESS=127.0.0.1:3000

# Advertised base URL — set when clients connect via hostname or remote IP
# MCP_BASE_URL=http://your-cc-host:3000

# Bearer token required on all incoming connections (optional but recommended for remote access)
# Applies to both /sse and /mcp endpoints.
# Generate with: openssl rand -hex 32
# MCP_AUTH_TOKEN=
