feat: add HTTP server mode for remote deployment with token auth
This commit is contained in:
25
.env.example
25
.env.example
@@ -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
|
||||
Reference in New Issue
Block a user