Files
mini-db-mcp/.env.example
T
2026-10-09 11:03:25 +08:00

31 lines
652 B
Bash

# Override the .env file path (default: .env in working directory)
# --- Database ---
DB_HOST=
DB_PORT=
DB_USER=
DB_PASSWORD=
DB_SCHEMA=
DB_CONNECT_TIMEOUT=30
DB_POOL_SIZE=5
DB_MAX_OVERFLOW=10
DB_POOL_TIMEOUT=30
# Recycle before the server-side wait_timeout kicks in
DB_POOL_RECYCLE=1800
DB_POOL_PRE_PING=true
# Connections opened eagerly right after an engine is created
DB_WARMUP_SIZE=1
DB_MAX_TOTAL_CONNECTIONS=20
DB_HEALTH_CHECK_INTERVAL=30
# --- Query limits ---
QUERY_MAX_ROWS=1000
QUERY_MAX_BYTES=4000000
QUERY_TIMEOUT_SECONDS=30
QUERY_ALLOW_WRITE=false
# --- MCP server ---
MCP_TRANSPORT=stdio
MCP_HOST=127.0.0.1
MCP_PORT=8000
LOG_LEVEL=INFO