# =========================
# MCP server metadata
# =========================
MCP_SERVER_NAME=smartflow-mcp-server
MCP_SERVER_VERSION=0.1.0
MCP_PROTOCOL_VERSION=2024-11-05
MCP_DEFAULT_CALLER=codex

# =========================
# Governance & safety
# =========================
MCP_TOOL_TIMEOUT_MS=5000
MCP_RATE_LIMIT_RPS=5
MCP_RATE_LIMIT_BURST=10
MCP_MAX_RESULT_ROWS=500
MCP_ENFORCE_WHITELIST=false
MCP_AUDIT_LOG_PATH=logs/audit.log

# Redis scan/value caps
MCP_REDIS_SCAN_MAX_KEYS=200
MCP_REDIS_SCAN_MAX_COUNT=200
MCP_REDIS_VALUE_MAX_ITEMS=100
MCP_REDIS_MAX_STRING_BYTES=4096

# =========================
# MySQL
# =========================
MYSQL_HOST=127.0.0.1
MYSQL_PORT=3306
MYSQL_USER=readonly_user
MYSQL_PASSWORD=replace_me
MYSQL_DATABASE=smartflow
MYSQL_PARAMS=charset=utf8mb4&parseTime=true&loc=Local

# Comma-separated whitelist (optional)
# Example: MYSQL_ALLOWED_DATABASES=smartflow,analytics
MYSQL_ALLOWED_DATABASES=smartflow
# Example: MYSQL_ALLOWED_TABLES=smartflow.users,smartflow.tasks
MYSQL_ALLOWED_TABLES=

# =========================
# Redis
# =========================
REDIS_ADDR=127.0.0.1:6379
REDIS_PASSWORD=
REDIS_DB=0
