.env.exampleโข1.52 kB
# Electron MCP Server Environment Configuration
# Copy this file to .env and configure the values for your environment
# =============================================================================
# LOGGING CONFIGURATION
# =============================================================================
# Set the log level for the MCP server (used in src/utils/logger.ts)
# Options: DEBUG, INFO, WARN, ERROR
# Default: INFO if not set
MCP_LOG_LEVEL=INFO
# =============================================================================
# SECURITY CONFIGURATION (REQUIRED)
# =============================================================================
# Security level for the MCP server (used in src/security/config.ts)
# Options: strict, balanced, permissive, development
# Default: balanced if not set
# - strict: Maximum security - blocks most function calls
# - balanced: Default - allows safe UI interactions
# - permissive: Minimal restrictions - allows more operations
# - development: Least restrictive - for development/testing only
SECURITY_LEVEL=balanced
# Encryption key for screenshot data (OPTIONAL - fallback available)
# If not set, a temporary key will be generated for each session
# For production use, set this to a secure 32-byte hex string
# Must be at least 32 characters long for security
# Generate a secure key with: openssl rand -hex 32
# WARNING: Without a persistent key, encrypted screenshots cannot be decrypted after restart
SCREENSHOT_ENCRYPTION_KEY=your-32-byte-hex-string-here