From ccf4c4372cf1ae2fd33fc37d3ad72b69c4635b94 Mon Sep 17 00:00:00 2001 From: Emanuel Jesus Leiva Navarro Date: Sat, 6 Sep 2025 16:46:50 -0400 Subject: [PATCH] add: .env.example --- .env.example | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..bdcba67 --- /dev/null +++ b/.env.example @@ -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