.env.example•3.1 kB
# MCP Maximo Server Configuration Example
# Copy this file to .env and fill in your values
# ============================================================
# Application Settings
# ============================================================
APP_NAME=MCP Maximo Server
APP_VERSION=1.0.0
ENVIRONMENT=production # development, staging, production
DEBUG=false
# ============================================================
# Server Settings
# ============================================================
HOST=0.0.0.0
PORT=8000
# ============================================================
# MCP Server Settings
# ============================================================
MCP_SERVER_NAME=maximo-integration-server
MCP_SERVER_VERSION=1.0.0
# ============================================================
# Authentication
# ============================================================
# API key for Dify to authenticate with MCP server
# Generate a secure random key: openssl rand -hex 32
MCP_API_KEY=your-secure-mcp-api-key-here
# ============================================================
# Maximo API Settings
# ============================================================
# Base URL of your Maximo instance
MAXIMO_API_URL=https://maximo.yourcompany.com/maximo
# Maximo API key for authentication
# Generate in Maximo: Go to Users > Select User > API Keys
MAXIMO_API_KEY=your-maximo-api-key-here
# Request timeout in seconds
MAXIMO_TIMEOUT=30
# Maximum retry attempts for failed requests
MAXIMO_MAX_RETRIES=3
# ============================================================
# Redis Cache Settings
# ============================================================
REDIS_HOST=localhost # Use 'redis' when running with docker-compose
REDIS_PORT=6379
REDIS_DB=0
REDIS_PASSWORD=
REDIS_ENABLED=true
# ============================================================
# Cache TTL Settings (in seconds)
# ============================================================
CACHE_TTL_ASSET=600 # 10 minutes
CACHE_TTL_WORKORDER=300 # 5 minutes
CACHE_TTL_INVENTORY=600 # 10 minutes
CACHE_TTL_SEARCH=300 # 5 minutes
# ============================================================
# Rate Limiting Settings
# ============================================================
RATE_LIMIT_ENABLED=true
RATE_LIMIT_PER_MINUTE=100 # Default rate limit
RATE_LIMIT_SEARCH_PER_MINUTE=50 # Search operations
RATE_LIMIT_CREATE_PER_MINUTE=20 # Create operations
# ============================================================
# Logging Settings
# ============================================================
LOG_LEVEL=INFO # DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_FORMAT=json # json or text
# ============================================================
# CORS Settings
# ============================================================
CORS_ENABLED=true
CORS_ORIGINS=* # Comma-separated list of allowed origins, or * for all
# ============================================================
# Health Check
# ============================================================
HEALTH_CHECK_ENABLED=true