.env.example•1.31 kB
# Environment variables for vertex-ai-mcp-server
# --- Required ---
# REQUIRED only if AI_PROVIDER is "vertex"
GOOGLE_CLOUD_PROJECT="YOUR_GCP_PROJECT_ID"
# REQUIRED only if AI_PROVIDER is "gemini"
GEMINI_API_KEY="YOUR_GEMINI_API_KEY" # Get from Google AI Studio
# --- General AI Configuration ---
AI_PROVIDER="vertex" # Provider to use: "vertex" or "gemini"
# Optional - Model ID depends on the chosen provider
VERTEX_MODEL_ID="gemini-2.5-pro-exp-03-25" # e.g., gemini-1.5-pro-latest, gemini-1.0-pro
GEMINI_MODEL_ID="gemini-2.5-pro-exp-03-25" # e.g., gemini-2.5-pro-exp-03-25, gemini-pro
# --- Optional AI Parameters (Common) ---
# GOOGLE_CLOUD_LOCATION is specific to Vertex AI
GOOGLE_CLOUD_LOCATION="us-central1"
AI_TEMPERATURE="0.0" # Range: 0.0 to 1.0
AI_USE_STREAMING="true" # Use streaming responses: "true" or "false"
AI_MAX_OUTPUT_TOKENS="65536" # Max tokens in response (Note: Models have their own upper limits)
AI_MAX_RETRIES="3" # Number of retries on transient errors
AI_RETRY_DELAY_MS="1000" # Delay between retries in milliseconds
# --- Optional Vertex AI Authentication ---
# Uncomment and set if using a Service Account Key instead of Application Default Credentials (ADC) for Vertex AI
# GOOGLE_APPLICATION_CREDENTIALS="/path/to/your/service-account-key.json"