.env.template•2.57 kB
# MCP Server Environment Variables Template
# Copy this file to .env and fill in your values
# ============================================
# Registry Configuration
# ============================================
# Registry API Key (required if registry is enabled)
REGISTRY_API_KEY=your-api-key-here
# Override registry URL (optional)
# REGISTRY__URL=https://registry.example.com/api/v1
# Override authentication type (optional)
# REGISTRY__AUTH__TYPE=api_key
# ============================================
# Server Configuration Overrides
# ============================================
# Server name (optional)
# SERVER__NAME=my-mcp-server
# Server version (optional)
# SERVER__VERSION=0.1.0
# Server description (optional)
# SERVER__DESCRIPTION=My custom MCP server
# Enable debug mode (optional)
# SERVER__DEBUG=false
# ============================================
# Logging Configuration
# ============================================
# Logging level: DEBUG, INFO, WARNING, ERROR, CRITICAL
# LOGGING__LEVEL=INFO
# Log format: json or text
# LOGGING__FORMAT=json
# Log file path (optional)
# LOGGING__FILE=/var/log/mcp-server.log
# ============================================
# Registry Connection Settings
# ============================================
# Connection timeout in seconds
# REGISTRY__CONNECTION__TIMEOUT=30
# Maximum retry attempts
# REGISTRY__CONNECTION__RETRY__MAX_ATTEMPTS=3
# Heartbeat interval in seconds
# REGISTRY__HEARTBEAT__INTERVAL=60
# Enable/disable heartbeat
# REGISTRY__HEARTBEAT__ENABLED=true
# ============================================
# Tool Configuration
# ============================================
# Enable specific tools (comma-separated)
# TOOLS__ENABLED=["example_calculator","example_search"]
# ============================================
# Resource Configuration
# ============================================
# Enable specific resources (comma-separated)
# RESOURCES__ENABLED=["example_config","example_status"]
# ============================================
# Prompt Configuration
# ============================================
# Enable specific prompts (comma-separated)
# PROMPTS__ENABLED=["example_prompt"]
# ============================================
# Notes
# ============================================
#
# - Environment variables override config.yaml settings
# - Use double underscore (__) for nested configuration
# - Boolean values: true/false (lowercase)
# - Arrays: Use JSON syntax for arrays
#
# Example nested override:
# REGISTRY__AUTH__API_KEY sets registry.auth.api_key
#