50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
# FastMCP Server Configuration
|
|
# Copy this file to .env and fill in your values
|
|
|
|
# Server Configuration
|
|
SERVER_NAME="My FastMCP Server"
|
|
ENVIRONMENT="development" # development, staging, production
|
|
|
|
# API Configuration (if integrating with external API)
|
|
API_BASE_URL="https://api.example.com"
|
|
API_KEY="your-api-key-here"
|
|
API_SECRET="your-api-secret-here"
|
|
API_TIMEOUT="30"
|
|
|
|
# Database Configuration (if using database)
|
|
DATABASE_URL="postgresql://user:password@localhost:5432/dbname"
|
|
|
|
# Cache Configuration
|
|
CACHE_TTL="300" # Cache time-to-live in seconds (5 minutes)
|
|
ENABLE_CACHE="true"
|
|
|
|
# Retry Configuration
|
|
MAX_RETRIES="3"
|
|
|
|
# OpenAPI Configuration (if using OpenAPI integration)
|
|
OPENAPI_SPEC_URL="https://api.example.com/openapi.json"
|
|
|
|
# Logging
|
|
LOG_LEVEL="INFO" # DEBUG, INFO, WARNING, ERROR
|
|
|
|
# Features (optional)
|
|
ENABLE_PROGRESS_TRACKING="true"
|
|
ENABLE_ELICITATION="true"
|
|
ENABLE_SAMPLING="true"
|
|
|
|
# Rate Limiting (optional)
|
|
RATE_LIMIT_REQUESTS="100" # Max requests per time window
|
|
RATE_LIMIT_WINDOW="60" # Time window in seconds
|
|
|
|
# Security (optional)
|
|
ALLOWED_ORIGINS="*"
|
|
ENABLE_CORS="true"
|
|
|
|
# FastMCP Cloud (for deployment)
|
|
# These will be set automatically by FastMCP Cloud
|
|
# FASTMCP_ENV="production"
|
|
# FASTMCP_REGION="us-west"
|
|
|
|
# Custom Configuration
|
|
# Add any custom environment variables your server needs
|