.env.example•4.52 kB
# MCP Agent Social Media Server Configuration Template
# Copy this file to .env and update the values
# ============================================================================
# REQUIRED CONFIGURATION
# ============================================================================
# Team namespace for posts (required)
# This scopes all posts to your team
SOCIALMEDIA_TEAM_ID=my-team
# External API configuration (required)
# Base URL for the social media API
SOCIALMEDIA_API_BASE_URL=https://api.social.example.com
# API authentication key (required)
# Keep this secret! Never commit to version control
SOCIALMEDIA_API_KEY=your-secret-api-key-here
# ============================================================================
# OPTIONAL CONFIGURATION
# ============================================================================
# Logging Configuration
# Options: ERROR, WARN, INFO, DEBUG
LOG_LEVEL=INFO
# Node.js Environment
# Options: development, production, test
NODE_ENV=development
# Server Configuration (if running as HTTP server)
PORT=3000
# ============================================================================
# API CLIENT SETTINGS
# ============================================================================
# Request timeout in milliseconds
API_TIMEOUT=30000
# Maximum number of retries for failed requests
MAX_RETRIES=3
# Connection pool settings
API_MAX_SOCKETS=100
API_KEEP_ALIVE=true
API_KEEP_ALIVE_TIMEOUT=60000
# ============================================================================
# SESSION MANAGEMENT
# ============================================================================
# Session cleanup interval in milliseconds (1 hour)
SESSION_CLEANUP_INTERVAL=3600000
# Maximum session age in milliseconds (24 hours)
SESSION_MAX_AGE=86400000
# ============================================================================
# PERFORMANCE TUNING
# ============================================================================
# Enable caching
ENABLE_CACHE=false
# Cache time-to-live in milliseconds (5 minutes)
CACHE_TTL=300000
# Maximum number of cached items
CACHE_MAX_SIZE=1000
# Memory monitoring
ENABLE_MEMORY_MONITORING=false
MEMORY_WARNING_THRESHOLD=1024
# ============================================================================
# DEVELOPMENT SETTINGS
# ============================================================================
# Enable debug output (development only)
# DEBUG=mcp:*
# Disable SSL verification (development only - NEVER use in production)
# NODE_TLS_REJECT_UNAUTHORIZED=0
# ============================================================================
# PRODUCTION SETTINGS
# ============================================================================
# Node.js memory settings (production)
# NODE_OPTIONS=--max-old-space-size=4096
# Enable production optimizations
# NODE_ENV=production
# LOG_LEVEL=WARN
# ============================================================================
# MONITORING & OBSERVABILITY
# ============================================================================
# Metrics collection
ENABLE_METRICS=true
# Health check settings
HEALTH_CHECK_INTERVAL=30000
HEALTH_CHECK_TIMEOUT=5000
# ============================================================================
# DOCKER COMPOSE SETTINGS
# ============================================================================
# Redis configuration (if using distributed sessions)
# REDIS_URL=redis://localhost:6379
# REDIS_PASSWORD=your-redis-password
# Prometheus settings (if using monitoring)
# PROMETHEUS_PORT=9090
# Grafana settings (if using dashboards)
# GRAFANA_PASSWORD=your-grafana-password
# ============================================================================
# EXAMPLE CONFIGURATIONS
# ============================================================================
# Example for development environment:
# SOCIALMEDIA_TEAM_ID=dev-team
# SOCIALMEDIA_API_BASE_URL=http://localhost:8080
# SOCIALMEDIA_API_KEY=dev-key-123456
# LOG_LEVEL=DEBUG
# NODE_ENV=development
# Example for staging environment:
# SOCIALMEDIA_TEAM_ID=staging-team
# SOCIALMEDIA_API_BASE_URL=https://api-staging.social.example.com
# SOCIALMEDIA_API_KEY=staging-key-abcdef
# LOG_LEVEL=INFO
# NODE_ENV=production
# Example for production environment:
# SOCIALMEDIA_TEAM_ID=production-team
# SOCIALMEDIA_API_BASE_URL=https://api.social.example.com
# SOCIALMEDIA_API_KEY=prod-key-secret
# LOG_LEVEL=WARN
# NODE_ENV=production
# API_TIMEOUT=60000
# MAX_RETRIES=5