feat: add HTTP server mode for remote deployment with token auth

This commit is contained in:
czlonkowski
2025-06-13 11:54:42 +02:00
parent 23a21071bc
commit 89e1df03de
11 changed files with 512 additions and 48 deletions

View File

@@ -29,22 +29,17 @@ MCP_SERVER_HOST=localhost
# MCP_AUTH_TOKEN=optional-for-local-development
# =========================
# HTTP MODE CONFIGURATION
# SIMPLE HTTP MODE
# =========================
# Used when running: npm run start:http or npm run dev:http
# Used for private single-user deployments
# HTTP Server Configuration
MCP_PORT=3000
MCP_HOST=0.0.0.0
MCP_DOMAIN=localhost
# Server mode: stdio (local) or http (remote)
MCP_MODE=stdio
# Authentication (REQUIRED for production HTTP mode)
# Generate a secure token: openssl rand -hex 32
# MCP_AUTH_TOKEN=your-secure-auth-token-here
# HTTP Server Configuration (only used when MCP_MODE=http)
PORT=3000
HOST=0.0.0.0
# 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
# Authentication token for HTTP mode (REQUIRED)
# Generate with: openssl rand -base64 32
AUTH_TOKEN=your-secure-token-here