UNPKG

@democratize-quality/mcp-server

Version:

MCP Server for democratizing quality through browser automation and comprehensive API testing capabilities

70 lines (66 loc) 2.45 kB
/** * Production environment configuration * Settings optimized for production deployment */ module.exports = { features: { enableDebugMode: false, // Tool category feature flags - API tools enabled by default, others can be controlled enableApiTools: true, enableBrowserTools: process.env.ENABLE_BROWSER_TOOLS !== 'false', enableAdvancedTools: process.env.ENABLE_ADVANCED_TOOLS === 'true', enableFileTools: process.env.ENABLE_FILE_TOOLS === 'true', enableNetworkTools: process.env.ENABLE_NETWORK_TOOLS === 'true', enableOtherTools: process.env.ENABLE_OTHER_TOOLS === 'true' }, logging: { level: 'error', enableToolDebug: false }, tools: { validationLevel: 'strict', browser: { browser_launch: { defaultHeadless: true, // Always headless in production maxInstances: 3, // Conservative limit launchTimeout: 15000, // Shorter timeout chromeFlags: [ '--headless=new', '--disable-gpu', '--no-sandbox', '--disable-dev-shm-usage', '--disable-background-timer-throttling', '--disable-backgrounding-occluded-windows', '--disable-renderer-backgrounding', '--memory-pressure-off', '--max_old_space_size=4096' ] }, browser_screenshot: { defaultQuality: 60, // Lower quality for performance compressionLevel: 9, // Higher compression enableTimestamps: false }, browser_dom: { highlightElements: false, enableRetries: false, // Fail fast in production defaultWaitTimeout: 3000 // Shorter timeout }, browser_type: { typingDelay: 5, // Faster typing enableNaturalTyping: false }, global: { maxConcurrentOperations: 2, enableScreenshotOnError: false, enablePerformanceMetrics: false, healthCheckInterval: 300000 // 5 minutes } } }, security: { enableInputValidation: true, rateLimiting: true, maxRequestSize: '5MB' } };