# FoundryVTT Configuration
# Choose the URL that matches your setup:
# Local Development (default port)
FOUNDRY_URL=http://localhost:30000
# Reverse Proxy / Remote Server Examples:
# FOUNDRY_URL=https://dnd.lakuz.com
# FOUNDRY_URL=https://foundry.example.com
# FOUNDRY_URL=http://foundry.example.com:8080
# FOUNDRY_URL=https://my-server.com:8443
# Local Network IP
# FOUNDRY_URL=http://192.168.1.100:30000
# Authentication: Username/Password (required)
# Use a FoundryVTT user account with appropriate permissions
FOUNDRY_USERNAME=your_username
FOUNDRY_PASSWORD=your_password
# Optional: Direct user ID bypass
# Set to the 16-character document _id of the FoundryVTT user
# Skips username-to-ID resolution during Socket.IO authentication
# FOUNDRY_USER_ID=abc123def456ghij
# Optional: Diagnostics (requires REST API module)
# Install the "Foundry Local REST API" module and set the API key
# to enable 5 server monitoring tools (logs, health, diagnostics)
# FOUNDRY_API_KEY=your_api_key_here
# MCP Server Configuration
MCP_SERVER_NAME=foundry-mcp-server
MCP_SERVER_VERSION=0.1.0
LOG_LEVEL=info
# Optional: Advanced Socket.IO settings
FOUNDRY_SOCKET_PATH=/socket.io/
FOUNDRY_TIMEOUT=10000
FOUNDRY_RETRY_ATTEMPTS=3
FOUNDRY_RETRY_DELAY=1000
# Development
NODE_ENV=development
# Notes:
# - Socket.IO with username/password is the primary connection method
# - All game data (actors, items, scenes, journals, combat, users) is loaded on connect
# - No custom FoundryVTT modules required for full game data access
# - Optional: Install "Foundry Local REST API" module for 5 server diagnostics tools
# - All communication is completely local - no external services