# MCP Server ROI Environment Configuration
# Copy this file to .env and fill in your actual values
# =============================================================================
# REQUIRED: Supabase Configuration
# =============================================================================
# Your Supabase project URL (format: https://xxxxxxxxxxxxx.supabase.co)
SUPABASE_URL=your_supabase_project_url
# Your Supabase anonymous key (found in project settings > API)
SUPABASE_ANON_KEY=your_supabase_anon_key
# =============================================================================
# OPTIONAL: Advanced Supabase Configuration
# =============================================================================
# Service role key for admin operations (use with caution - has full access)
# Only needed for administrative tasks
SUPABASE_SERVICE_KEY=your_supabase_service_key
# =============================================================================
# Server Configuration
# =============================================================================
# Environment: development, production, or test
NODE_ENV=development
# Log level: debug, info, warn, error
LOG_LEVEL=info
# =============================================================================
# Monte Carlo Simulation Settings
# =============================================================================
# Maximum number of iterations for Monte Carlo simulations (default: 100000)
MAX_SIMULATION_ITERATIONS=100000
# Number of worker threads for parallel processing (default: 4)
# Set based on your CPU cores
WORKER_POOL_SIZE=4
# Timeout for simulation runs in milliseconds (default: 30000 = 30 seconds)
SIMULATION_TIMEOUT=30000
# =============================================================================
# External API Keys (OPTIONAL - Enhanced Features)
# =============================================================================
# Perplexity API key for real-time industry benchmarks
# Get your API key from: https://www.perplexity.ai/settings/api
# Required for: Real-time benchmark data in predict_roi and compare_projects tools
PERPLEXITY_API_KEY=your_perplexity_api_key
# Financial Modeling Prep API key for financial market data
# Get your API key from: https://site.financialmodelingprep.com/developer/docs
# Required for: Industry financial benchmarks and sector performance data
FMP_API_KEY=your_fmp_api_key
# =============================================================================
# Feature Flags
# =============================================================================
# Enable/disable Perplexity Sonar benchmark integration
ENABLE_SONAR_BENCHMARKS=true
# Enable/disable Financial Modeling Prep integration
ENABLE_FMP_BENCHMARKS=true
# Enable/disable ML-powered insights and predictions
ENABLE_ML_INSIGHTS=true
# =============================================================================
# Cache Configuration
# =============================================================================
# Cache time-to-live in minutes for benchmark data (default: 5)
CACHE_TTL_MINUTES=5
# Enable/disable caching (recommended: true for production)
ENABLE_CACHING=true
# =============================================================================
# Default Values for Calculations
# =============================================================================
# Default hourly rate for cost calculations in USD (default: 50)
DEFAULT_HOURLY_RATE=50
# Default annual discount rate for NPV calculations (default: 0.1 = 10%)
DEFAULT_DISCOUNT_RATE=0.1
# Default confidence level for predictions (default: 0.95 = 95%)
DEFAULT_CONFIDENCE_LEVEL=0.95
# =============================================================================
# Timeout Settings
# =============================================================================
# Default timeout for database transactions in milliseconds (default: 30000)
DEFAULT_TRANSACTION_TIMEOUT=30000
# Timeout for external API requests in milliseconds (default: 30000)
API_REQUEST_TIMEOUT=30000
# =============================================================================
# Worker Thread Configuration
# =============================================================================
# Maximum memory per worker thread in MB (default: 512)
MAX_WORKER_MEMORY_MB=512
# Idle timeout for worker threads in milliseconds (default: 60000 = 1 minute)
WORKER_IDLE_TIMEOUT_MS=60000