# Microsoft Fabric MCP Server Configuration
# Copy this file to .env and adjust values as needed
# ============================================
# Fabric API Configuration
# ============================================
# Base URL for Fabric API (default: https://api.fabric.microsoft.com/v1)
# FABRIC_BASE_URL=https://api.fabric.microsoft.com/v1
# OAuth scopes for Fabric API (default: https://api.fabric.microsoft.com/.default)
# FABRIC_SCOPES=https://api.fabric.microsoft.com/.default
# API call timeout in seconds (default: 30)
# FABRIC_API_CALL_TIMEOUT=30
# Maximum retry attempts for failed requests (default: 3)
# FABRIC_MAX_RETRIES=3
# Backoff factor for retries (default: 2.0)
# FABRIC_RETRY_BACKOFF=2.0
# ============================================
# Livy Configuration (Spark Sessions)
# ============================================
# Livy API call timeout in seconds (default: 120)
# LIVY_API_CALL_TIMEOUT=120
# Polling interval for Livy operations in seconds (default: 2.0)
# LIVY_POLL_INTERVAL=2.0
# Statement wait timeout in seconds (default: 10)
# LIVY_STATEMENT_WAIT_TIMEOUT=10
# Session wait timeout in seconds (default: 240)
# LIVY_SESSION_WAIT_TIMEOUT=240
# ============================================
# MCP Server Configuration
# ============================================
# Server name for MCP protocol (default: ms-fabric-mcp-server)
# MCP_SERVER_NAME=ms-fabric-mcp-server
# Logging level: DEBUG, INFO, WARNING, ERROR (default: INFO)
# MCP_LOG_LEVEL=INFO
# Azure Identity log level (optional: error, warning, info, verbose)
# AZURE_LOG_LEVEL=info
# ============================================
# Authentication
# ============================================
# Authentication uses DefaultAzureCredential which automatically tries:
# 1. Environment credentials (AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET)
# 2. Managed Identity (when running on Azure)
# 3. Azure CLI credentials (az login)
# 4. VS Code credentials
# 5. Azure PowerShell credentials
#
# No Fabric-specific auth configuration is needed - just ensure you're
# authenticated via one of the above methods.