# Example .env for SAP ABAP ADT MCP server

# ABAP system URL and client
SAP_URL=https://your-abap-system.com
SAP_CLIENT=100

# Optional: language (default is 'en' if not set)
SAP_LANGUAGE=en

# TLS: set to 0 to allow self-signed certificates (not recommended for production)
TLS_REJECT_UNAUTHORIZED=0

# Authentication type: 'xsuaa' for JWT (OAuth2), 'basic' for username/password
SAP_AUTH_TYPE=xsuaa

# SAP system type: cloud (default), onprem, or legacy
# Controls which tools are available (e.g. Programs are onprem-only)
# Default is 'cloud' — set to 'onprem' for on-premise systems
SAP_SYSTEM_TYPE=cloud

# For JWT (XSUAA) authentication
SAP_JWT_TOKEN=your_jwt_token_here

# For basic authentication (uncomment if using basic auth)
# SAP_AUTH_TYPE=basic
# SAP_USERNAME=your_username
# SAP_PASSWORD=your_password

# System context for on-premise systems (required for create/update operations)
# SAP_MASTER_SYSTEM=DEV
# SAP_RESPONSIBLE=your_username

# Timeout configuration (in milliseconds)
# Default timeout for most operations (default: 45000ms = 45 seconds)
SAP_TIMEOUT_DEFAULT=45000

# Timeout for CSRF token requests (default: 15000ms = 15 seconds)
SAP_TIMEOUT_CSRF=15000

# Timeout for long-running operations like SQL queries and table contents (default: 60000ms = 60 seconds)
SAP_TIMEOUT_LONG=60000