Files
n8n-mcp/.env.n8n.example
czlonkowski a597ef5a92 feat: add n8n integration with MCP Client Tool support
- Add N8N_MODE environment variable for n8n-specific behavior
- Implement HTTP Streamable transport with multiple session support
- Add protocol version endpoint (GET /mcp) for n8n compatibility
- Support multiple initialize requests for stateless n8n clients
- Add Docker configuration for n8n deployment
- Add test script with persistent volume support
- Add comprehensive unit tests for n8n mode
- Fix session management to handle per-request transport pattern

BREAKING CHANGE: Server now creates new transport for each initialize request
when running in n8n mode to support n8n's stateless client architecture

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-01 00:34:31 +02:00

36 lines
917 B
Plaintext

# n8n-mcp Docker Environment Configuration
# Copy this file to .env and customize for your deployment
# === n8n Configuration ===
# n8n basic auth (change these in production!)
N8N_BASIC_AUTH_ACTIVE=true
N8N_BASIC_AUTH_USER=admin
N8N_BASIC_AUTH_PASSWORD=changeme
# n8n host configuration
N8N_HOST=localhost
N8N_PORT=5678
N8N_PROTOCOL=http
N8N_WEBHOOK_URL=http://localhost:5678/
# n8n encryption key (generate with: openssl rand -hex 32)
N8N_ENCRYPTION_KEY=
# === n8n-mcp Configuration ===
# MCP server port
MCP_PORT=3000
# MCP authentication token (generate with: openssl rand -hex 32)
MCP_AUTH_TOKEN=
# n8n API key for MCP to access n8n
# Get this from n8n UI: Settings > n8n API > Create API Key
N8N_API_KEY=
# Logging level (debug, info, warn, error)
LOG_LEVEL=info
# === GitHub Container Registry (for CI/CD) ===
# Only needed if building custom images
GITHUB_REPOSITORY=czlonkowski/n8n-mcp
VERSION=latest