-
v2.0.0 - Complete Refactor
StableAll checks were successfulPublish Package / publish (push) Successful in 35sreleased this
2025-10-10 11:40:46 +02:00 | 0 commits to main since this release🎉 Major Release - Complete Refactor
This release represents a complete architectural overhaul of the mobile-emulator-mcp server, transitioning from a monolithic structure to a modular, maintainable, and type-safe codebase.
✨ New Features
- Pagination Support: Added
limitandoffsetparameters tolist_emulatorstool for better handling of large device lists - Platform-Aware Tool Registration: Tools are now dynamically registered based on available platform tools (ADB for Android, simctl for iOS)
- Service-Oriented Architecture: Separate
AndroidEmulatorServiceandIosSimulatorServiceclasses for platform-specific operations - Testing Infrastructure: Added Vitest testing framework with 13 unit tests and coverage reporting
🏗️ Architecture
-
Modular Structure: Refactored from 657-line monolithic
index.tsto clean separation of concerns:types.ts: All TypeScript interfaces and type definitions (66 lines)emulator-service.ts: Base service class with Android and iOS implementations (355 lines)tool-definitions.ts: Tool schema definitions with platform detection (216 lines)handlers.ts: Tool execution handlers (138 lines)index.ts: Minimal server setup (117 lines, 82% reduction)
-
100% TypeScript Type Safety: Eliminated all
anytypes, replaced with proper interfaces -
Complete JSDoc Documentation: Every public method and class now has comprehensive documentation
📦 Dependencies
- Updated MCP SDK: Upgraded from 1.0.4 to 1.20.0
- Testing Tools: Added Vitest 3.2.4 and @vitest/coverage-v8
🧪 Testing
- 13 unit tests with 100% pass rate
- Test coverage reporting configured
- Automated testing for tool definitions and types
📄 Features
Android Tools (requires ADB):
android_screenshot: Take screenshots from Android emulatorsandroid_install_app: Install APK filesandroid_start_emulator: Start emulators by AVD nameandroid_tap: Simulate screen tapsandroid_input_text: Input text into appsandroid_logs: Retrieve logcat output
iOS Tools (requires simctl):
ios_screenshot: Take screenshots from iOS simulatorsios_install_app: Install .app bundlesios_start_simulator: Start iOS simulatorsios_logs: Retrieve system logs
Cross-Platform Tools:
list_emulators: List all available devices with pagination
Full changelog: https://git.customable.host/customable-mcp/mobile-emulator-mcp/src/branch/main/CHANGELOG.md
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- Pagination Support: Added