warp-mcp-config.json•5.63 kB
{
"_config_header": "=======================================================================",
"_config_title": "SQL Server MCP Configuration for Warp Terminal",
"_config_docs": "See docs/ENV-VARS.md for complete environment variable reference",
"_config_note": "Method 1: CLI Tool (Recommended) - Use warp-sql-server-mcp init",
"_config_footer": "=======================================================================",
"mcpServers": {
"sql-server": {
"_comment_method1": "=== RECOMMENDED: CLI Tool Method ===",
"_note_cli_setup": "Run: npm install -g @egarcia74/warp-sql-server-mcp && warp-sql-server-mcp init",
"command": "warp-sql-server-mcp",
"args": ["start"],
"_comment_method2": "=== ALTERNATIVE: Manual Environment Variables Method ===",
"_note_manual_setup": "Uncomment and configure the 'env' section below if not using CLI tool",
"_note_path_setup": "If using manual method, change 'command' to 'node' and 'args' to ['/path/to/warp-sql-server-mcp/index.js']",
"env": {
"_comment_required": "=== REQUIRED: Basic SQL Server Connection (CUSTOMIZE THESE) ===",
"SQL_SERVER_HOST": "localhost",
"SQL_SERVER_PORT": "1433",
"SQL_SERVER_DATABASE": "master",
"SQL_SERVER_USER": "your_username",
"SQL_SERVER_PASSWORD": "your_password",
"_comment_windows_auth": "For Windows Auth, remove USER/PASSWORD and uncomment DOMAIN",
"_SQL_SERVER_DOMAIN": "your_domain",
"_comment_ssl": "=== SSL/TLS Security - SMART DEFAULTS (Usually No Changes Needed) ===",
"_note_ssl_auto": "SSL auto-detects: localhost = always trust; private IPs = trust only with NODE_ENV=development/test",
"_SQL_SERVER_ENCRYPT": "true (default: true - always enabled for security)",
"_SSL_SERVER_TRUST_CERT_auto": "Leave unset for smart defaults based on hostname detection",
"_SSL_SERVER_TRUST_CERT_explicit_prod": "Uncomment next line for production: never trust certificates",
"_SQL_SERVER_TRUST_CERT": "false",
"_SSL_SERVER_TRUST_CERT_explicit_dev": "Or uncomment next line for development: always trust certificates",
"_SQL_SERVER_TRUST_CERT_dev": "true",
"_comment_security": "=== Database Security - Choose Your Security Level ===",
"_note_security_defaults": "Defaults to maximum security (read-only). Uncomment sections below as needed.",
"_comment_security_max": "--- Maximum Security (Default - Production Recommended) ---",
"_SQL_SERVER_READ_ONLY": "true (default: true - only SELECT queries)",
"_SQL_SERVER_ALLOW_DESTRUCTIVE_OPERATIONS": "false (default: false - no INSERT/UPDATE/DELETE)",
"_SQL_SERVER_ALLOW_SCHEMA_CHANGES": "false (default: false - no CREATE/DROP/ALTER)",
"_comment_security_analysis": "--- Data Analysis Mode (Read + Write Operations) ---",
"_note_analysis_config": "Uncomment these 3 lines for data analysis (SELECT + INSERT/UPDATE/DELETE):",
"_SQL_SERVER_READ_ONLY_analysis": "false",
"_SQL_SERVER_ALLOW_DESTRUCTIVE_OPERATIONS_analysis": "true",
"_SQL_SERVER_ALLOW_SCHEMA_CHANGES_analysis": "false",
"_comment_security_dev": "--- Full Development Mode (All Operations - Use with Caution) ---",
"_note_dev_warning": "⚠️ DANGER: Uncomment these 3 lines for full development (ALL operations including schema changes):",
"_SQL_SERVER_READ_ONLY_dev": "false",
"_SQL_SERVER_ALLOW_DESTRUCTIVE_OPERATIONS_dev": "true",
"_SQL_SERVER_ALLOW_SCHEMA_CHANGES_dev": "true",
"_comment_optional": "=== OPTIONAL: Advanced Settings (Using Defaults If Not Set) ===",
"_note_optional": "All settings below use sensible defaults. Uncomment only if you need to override.",
"_comment_timeouts": "--- Connection & Timeout Configuration (Defaults shown) ---",
"_SQL_SERVER_CONNECT_TIMEOUT_MS": "10000",
"_SQL_SERVER_REQUEST_TIMEOUT_MS": "30000",
"_SQL_SERVER_MAX_RETRIES": "3",
"_SQL_SERVER_RETRY_DELAY_MS": "1000",
"_comment_pool": "--- Connection Pool Settings (Defaults shown) ---",
"_SQL_SERVER_POOL_MAX": "10",
"_SQL_SERVER_POOL_MIN": "0",
"_SQL_SERVER_POOL_IDLE_TIMEOUT_MS": "30000",
"_comment_performance": "--- Performance Monitoring (Defaults shown - v1.5.0+) ---",
"_ENABLE_PERFORMANCE_MONITORING": "true",
"_SLOW_QUERY_THRESHOLD": "5000",
"_PERFORMANCE_SAMPLING_RATE": "1.0",
"_MAX_METRICS_HISTORY": "1000",
"_TRACK_POOL_METRICS": "true",
"_comment_streaming": "--- Streaming Support (Defaults shown - v1.4.0+) ---",
"_ENABLE_STREAMING": "true",
"_STREAMING_BATCH_SIZE": "1000",
"_STREAMING_MAX_MEMORY_MB": "100",
"_STREAMING_MAX_RESPONSE_SIZE": "10485760",
"_comment_logging": "--- Logging & Debugging (Defaults shown) ---",
"_SQL_SERVER_LOG_LEVEL": "info",
"_SQL_SERVER_DEBUG": "false",
"_ENABLE_SECURITY_AUDIT": "false",
"_SQL_SERVER_RESPONSE_FORMAT": "json",
"_comment_secrets": "--- Secret Management for Cloud Deployments (Defaults shown) ---",
"_SECRET_MANAGER_TYPE": "env",
"_AWS_REGION": "(required when SECRET_MANAGER_TYPE=aws)",
"_AZURE_KEY_VAULT_URL": "(required when SECRET_MANAGER_TYPE=azure)"
},
"_comment_working_dir": "=== Optional Working Directory ===",
"_note_working_dir": "Uncomment and customize if you need a specific working directory",
"_working_directory": "/path/to/your/working/directory"
}
}
}