#!/usr/bin/env node
const args = process.argv.slice(2);
const command = args[0];

if (command === 'mobile') {
    // Remove the 'mobile' argument and pass the rest
    process.argv.splice(2, 1);
    require('./mobile.js');
} else if (command === 'playwright') {
    // Remove the 'playwright' argument and pass the rest
    process.argv.splice(2, 1);
    require('./playwright.js');
} else {
    console.log('Mobitru MCP Server');
    console.log('');
    console.log('Usage:');
    console.log('  npx mobitru-mcp-server mobile [options]     - Start mobile server');
    console.log('  npx mobitru-mcp-server playwright [options] - Start playwright server');
    console.log('');
    console.log('Examples:');
    console.log('  npx mobitru-mcp-server mobile');
    console.log('  npx mobitru-mcp-server playwright');
    process.exit(command ? 1 : 0);
}
