Mobile MCP: let AI agents drive your iOS and Android apps. MCP server for simulators, emulators and real devices. Works with Claude Code, Codex, Cursor and any MCP client.
TypeScript agentandroidandroid-automationappium-alternativeclaude-codecodexcursoremulatoriosios-automationmcpmcp-servermobilemobile-automationmobile-testingreal-devicesimulatorskills
fix: wait for package on npm before publishing to mcp registry
gmegidisheab93bf2b97e
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex fc4fbbd..9a438b2 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -80,6 +80,22 @@ jobs:run: |npm publish --access public --provenance+ - name: Wait for package to be available on npm+ env:+ VERSION: ${{ github.ref_name }}+ run: |+ # npm takes a while to serve a freshly published version; give up after 5 minutes+ for attempt in $(seq 1 60); do+ if npm view "@mobilenext/mobile-mcp@$VERSION" version >/dev/null 2>&1; then+ echo "@mobilenext/mobile-mcp@$VERSION is available on npm"+ exit 0+ fi+ echo "Waiting for @mobilenext/mobile-mcp@$VERSION on npm (attempt $attempt/60)"+ sleep 5+ done+ echo "@mobilenext/mobile-mcp@$VERSION did not appear on npm in time"+ exit 1+- name: Publish on github mcp registryenv:VERSION: ${{ github.ref_name }}