# Context Engineering MCP Platform Environment Configuration # ======================================== # Required Configuration # ======================================== # Google Gemini API Key (Required) # Get your free API key at: https://makersuite.google.com/app/apikey GEMINI_API_KEY=your_gemini_api_key_here # ======================================== # Optional Configuration # ======================================== # Server Configuration UVICORN_HOST=0.0.0.0 UVICORN_PORT_GUIDES=8888 UVICORN_PORT_CONTEXT=9003 UVICORN_PORT_WORKFLOW=9002 # Logging Configuration LOG_LEVEL=info LOG_FORMAT=%(asctime)s - %(name)s - %(levelname)s - %(message)s # MCP Server Configuration (for development) CONTEXT_API_URL=http://localhost:9003 AI_GUIDES_API_URL=http://localhost:8888 WORKFLOW_API_URL=http://localhost:9002 # Context Engineering Defaults DEFAULT_MAX_TOKENS=8192 DEFAULT_OPTIMIZATION_TIMEOUT=300 DEFAULT_TEMPLATE_CACHE_TTL=3600 # ======================================== # Development/Production Toggles # ======================================== # Environment mode (development/production) NODE_ENV=development # Enable debug mode DEBUG=false # Enable development features DEVELOPMENT_MODE=true # ======================================== # Security Configuration # ======================================== # CORS settings (comma-separated origins) CORS_ORIGINS=http://localhost:3000,http://localhost:9003,http://localhost:8888,http://localhost:9002 # API rate limiting (requests per minute) RATE_LIMIT_RPM=60 # Session timeout (seconds) SESSION_TIMEOUT=3600 # JWT Secret for authentication (generate a strong secret in production) JWT_SECRET=your_jwt_secret_here_min_32_chars # API Key encryption salt (generate a random salt) ENCRYPTION_SALT=your_encryption_salt_here # HTTPS configuration (for production) ENABLE_HTTPS=false SSL_CERT_PATH=/path/to/cert.pem SSL_KEY_PATH=/path/to/key.pem # Request size limits (in MB) MAX_REQUEST_SIZE=50 MAX_FILE_UPLOAD_SIZE=10 # Database encryption (if using persistent storage) DB_ENCRYPTION_KEY=your_db_encryption_key_here