nia-web-eval-agent-mcp
Version:
NIA AI Web Evaluation Agent MCP Server - Autonomous browser testing and debugging
41 lines (35 loc) • 1.41 kB
JavaScript
const { execSync } = require('child_process');
const os = require('os');
console.log('🔧 Setting up NIA Web Eval Agent dependencies...');
// Check platform
const platform = os.platform();
const isWindows = platform === 'win32';
// Install uv if not present
try {
execSync('uv --version', { stdio: 'ignore' });
console.log('✅ uv is already installed');
} catch (error) {
console.log('📦 Installing uv...');
try {
if (isWindows) {
execSync('powershell -c "irm https://astral.sh/uv/install.ps1 | iex"', { stdio: 'inherit' });
} else {
execSync('curl -LsSf https://astral.sh/uv/install.sh | sh', { stdio: 'inherit' });
}
console.log('✅ uv installed successfully');
} catch (installError) {
console.warn('⚠️ Could not auto-install uv. Please install manually:');
console.warn(' Visit: https://docs.astral.sh/uv/getting-started/installation/');
}
}
// Check if playwright is available globally
try {
execSync('playwright --version', { stdio: 'ignore' });
console.log('✅ Playwright is already installed');
} catch (error) {
console.log('🎭 Playwright will be installed when first needed');
}
console.log('🎉 Setup complete! You can now use the NIA Web Eval Agent MCP Server');
console.log('📖 Documentation: https://github.com/nia-ai-app/web-eval-agent');
console.log('🔑 Get your API key: https://trynia.ai');