# =============================================================================
# Dolibarr MCP Server - Environment Configuration
# Version 2.1.0
# =============================================================================
# Copy this file to .env and configure your settings
# -----------------------------------------------------------------------------
# Dolibarr API Configuration (Required)
# -----------------------------------------------------------------------------
DOLIBARR_URL=https://your-dolibarr-instance.com/api/index.php
DOLIBARR_API_KEY=your_dolibarr_api_key_here
# -----------------------------------------------------------------------------
# MCP Authentication (Recommended for Production)
# -----------------------------------------------------------------------------
# Enable/disable API key authentication (default: true)
MCP_AUTH_ENABLED=true
# Single API key for MCP authentication
# Generate a secure key with: python3 scripts/generate_api_key.py
MCP_API_KEY=your_mcp_api_key_here
# Multiple API keys (comma-separated) - alternative to MCP_API_KEY
# MCP_API_KEYS=key1,key2,key3
# -----------------------------------------------------------------------------
# MCP Server Configuration
# -----------------------------------------------------------------------------
# Transport mode: stdio (for CLI/local) or http (for web/API)
MCP_TRANSPORT=http
# HTTP server settings
MCP_HTTP_PORT=8080
MCP_HTTP_HOST=0.0.0.0
# -----------------------------------------------------------------------------
# Cache Configuration (DragonflyDB/Redis)
# -----------------------------------------------------------------------------
# Enable/disable caching (default: true)
CACHE_ENABLED=true
# DragonflyDB/Redis connection settings
DRAGONFLY_HOST=localhost
DRAGONFLY_PORT=6379
DRAGONFLY_PASSWORD=
# -----------------------------------------------------------------------------
# Output Format Configuration
# -----------------------------------------------------------------------------
# Output format: toon (default, ~60% token savings) or json
OUTPUT_FORMAT=toon
# -----------------------------------------------------------------------------
# Logging Configuration
# -----------------------------------------------------------------------------
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_LEVEL=INFO