# Levelang MCP Server Configuration
# Copy this to .env and fill in your values.
# Backend API base URL
# Default: http://localhost:8000/api/v1 (local dev)
# Staging: https://levelang-backend-staging.fly.dev/api/v1
# Production: https://levelang-backend.fly.dev/api/v1
LEVELANG_API_BASE_URL=http://localhost:8000/api/v1
# API key for backend authentication
# Optional for local dev (no auth required).
# Required for staging/production (use a service key: sk_xxx).
# LEVELANG_API_KEY=sk_your_service_key_here
# MCP transport mode: stdio (default) or streamable-http
MCP_TRANSPORT=stdio
# Host for HTTP transport (only used when MCP_TRANSPORT=streamable-http)
# Default: 127.0.0.1 (localhost). Set to 0.0.0.0 for containerized deployments.
# MCP_HOST=127.0.0.1
# Port for HTTP transport (only used when MCP_TRANSPORT=streamable-http)
MCP_PORT=8463
# Comma-separated list of valid API keys for HTTP transport auth.
# Clients must send "Authorization: Bearer <key>" to connect.
# Leave empty or unset to disable auth (useful for local dev).
# This is a simple static-key scheme suited to small-scale / internal use.
# For many users or per-key revocation, swap in database-backed keys.
# MCP_API_KEYS=key1,key2,key3
# ---------------------------------------------------------------------------
# Logging
# ---------------------------------------------------------------------------
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL (default: INFO)
LOG_LEVEL=INFO
# Log format: auto, json, or text (default: auto)
# auto = JSON for streamable-http, human-readable text for stdio
# LOG_FORMAT=auto