@@ -40,7 +40,7 @@ DB2i_IGNORE_UNAUTHORIZED=true
4040# - Directory: tools/ (loads all .yaml/.yml files)
4141# - Glob: tools/**/*.yaml
4242# Default: none (no tools loaded)
43- TOOLS_YAML_PATH = tools
43+ TOOLS_YAML_PATH =
4444
4545# Comma-separated list of toolsets to load (filters available tools)
4646# Leave empty to load all tools
@@ -74,9 +74,17 @@ YAML_VALIDATE_MERGED=true
7474# 🛠️ Built-in Tools Configuration
7575# -----------------------------------------------------------------------------
7676
77- # Enable the built-in execute_sql tool for ad-hoc SELECT queries
77+ # Enable the default text-to-SQL toolset (list_schemas, list_tables_in_schema,
78+ # get_table_columns, get_related_objects, validate_query)
7879# Default: false
79- # ⚠️ SECURITY: This tool allows clients to run arbitrary SELECT queries.
80+ # CLI equivalent: --builtin-tools
81+ # These are read-only schema discovery tools that query IBM i catalog views.
82+ IBMI_ENABLE_DEFAULT_TOOLS = false
83+
84+ # Enable the built-in execute_sql tool for ad-hoc SQL queries
85+ # Default: false
86+ # CLI equivalent: --execute-sql
87+ # ⚠️ SECURITY: This tool allows clients to run arbitrary SQL queries.
8088# Enable only in development or trusted environments.
8189# Consider using YAML-defined tools in production for better control.
8290# See: https://github.com/IBM/ibmi-mcp-server#built-in-tools-configuration
@@ -159,6 +167,45 @@ MCP_HTTP_PORT_RETRY_DELAY_MS=50
159167# Example: http://localhost:3000,https://app.example.com
160168MCP_ALLOWED_ORIGINS =
161169
170+ # -----------------------------------------------------------------------------
171+ # 🛡️ Rate Limiting (HTTP Only)
172+ # -----------------------------------------------------------------------------
173+ # Controls request rate limiting for the HTTP transport.
174+ # Disable or increase limits for agentic workflows with parallel tool calls.
175+
176+ # Enable or disable rate limiting
177+ # Default: true
178+ MCP_RATE_LIMIT_ENABLED = true
179+
180+ # Maximum requests allowed per window
181+ # Default: 100
182+ # Tip: Increase for AI agent workflows that make many parallel tool calls
183+ MCP_RATE_LIMIT_MAX_REQUESTS = 100
184+
185+ # Rate limit window duration in milliseconds
186+ # Default: 900000 (15 minutes)
187+ MCP_RATE_LIMIT_WINDOW_MS = 900000
188+
189+ # Skip rate limiting in development (NODE_ENV=development)
190+ # Default: false
191+ MCP_RATE_LIMIT_SKIP_DEV = false
192+
193+ # -----------------------------------------------------------------------------
194+ # 🔄 Connection Pool Timeouts
195+ # -----------------------------------------------------------------------------
196+ # Controls automatic cleanup of idle Mapepire connection pools and query timeouts.
197+ # Essential for cloud deployments (Railway, Heroku, etc.) where proxies kill idle connections.
198+
199+ # Idle timeout for Mapepire connection pools (ms). Pools closed after inactivity.
200+ # Fresh connections established automatically on next request.
201+ # Set to 0 to disable. Default: 300000 (5 minutes)
202+ MCP_POOL_IDLE_TIMEOUT_MS = 300000
203+
204+ # Query execution timeout (ms). Queries aborted after this period.
205+ # Pool re-initialized on next request after timeout.
206+ # Set to 0 to disable. Default: 30000 (30 seconds)
207+ MCP_POOL_QUERY_TIMEOUT_MS = 30000
208+
162209# -----------------------------------------------------------------------------
163210# 🔐 Authentication & Authorization
164211# -----------------------------------------------------------------------------
0 commit comments