# Maeris MCP Server - Environment Variables
# Copy this file to .env and fill in your values.

# =============================================================================
# FRONTEND & BACKEND URLs
# =============================================================================

# Maeris App (Frontend) - Where the browser opens for authentication.
# The app must implement two routes used by `maeris-mcp login`:
#   GET /auth/login        - initiates Firebase auth (receives client_id, redirect_uri, state)
#   GET /auth/callback     - receives Firebase redirect, stores token keyed by state
#   GET /api/auth/poll     - polled by MCP; returns { token, token_type, ready } or { error } or 404 while pending
# Dev: https://light-dev.up.railway.app
MAERIS_APP_URL=https://light-dev.up.railway.app

# Maeris API (Backend) - Where API calls are made
# Dev: https://mirabilis-dev.up.railway.app
MAERIS_API_URL=https://mirabilis-dev.up.railway.app

# =============================================================================
# SERVER CONFIGURATION
# =============================================================================

# HTTP port (Railway sets this automatically, no need to configure)
# PORT=8080

# Log level for server output (DEBUG, INFO, WARNING, ERROR)
MAERIS_LOG_LEVEL=DEBUG

# =============================================================================
# API ENDPOINTS
# =============================================================================

# Security scan API paths (override if your backend differs)
MAERIS_SECURITY_SCAN_PATH=/security/scans
MAERIS_SECURITY_FINDINGS_PATH=/security/findings

# Directory for storing security scan reports (optional, defaults to ./security-reports)
# MAERIS_REPORTS_DIR=/path/to/custom/reports/directory
