# =============================================================================
# UPDATION MCP SERVER - ENVIRONMENT CONFIGURATION
# =============================================================================
# Copy this file to .env and fill in your actual values
# NEVER commit .env to version control!
# -----------------------------------------------------------------------------
# MCP Server Configuration
# -----------------------------------------------------------------------------
MCP_SERVER_NAME=Updation MCP Server
MCP_SERVER_HOST=0.0.0.0
MCP_SERVER_PORT=8050
MCP_TRANSPORT=streamable-http
MCP_PATH=/mcp
# -----------------------------------------------------------------------------
# LLM Provider Configuration (Choose your provider)
# -----------------------------------------------------------------------------
# Options: openai, anthropic, google, azure_openai
LLM_PROVIDER=openai
# OpenAI Configuration
OPENAI_API_KEY=your-openai-api-key-here
OPENAI_MODEL=gpt-4o
OPENAI_TEMPERATURE=0.0
OPENAI_MAX_TOKENS=4096
# Anthropic (Claude) Configuration
ANTHROPIC_API_KEY=your-anthropic-api-key-here
ANTHROPIC_MODEL=claude-3-5-sonnet-20241022
ANTHROPIC_MAX_TOKENS=4096
# Google (Gemini) Configuration
GOOGLE_API_KEY=your-google-api-key-here
GOOGLE_MODEL=gemini-2.0-flash-exp
GOOGLE_MAX_TOKENS=4096
# Azure OpenAI Configuration
AZURE_OPENAI_API_KEY=your-azure-key-here
AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com/
AZURE_OPENAI_DEPLOYMENT=your-deployment-name
AZURE_OPENAI_API_VERSION=2024-02-15-preview
# -----------------------------------------------------------------------------
# Laravel API Configuration (for Vendor Management)
# -----------------------------------------------------------------------------
LARAVEL_API_URL=https://your-domain.com
LARAVEL_API_TIMEOUT=30.0
# -----------------------------------------------------------------------------
# Backend API Configuration (Your Updation Laravel API)
# -----------------------------------------------------------------------------
UPDATION_API_BASE_URL=http://127.0.0.1:8000/api
UPDATION_API_TIMEOUT=15.0
UPDATION_API_USER_AGENT=Updation-MCP/1.0
# -----------------------------------------------------------------------------
# Redis Configuration (for distributed state)
# -----------------------------------------------------------------------------
REDIS_URL=redis://localhost:6379/0
REDIS_ENABLED=true
REDIS_TTL_CONVERSATIONS=1800
REDIS_TTL_CACHE=600
# -----------------------------------------------------------------------------
# Web Chat API Configuration
# -----------------------------------------------------------------------------
WEB_CHAT_HOST=0.0.0.0
WEB_CHAT_PORT=8002
WEB_CHAT_RELOAD=false
# CORS Origins (comma-separated)
CORS_ORIGINS=https://app.updation.com,https://staging.updation.com,http://localhost:3000
# -----------------------------------------------------------------------------
# Observability & Monitoring
# -----------------------------------------------------------------------------
# Logging
LOG_LEVEL=INFO
LOG_FORMAT=json
LOG_FILE=logs/updation_mcp.log
# Metrics (Prometheus)
METRICS_ENABLED=true
METRICS_PORT=9090
# Sentry Error Tracking (optional)
SENTRY_DSN=
SENTRY_ENVIRONMENT=development
# -----------------------------------------------------------------------------
# Security
# -----------------------------------------------------------------------------
# Rate Limiting
RATE_LIMIT_ENABLED=true
RATE_LIMIT_PER_MINUTE=60
RATE_LIMIT_PER_HOUR=1000
# JWT Secret (for internal auth if needed)
JWT_SECRET=your-secret-key-change-this-in-production
# -----------------------------------------------------------------------------
# Feature Flags
# -----------------------------------------------------------------------------
ENABLE_RAG=false
ENABLE_CACHING=true
ENABLE_CONVERSATION_MEMORY=true
ENABLE_SAMPLING=true
# -----------------------------------------------------------------------------
# MCP Sampling Configuration
# -----------------------------------------------------------------------------
SAMPLING_MAX_TOKENS=2000
SAMPLING_TEMPERATURE=0.0
SAMPLING_DEFAULT_FORMAT=markdown
# -----------------------------------------------------------------------------
# Development/Debug
# -----------------------------------------------------------------------------
DEBUG=false
ENVIRONMENT=development