|
| 1 | +# @tmhs/mobile-mcp |
| 2 | + |
| 3 | +MCP server for mobile app development — **36 tools** that let AI agents scaffold, build, test, and ship React Native/Expo and Flutter apps. |
| 4 | + |
| 5 | +Part of [Mobile App Developer Tools](https://github.com/TMHSDigital/Mobile-App-Developer-Tools), a Cursor plugin with 43 skills, 12 rules, and this companion MCP server. |
| 6 | + |
| 7 | +## Install |
| 8 | + |
| 9 | +```bash |
| 10 | +npm install -g @tmhs/mobile-mcp |
| 11 | +``` |
| 12 | + |
| 13 | +Requires **Node 20+**. |
| 14 | + |
| 15 | +## Quick start |
| 16 | + |
| 17 | +Add to your MCP client config (e.g. Cursor, Claude Desktop): |
| 18 | + |
| 19 | +```json |
| 20 | +{ |
| 21 | + "mcpServers": { |
| 22 | + "mobile-mcp": { |
| 23 | + "command": "npx", |
| 24 | + "args": ["-y", "@tmhs/mobile-mcp"] |
| 25 | + } |
| 26 | + } |
| 27 | +} |
| 28 | +``` |
| 29 | + |
| 30 | +Or run directly: |
| 31 | + |
| 32 | +```bash |
| 33 | +npx @tmhs/mobile-mcp |
| 34 | +``` |
| 35 | + |
| 36 | +The server communicates over **stdio** using the [Model Context Protocol](https://modelcontextprotocol.io/). |
| 37 | + |
| 38 | +## Tools (36) |
| 39 | + |
| 40 | +All tools use the `mobile_` prefix. |
| 41 | + |
| 42 | +| Tool | Description | |
| 43 | +| --- | --- | |
| 44 | +| `mobile_checkDevEnvironment` | Detect installed tools and SDKs (Node, Expo CLI, Watchman, Xcode, Android Studio, JDK) | |
| 45 | +| `mobile_scaffoldProject` | Generate a new Expo project from a template with chosen options | |
| 46 | +| `mobile_runOnDevice` | Start dev server and provide instructions for connecting a physical device | |
| 47 | +| `mobile_generateScreen` | Create a new Expo Router screen file with navigation wiring | |
| 48 | +| `mobile_generateComponent` | Create a React Native component with typed props, StyleSheet, and optional tests | |
| 49 | +| `mobile_installDependency` | Install a package via `npx expo install` with native module detection | |
| 50 | +| `mobile_addPermission` | Add platform permission with iOS rationale string to app.json | |
| 51 | +| `mobile_integrateAI` | Scaffold AI API client with provider config, error handling, and TypeScript types | |
| 52 | +| `mobile_checkBuildHealth` | Validate app.json, check dependencies, verify TypeScript, detect native module issues | |
| 53 | +| `mobile_addPushNotifications` | Add expo-notifications plugin, create notification handler, configure Android channel | |
| 54 | +| `mobile_configureDeepLinks` | Set scheme, add intent filters, iOS associated domains, generate AASA template | |
| 55 | +| `mobile_resetDevEnvironment` | Clear Metro cache, .expo dir, node_modules cache, optionally Pods and Gradle | |
| 56 | +| `mobile_buildForStore` | Create a production build for app store submission via EAS Build | |
| 57 | +| `mobile_validateStoreMetadata` | Check app.json for required store listing fields | |
| 58 | +| `mobile_submitToAppStore` | Submit latest iOS build to App Store Connect via EAS Submit | |
| 59 | +| `mobile_submitToPlayStore` | Submit latest Android build to Google Play Console via EAS Submit | |
| 60 | +| `mobile_generateScreenshots` | Generate screenshot capture script and list required store dimensions | |
| 61 | +| `mobile_analyzeBundle` | Analyze bundle for large dependencies, heavy assets, and optimization opportunities | |
| 62 | +| `mobile_configureOTA` | Configure EAS Update for over-the-air JavaScript updates | |
| 63 | +| `mobile_runTests` | Execute test suite (Jest or flutter test) and return structured results | |
| 64 | +| `mobile_setupCI` | Generate GitHub Actions CI workflow for build, test, and EAS Build | |
| 65 | +| `mobile_generateTestFile` | Scaffold a test file for an existing component or module | |
| 66 | +| `mobile_setupI18n` | Initialize i18n config with locale files and translation structure | |
| 67 | +| `mobile_addMap` | Add map view with provider config, permissions, and marker support | |
| 68 | +| `mobile_generateForm` | Scaffold a validated form with typed fields and error handling | |
| 69 | +| `mobile_setupRealtime` | Add real-time client with connection management and typed events | |
| 70 | +| `mobile_securityAudit` | Scan project for common mobile security anti-patterns | |
| 71 | +| `mobile_profilePerformance` | Analyze project for performance anti-patterns and flag jank/memory issues | |
| 72 | +| `mobile_checkOfflineReady` | Validate offline-first setup: local DB, network listener, query cache | |
| 73 | +| `mobile_setupMonitoring` | Configure APM with Sentry Performance or Datadog RUM | |
| 74 | +| `mobile_setupTheming` | Initialize design token system with light/dark themes and semantic colors | |
| 75 | +| `mobile_auditAccessibility` | Scan project for a11y violations: labels, touch targets, alt text | |
| 76 | +| `mobile_setupFeatureFlags` | Add typed feature flag provider with default values and remote sync | |
| 77 | +| `mobile_createNativeModule` | Scaffold an Expo Module or Flutter plugin with Swift/Kotlin stubs | |
| 78 | +| `mobile_upgradeSDK` | Generate SDK upgrade plan with dependency fixes and breaking changes | |
| 79 | +| `mobile_checkNativeCompat` | Audit packages for New Architecture support and deprecated dependencies | |
| 80 | + |
| 81 | +## Development |
| 82 | + |
| 83 | +```bash |
| 84 | +git clone https://github.com/TMHSDigital/Mobile-App-Developer-Tools.git |
| 85 | +cd Mobile-App-Developer-Tools/mcp-server |
| 86 | +npm install |
| 87 | +npm run build |
| 88 | +``` |
| 89 | + |
| 90 | +## License |
| 91 | + |
| 92 | +[CC-BY-NC-ND-4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/) — Copyright 2026 TM Hospitality Strategies. |
0 commit comments