# Portainer Core MCP Server Configuration # ============================================================================= # REQUIRED CONFIGURATION # ============================================================================= # Portainer instance URL (required) # Examples: # - https://portainer.example.com # - https://portainer.company.com:9443 # - http://localhost:9000 PORTAINER_URL=https://your-portainer-instance.com # Portainer API key for authentication (required) # Generate this from Portainer UI: User settings > API tokens # Example: ptr_XYZ123abc456def789 PORTAINER_API_KEY=your-api-key-here # ============================================================================= # OPTIONAL CONFIGURATION # ============================================================================= # HTTP client settings HTTP_TIMEOUT=30 MAX_RETRIES=3 RETRY_DELAY=1.0 # Circuit breaker settings CIRCUIT_BREAKER_FAILURE_THRESHOLD=5 CIRCUIT_BREAKER_RECOVERY_TIMEOUT=60 # Token management settings TOKEN_CACHE_TTL=3600 TOKEN_REFRESH_THRESHOLD=300 # Logging settings LOG_LEVEL=INFO LOG_FORMAT=json # Development settings DEBUG=false # MCP mode - disables stdout logging MCP_MODE=true