- Added SSE server implementation for real-time event streaming - Created n8n compatibility mode with strict schema validation - Implemented session management for concurrent connections - Added comprehensive SSE documentation and examples - Enhanced MCP tools with async execution support - Added Docker Compose configuration for SSE deployment - Included test scripts and integration tests 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
n8n-mcp-sse:
|
|
image: ghcr.io/czlonkowski/n8n-mcp:latest
|
|
container_name: n8n-mcp-sse
|
|
command: npm run start:sse
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- AUTH_TOKEN=${AUTH_TOKEN:-test-secure-token-123456789}
|
|
- PORT=3000
|
|
- HOST=0.0.0.0
|
|
- NODE_ENV=production
|
|
- LOG_LEVEL=info
|
|
- CORS_ORIGIN=*
|
|
- TRUST_PROXY=0
|
|
volumes:
|
|
- ./data:/app/data:ro
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
networks:
|
|
- n8n-network
|
|
|
|
# Optional: n8n instance for testing
|
|
n8n:
|
|
image: n8nio/n8n:latest
|
|
container_name: n8n
|
|
ports:
|
|
- "5678:5678"
|
|
environment:
|
|
- N8N_BASIC_AUTH_ACTIVE=true
|
|
- N8N_BASIC_AUTH_USER=admin
|
|
- N8N_BASIC_AUTH_PASSWORD=password
|
|
- N8N_HOST=0.0.0.0
|
|
- N8N_PORT=5678
|
|
- N8N_PROTOCOL=http
|
|
- N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true
|
|
- WEBHOOK_URL=http://n8n:5678/
|
|
volumes:
|
|
- n8n_data:/home/node/.n8n
|
|
restart: unless-stopped
|
|
networks:
|
|
- n8n-network
|
|
|
|
networks:
|
|
n8n-network:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
n8n_data: |