MCP-IMAP-Agent/backend/.env.example
Soldier 88fbde4542 Add production deployment for N8N with SSE transport
Production-ready MCP IMAP server for hosted N8N workflows.

Changes:
- SSE transport using create_sse_app() for N8N compatibility
- API key authentication middleware for multi-tenant access
- Systemd service file for auto-restart on Hetzner
- Nginx reverse proxy config with TLS and rate limiting
- Complete deployment guide (DEPLOY.md)
- Removed REST API bridge (api_server.py) - N8N uses MCP protocol

Deployment:
- SSE endpoint: https://imap.maxtheweb.ai/mcp/sse
- Messages endpoint: https://imap.maxtheweb.ai/mcp/messages
- Authentication: Bearer token in Authorization header

Stack: FastMCP 2.13 + uvicorn + nginx + systemd
2025-11-17 12:54:57 +00:00

23 lines
510 B
Plaintext

# MCP Server Configuration
MCP_PORT=8000
MCP_HOST=0.0.0.0
# Security Settings
MCP_API_KEYS=your_api_key_1,your_api_key_2,your_api_key_3
RATE_LIMIT_PER_MINUTE=60
MAX_EMAIL_FETCH_SIZE=100
SESSION_TIMEOUT_MINUTES=30
# Redis Configuration (for production)
REDIS_URL=redis://localhost:6379
REDIS_DB=0
# Logging
LOG_LEVEL=INFO
# CORS Settings (for frontend)
CORS_ORIGINS=http://localhost:3000,https://maxtheweb.ai
# Auth Settings (for magic links)
RESEND_API_KEY=your_resend_api_key
MAGIC_LINK_EXPIRY_MINUTES=15