Skip to content

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.

feat: automatic publish versions to github mcp-registry (#212)

Gil Megidishe902e91c4790
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index df5584c..2253a88 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,5 +1,6 @@
name: Build
permissions:
+ id-token: write
contents: write
on:
@@ -58,22 +59,14 @@ jobs:
echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> ~/.npmrc
npm publish
-# - name: Install Android SDK
-# uses: android-actions/setup-android@v3
-#
-# - name: Create and start Android emulator
-# run: |
-# # create avd
-# echo "y" | sdkmanager "system-images;android-31;google_apis;x86_64"
-# avdmanager create avd -n test -k "system-images;android-31;google_apis;x86_64" --device "pixel"
-# # start emulator
-# sudo ANDROID_AVD_HOME="$HOME/.config/.android/avd" nohup $ANDROID_HOME/emulator/emulator -avd test -no-metrics -no-window -no-audio -no-boot-anim -gpu swiftshader_indirect &
-# # wait for device
-# adb wait-for-device
-# echo "Waiting for sys.boot_completed"
-# while [[ -z $(adb shell getprop dev.bootcomplete) ]]; do sleep 1; done;
-# timeout-minutes: 10
-#
-# - name: Run android tests
-# run: |
-# npm test
\ No newline at end of file
+ - name: Publish on github mcp registry
+ if: github.ref_type == 'tag'
+ run: |
+ # get homebrew in path
+ eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
+ brew install mcp-publisher
+ mcp-publisher login github-oidc
+ # patch version
+ sed -i "s/{{VERSION}}/${{ github.ref_name }}/g" server.json
+ mcp-publisher publish
+ mcp-publisher logout
diff --git a/server.json b/server.json
index 498ba66..9e69e1e 100644
--- a/server.json
+++ b/server.json
@@ -7,13 +7,13 @@
"url": "https://github.com/mobile-next/mobile-mcp",
"source": "github"
},
- "version": "0.0.31",
+ "version": "{{VERSION}}",
"packages": [
{
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"identifier": "@mobilenext/mobile-mcp",
- "version": "0.0.31",
+ "version": "{{VERSION}}",
"transport": {
"type": "stdio"
},