# spark-mcp-go environment configuration # Copy to .env and edit the *REQUIRED* values. # HTTP listen address (default: :8080) LISTEN_ADDR=:8080 # Root directory for SQLite, uploads, and logs (default: ./data) DATA_DIR=./data # *REQUIRED* Comma-separated admin bearer tokens for /admin/* endpoints ADMIN_TOKENS=change-me-admin-token-1,change-me-admin-token-2 # *REQUIRED* Agent bearer token for /mcp endpoints AGENT_TOKEN=change-me-agent-token # Timeout for fetch_url and RM tool HTTP calls (default: 30s) HTTP_CLIENT_TIMEOUT=30s # Maximum HTTP response bytes before truncation (default: 1048576) MAX_RESPONSE_BYTES=1048576 # Timeout for spark-submit process execution (default: 60s) SPARK_SUBMIT_TIMEOUT=60s # How long uploaded files are kept. Swept on server startup. Use Go duration syntax (e.g. 24h, 168h, 720h). UPLOAD_TTL=168h # Log directory (default: ./data/logs) LOG_DIR=./data/logs # Log level: debug, info, warn, error (default: info) LOG_LEVEL=info # Log format: text (terminal) or json (log file; default: text) LOG_FORMAT=text # Gin mode: debug, release, test (default: release) GIN_MODE=release # Analyzer heuristic thresholds (defaults shown) ANALYZER_DATA_SKEW_RATIO=3.0 ANALYZER_GC_PRESSURE_RATIO=0.1 ANALYZER_BOTTLENECK_SHUFFLE_GB=50