.env.example•2.4 kB
# MCP Ambari API - Environment Configuration Template
# Copy this file to .env and modify as needed
# =============================================================================
# Python & MCP Transport Settings
# =============================================================================
PYTHONPATH=/app/src
FASTMCP_TYPE=streamable-http
FASTMCP_HOST=0.0.0.0
FASTMCP_PORT=8000
MCP_LOG_LEVEL=INFO
# =============================================================================
# Remote Authentication Settings (for streamable-http mode)
# =============================================================================
# Enable Bearer token authentication for streamable-http transport
# Default: false (if not defined or empty, defaults to false)
# Values: true/false, 1/0, yes/no, on/off (case insensitive)
# WARNING: If REMOTE_AUTH_ENABLE=false, the server will accept requests without authentication!
REMOTE_AUTH_ENABLE=false
# Secret key for Bearer token authentication (required when REMOTE_AUTH_ENABLE=true)
# Default: empty string (if not defined, authentication will be disabled even if REMOTE_AUTH_ENABLE=true)
# Recommendation: Use strong, randomly generated secret keys (32+ characters)
REMOTE_SECRET_KEY=my-test-secret-key-12345
# =============================================================================
# Ambari Connection Settings (Example values provided)
# =============================================================================
AMBARI_HOST=host.docker.internal
AMBARI_PORT=8080
AMBARI_USER=admin
AMBARI_PASS=admin
AMBARI_CLUSTER_NAME=TEST-AMBARI
# =============================================================================
# Ambari Metrics (AMS) Settings
# =============================================================================
# Metrics collector host/port (defaults align with Ambari 2.7 AMS collector)
AMBARI_METRICS_HOST=host.docker.internal
AMBARI_METRICS_PORT=6188
# Protocol is usually http unless AMS is fronted by TLS terminator
AMBARI_METRICS_PROTOCOL=http
# Request timeout in seconds for metrics queries (float accepted)
AMBARI_METRICS_TIMEOUT=15
# =============================================================================
# Docker Port Mappings
# =============================================================================
DOCKER_EXTERNAL_PORT_OPENWEBUI=3001
DOCKER_EXTERNAL_PORT_MCP_SERVER=18001
DOCKER_EXTERNAL_PORT_MCPO_PROXY=8001