101 lines
3.1 KiB
Text
101 lines
3.1 KiB
Text
# Edge Connect MCP Server Configuration
|
|
# Copy this file to .env and update with your values
|
|
|
|
# ===================================
|
|
# Edge Connect API Configuration
|
|
# ===================================
|
|
|
|
# Base URL of the Edge Connect API (required)
|
|
EDGE_CONNECT_BASE_URL=https://hub.apps.edge.platform.mg3.mdb.osc.live
|
|
|
|
# Authentication type: token, credentials, or none (required)
|
|
EDGE_CONNECT_AUTH_TYPE=credentials
|
|
|
|
# For token-based authentication (if auth_type=token)
|
|
#EDGE_CONNECT_TOKEN=your-token-here
|
|
|
|
# For credentials-based authentication (if auth_type=credentials)
|
|
EDGE_CONNECT_USERNAME=your-username
|
|
EDGE_CONNECT_PASSWORD=your-password
|
|
|
|
# Default region (optional, default: EU)
|
|
EDGE_CONNECT_DEFAULT_REGION=EU
|
|
|
|
# Enable debug logging (optional)
|
|
#EDGE_CONNECT_DEBUG=true
|
|
|
|
# ===================================
|
|
# MCP Server Configuration
|
|
# ===================================
|
|
|
|
# Server mode: stdio or remote (default: stdio)
|
|
MCP_SERVER_MODE=remote
|
|
|
|
# Remote server host (default: 0.0.0.0)
|
|
MCP_REMOTE_HOST=0.0.0.0
|
|
|
|
# Remote server port (default: 8080)
|
|
MCP_REMOTE_PORT=8080
|
|
|
|
# ===================================
|
|
# Simple Bearer Token Authentication
|
|
# (Used when OAuth is disabled)
|
|
# ===================================
|
|
|
|
# Enable bearer token authentication for remote access (optional)
|
|
#MCP_REMOTE_AUTH_REQUIRED=true
|
|
|
|
# Comma-separated list of valid bearer tokens (optional)
|
|
#MCP_REMOTE_AUTH_TOKENS=token1,token2,token3
|
|
|
|
# ===================================
|
|
# OAuth 2.1 Configuration
|
|
# (Recommended for production)
|
|
# ===================================
|
|
|
|
# Enable OAuth 2.1 authorization (optional, default: false)
|
|
OAUTH_ENABLED=true
|
|
|
|
# OAuth mode (default: resource_server)
|
|
OAUTH_MODE=resource_server
|
|
|
|
# Resource URI - the canonical URI of this MCP server (required if OAuth enabled)
|
|
OAUTH_RESOURCE_URI=http://localhost:8080
|
|
|
|
# Comma-separated list of authorization server URLs (required if OAuth enabled)
|
|
OAUTH_AUTH_SERVERS=http://localhost:8081
|
|
|
|
# Expected issuer in JWT tokens (required if OAuth enabled)
|
|
OAUTH_ISSUER=http://localhost:8081
|
|
|
|
# JWKS endpoint URL for token validation (required if OAuth enabled)
|
|
OAUTH_JWKS_URL=http://localhost:8081/.well-known/jwks.json
|
|
|
|
# ===================================
|
|
# Basic Authorization Server
|
|
# (For development/testing only)
|
|
# ===================================
|
|
|
|
# Enable built-in basic authorization server (optional, default: false)
|
|
OAUTH_AUTH_SERVER_ENABLED=true
|
|
|
|
# Port for the authorization server (default: 8081)
|
|
OAUTH_AUTH_SERVER_PORT=8081
|
|
|
|
# OAuth client ID to register (required if auth server enabled)
|
|
OAUTH_CLIENT_ID=test-client
|
|
|
|
# OAuth redirect URI for the client (required if auth server enabled)
|
|
OAUTH_REDIRECT_URI=http://localhost:3000/callback
|
|
|
|
# ===================================
|
|
# Production OAuth Configuration
|
|
# ===================================
|
|
# For production, use an external authorization server:
|
|
#
|
|
# OAUTH_ENABLED=true
|
|
# OAUTH_RESOURCE_URI=https://mcp.example.com
|
|
# OAUTH_AUTH_SERVERS=https://auth.example.com
|
|
# OAUTH_ISSUER=https://auth.example.com
|
|
# OAUTH_JWKS_URL=https://auth.example.com/.well-known/jwks.json
|
|
# OAUTH_AUTH_SERVER_ENABLED=false # Don't use basic auth server in production
|