Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# GitHub MCP SSE Server Configuration

# GitHub API Token (required for API access)
# Generate a token at https://github.com/settings/tokens
GITHUB_TOKEN=your_github_token_here

# Server Port Configuration
MCP_SSE_PORT=3200

# Timeout Configuration (in milliseconds)
MCP_TIMEOUT=180000

# Log Level (debug, info, warn, error)
LOG_LEVEL=info

# CORS Configuration
CORS_ALLOW_ORIGIN=*

# Multiplexing SSE Transport Configuration
# Set to 'true' to enable multiplexing SSE transport (handles multiple clients with a single transport)
# Set to 'false' to use individual SSE transport for each client (legacy behavior)
USE_MULTIPLEXING_SSE=false

# Rate Limiting Configuration
RATE_LIMIT_WINDOW_MS=900000 # Time window for rate limiting in milliseconds (e.g., 900000 for 15 minutes)
RATE_LIMIT_MAX_REQUESTS=100 # Maximum number of requests allowed per window per IP
RATE_LIMIT_SSE_MAX=5 # Maximum number of SSE connections allowed per minute per IP
RATE_LIMIT_MESSAGES_MAX=30 # Maximum number of messages allowed per minute per IP
DEFAULT_USER_RATE_LIMIT=1000 # Default number of requests allowed per hour for a user