- Separate configuration sections for local (stdio) and HTTP modes - Fix variable names: MCP_SERVER_PORT/HOST for local mode - Change default NODE_DB_PATH to ./data/nodes-v2.db for local dev - Add missing REBUILD_ON_START variable - Set NODE_ENV to development by default - Add clear comments explaining which mode uses which variables - Update README with cp .env.example .env step The .env.example now properly supports both deployment modes and will work out of the box when copied to .env. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
50 lines
1.2 KiB
Plaintext
50 lines
1.2 KiB
Plaintext
# n8n Documentation MCP Server Configuration
|
|
|
|
# ====================
|
|
# COMMON CONFIGURATION
|
|
# ====================
|
|
|
|
# Database Configuration
|
|
# For local development: ./data/nodes-v2.db
|
|
# For Docker: /app/data/nodes-v2.db
|
|
NODE_DB_PATH=./data/nodes-v2.db
|
|
|
|
# Logging Level (debug, info, warn, error)
|
|
MCP_LOG_LEVEL=info
|
|
|
|
# Node Environment (development, production)
|
|
NODE_ENV=development
|
|
|
|
# Rebuild database on startup (true/false)
|
|
REBUILD_ON_START=false
|
|
|
|
# =========================
|
|
# LOCAL MODE CONFIGURATION
|
|
# =========================
|
|
# Used when running: npm run start:v2 or npm run dev:v2
|
|
|
|
# Local MCP Server Configuration
|
|
MCP_SERVER_PORT=3000
|
|
MCP_SERVER_HOST=localhost
|
|
# MCP_AUTH_TOKEN=optional-for-local-development
|
|
|
|
# =========================
|
|
# HTTP MODE CONFIGURATION
|
|
# =========================
|
|
# Used when running: npm run start:http or npm run dev:http
|
|
|
|
# HTTP Server Configuration
|
|
MCP_PORT=3000
|
|
MCP_HOST=0.0.0.0
|
|
MCP_DOMAIN=localhost
|
|
|
|
# Authentication (REQUIRED for production HTTP mode)
|
|
# Generate a secure token: openssl rand -hex 32
|
|
# MCP_AUTH_TOKEN=your-secure-auth-token-here
|
|
|
|
# CORS - Enable for browser-based access
|
|
MCP_CORS=false
|
|
|
|
# TLS Configuration (optional for HTTPS)
|
|
# MCP_TLS_CERT=/path/to/cert.pem
|
|
# MCP_TLS_KEY=/path/to/key.pem |