.env.example•5.12 kB
# Simplified MCP Server Configuration
# Copy this file to .env and fill in your actual values
# =============================================================================
# REQUIRED CONFIGURATION
# =============================================================================
# Your Simplified API token (required)
# Get this from your Simplified account settings
SIMPLIFIED_API_TOKEN=sk_live_your_token_here
# =============================================================================
# OPTIONAL CONFIGURATION
# =============================================================================
# Simplified API base URL
# Default: https://api.simplified.com
# Only change this if you're using a different Simplified instance
SIMPLIFIED_API_BASE_URL=https://api.simplified.com
# Logging level
# Options: debug, info, warn, error
# Default: info
# Use 'debug' for detailed troubleshooting
LOG_LEVEL=info
# Request timeout in milliseconds
# Default: 30000 (30 seconds)
# Increase if you're experiencing timeout issues
REQUEST_TIMEOUT=30000
# Number of retry attempts for failed requests
# Default: 3
# Set to 0 to disable retries
RETRY_ATTEMPTS=3
# Delay between retry attempts in milliseconds
# Default: 1000 (1 second)
# Increase for rate-limited APIs
RETRY_DELAY=1000
# =============================================================================
# WORKFLOW CONFIGURATION
# =============================================================================
# Enable dynamic workflow tools
# Options: true, false
# Default: false
# Set to true to enable automatic discovery and registration of workflow-based tools
WORKFLOWS_ENABLED=false
# Workflow discovery refresh interval in milliseconds
# Default: 0 (disabled)
# Set to a positive value to enable periodic workflow discovery refresh
# Example: 300000 (5 minutes)
WORKFLOW_DISCOVERY_INTERVAL=0
# Workflow execution timeout in milliseconds
# Default: 300000 (5 minutes)
# Maximum time to wait for workflow execution to complete
WORKFLOW_EXECUTION_TIMEOUT=300000
# Maximum number of concurrent workflow executions
# Default: 10
# Limits resource usage by preventing too many simultaneous executions
WORKFLOW_MAX_CONCURRENT_EXECUTIONS=10
# Workflow filter patterns (comma-separated)
# Default: empty (no filtering)
# Only workflows matching these patterns will be exposed as tools
# Example: "data-*,report-*" to only include workflows starting with "data-" or "report-"
WORKFLOW_FILTER_PATTERNS=
# Workflow status check interval in milliseconds
# Default: 5000 (5 seconds)
# How often to poll for workflow execution status updates
# Minimum recommended: 1000ms to avoid excessive API calls
WORKFLOW_STATUS_CHECK_INTERVAL=5000
# Workflow retry attempts
# Default: 3
# Number of retry attempts for failed workflow operations (discovery, execution)
WORKFLOW_RETRY_ATTEMPTS=3
# =============================================================================
# DEVELOPMENT CONFIGURATION
# =============================================================================
# Uncomment these for development/testing
# Enable debug logging for development
# LOG_LEVEL=debug
# Shorter timeout for faster development feedback
# REQUEST_TIMEOUT=10000
# Fewer retries for faster failure feedback
# RETRY_ATTEMPTS=1
# Enable workflows for development testing
# WORKFLOWS_ENABLED=true
# More frequent workflow discovery for development
# WORKFLOW_DISCOVERY_INTERVAL=60000
# Shorter workflow timeout for faster feedback
# WORKFLOW_EXECUTION_TIMEOUT=120000
# More frequent status checks for development
# WORKFLOW_STATUS_CHECK_INTERVAL=2000
# =============================================================================
# PRODUCTION CONFIGURATION EXAMPLES
# =============================================================================
# For production environments, consider these settings:
# More conservative timeout for production
# REQUEST_TIMEOUT=60000
# More retry attempts for production reliability
# RETRY_ATTEMPTS=5
# Longer delay between retries to respect rate limits
# RETRY_DELAY=2000
# Warning level logging for production
# LOG_LEVEL=warn
# Enable workflows in production
# WORKFLOWS_ENABLED=true
# Less frequent workflow discovery for production stability
# WORKFLOW_DISCOVERY_INTERVAL=600000
# Longer workflow timeout for production workloads
# WORKFLOW_EXECUTION_TIMEOUT=600000
# Higher concurrency limit for production
# WORKFLOW_MAX_CONCURRENT_EXECUTIONS=20
# Less frequent status checks to reduce API load
# WORKFLOW_STATUS_CHECK_INTERVAL=10000
# More retry attempts for production reliability
# WORKFLOW_RETRY_ATTEMPTS=5
# =============================================================================
# NOTES
# =============================================================================
# 1. Never commit your actual API token to version control
# 2. Use environment-specific .env files (.env.development, .env.production)
# 3. Consider using a secrets management system for production deployments
# 4. The server will validate all configuration on startup
# 5. Invalid configuration will prevent the server from starting