# ==============================================================================
# UniFi MCP Server - Environment Variables Reference
# ==============================================================================
#
# IMPORTANT: DO NOT CREATE A .env FILE IN THIS DIRECTORY!
#
# When using this MCP server with Kiro, credentials should be configured in
# your workspace's .kiro/settings/mcp.json file. Kiro passes environment
# variables to the MCP server process automatically.
#
# This file is a REFERENCE ONLY showing available environment variables.
#
# ==============================================================================
# RECOMMENDED SETUP (Kiro MCP Config)
# ==============================================================================
#
# Add to your .kiro/settings/mcp.json:
#
# {
# "mcpServers": {
# "unifi": {
# "command": "python",
# "args": ["-m", "unifi_mcp"],
# "cwd": "/path/to/unifi-mcp-server",
# "env": {
# "UNIFI_HOST": "192.168.1.1",
# "UNIFI_API_KEY": "your-api-key-here",
# "UNIFI_SITE": "default",
# "UNIFI_VERIFY_SSL": "false",
# "LOG_LEVEL": "INFO"
# }
# }
# }
# }
#
# ==============================================================================
# AVAILABLE ENVIRONMENT VARIABLES
# ==============================================================================
# UniFi Controller Connection
# ---------------------------
# UNIFI_HOST - Controller IP or hostname (required)
# Example: 192.168.1.1
# UNIFI_PORT - Controller port (default: 443)
# Example: 443
# UNIFI_SITE - Site name (default: "default")
# Example: default
# UNIFI_VERIFY_SSL - Verify SSL certificates (default: false)
# Set to "true" for production with valid certificates
# Example: false
# Authentication (choose one method)
# ----------------------------------
# Method 1: API Key (Recommended for UniFi OS)
# Generate in UniFi OS: Settings > System > Advanced > API
# UNIFI_API_KEY - Your API key
# Method 2: Username/Password (Traditional controllers)
# UNIFI_USERNAME - Admin username
# UNIFI_PASSWORD - Admin password
# Logging
# -------
# LOG_LEVEL - Logging verbosity (default: INFO)
# Options: DEBUG, INFO, WARNING, ERROR, CRITICAL
# ==============================================================================
# SECURITY NOTES
# ==============================================================================
#
# 1. NEVER commit credentials to git
# 2. Use .kiro/settings/mcp.json for credentials (not tracked by git)
# 3. Rotate API keys periodically
# 4. Use read-only API keys when possible
# 5. Enable SSL verification in production (UNIFI_VERIFY_SSL=true)
#
# ==============================================================================