Files
doris-mcp-server/env.example
2025-05-06 12:56:55 +08:00

62 lines
1.9 KiB
Plaintext

# Doris MCP Server Example Configuration File
# Copy this file to .env and modify it for your configuration
# Comment out unused configuration items with #
#===============================
# Database Configuration
#===============================
# Database connection information
DB_HOST=localhost
DB_PORT=9030
DB_WEB_PORT=8030
DB_USER=root
DB_PASSWORD=
# Default database
DB_DATABASE=test
# Multi-database support
# ENABLE_MULTI_DATABASE=false
# List of multi-database names (different databases using the same connection), JSON array format
# MULTI_DATABASE_NAMES=["test", "sales", "user", "product"]
#===============================
# Table Hierarchy Matching Configuration
#===============================
# Whether to enable table hierarchy priority matching
# ENABLE_TABLE_HIERARCHY_MATCHING=false
# Table hierarchy matching regular expressions, sorted by priority from high to low, JSON format
# TABLE_HIERARCHY_PATTERNS=["^ads_.*$","^dim_.*$","^dws_.*$","^dwd_.*$","^ods_.*$","^tmp_.*$","^stg_.*$","^.*$"]
# Table hierarchy matching timeout (seconds)
# TABLE_HIERARCHY_TIMEOUT=10
# List of excluded databases, these databases will not be scanned and metadata processed, JSON format
# EXCLUDED_DATABASES=["information_schema", "mysql", "performance_schema", "sys", "doris_metadata"]
#===============================
# Server Configuration
#===============================
SERVER_HOST=0.0.0.0
SERVER_PORT=3000
# LOG_LEVEL=INFO # Defined below
# Cache Configuration
CACHE_TTL=86400
#===============================
# Logging Configuration
#===============================
# Log directory path
LOG_DIR=logs
# Log file prefix
LOG_PREFIX=doris_mcp
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_LEVEL=INFO
# Log retention days
LOG_MAX_DAYS=30
# Whether to enable console log output (should be set to false when running as a service)
CONSOLE_LOGGING=false
# CORS Configuration
ALLOWED_ORIGINS=*