mobile-release-mcp
# mobile-release-mcp
An [MCP](https://modelcontextprotocol.io) server that takes care of the boring parts of shipping a React Native or Expo app. Point Claude, Cursor or any MCP client at it and ask things like:
- "Bump the app to the next minor version, show me a dry run first."
- "Write release notes since the last tag and keep the store text under 500 characters."
- "Which iOS build is still processing?"
- "What's on the Play production track and how far is the rollout?"
Most mobile releases repeat the same checklist: version strings that drift between `Info.plist`, `build.gradle` and `app.json`, build numbers that have to go up on both stores, and release notes written at the last minute. An agent can do all of that if it has safe tools.
## Tools
| Tool | What it does | Writes? |
|---|---|---|
| `get_versions` | Reads version and build numbers from `package.json`, `app.json`, `android/app/build.gradle` and `ios/<App>/Info.plist`, and warns when they disagree | No |
| `bump_version` | Bumps major / minor / patch everywhere and sets one shared build number (highest existing + 1) on both platforms. `dryRun` is on by default | Only with `dryRun: false` |
| `draft_release_notes` | Reads conventional commits since the last tag, groups them (New, Fixes, Performance), hides `chore`/`ci`/`test` noise and produces store text that fits the limit | No |
| `asc_list_builds` | Latest App Store Connect builds for a bundle id, with marketing version and processing state | No |
| `play_track_status` | What's live on each Google Play track, with version codes and rollout fraction. Uses a temporary edit that is deleted afterwards | No |
The store tools are read-only on purpose. Uploading and promoting builds stays with your CI.
## Setup
```bash
git clone https://github.com/ahsan1998/mobile-release-mcp
cd mobile-release-mcp
npm install && npm run build
```
Add it to your MCP client. For Claude Desktop (`claude_desktop_config.json`):
```json
{
"mcpServers": {
"mobile-release": {
"command": "node",
"args": ["/path/to/mobile-release-mcp/dist/index.js"],
"env": {
"ASC_KEY_ID": "XXXXXXXXXX",
"ASC_ISSUER_ID": "00000000-0000-0000-0000-000000000000",
"ASC_PRIVATE_KEY": "-----BEGIN PRIVATE KEY-----\\n...\\n-----END PRIVATE KEY-----",
"GOOGLE_PLAY_SERVICE_ACCOUNT_JSON": "{\"client_email\":\"...\",\"private_key\":\"...\"}"
}
}
}
}
```
The version and release-notes tools need no credentials. Leave the env block out if you only want those.
### Credentials
- **App Store Connect:** create an API key under Users and Access → Integrations (Developer role is enough for reading builds). The server signs a short-lived ES256 token per request; the key never leaves your machine.
- **Google Play:** a service account with read access to the app in Play Console. The server exchanges a signed JWT for an OAuth token and caches it until it expires.
## How it works
```
src/
tools/versions.ts parse + rewrite gradle, plist, app.json, package.json
tools/releaseNotes.ts conventional-commit parser and note builder
clients/appStoreConnect ES256 JWT (jose) + /v1/apps, /v1/builds
clients/googlePlay service-account JWT → OAuth token → edits/tracks
server.ts MCP tool definitions with zod schemas
index.ts stdio transport
```
Some decisions:
- **One build number for both stores.** iOS and Android build numbers drift apart quickly. Taking the max and adding one keeps them in step and never goes backwards.
- **Dry run by default.** An agent should show you the diff before it touches version files.
- **Regex edits, not reformatting.** `build.gradle` and `Info.plist` are edited in place so your formatting and comments survive.
- **Injectable `fetch`.** Both store clients take a `fetch` so they can be tested without network access.
## Development
```bash
npm test # vitest: fixtures, a temp git repo, mocked store APIs
npm run typecheck
```
Tests cover the version parsers against real-shaped bare RN and Expo projects, release notes from an actual git history, JWT signing (verified with the matching public key) and the store API flows with a mocked `fetch`.
## Roadmap
- `build.gradle.kts` and `Info.plist` values that reference `$(MARKETING_VERSION)` in the Xcode project
- TestFlight "What to test" text from the release notes
- Crash-free rate per release from Firebase Crashlytics
## License
MIT
TDQS
Scored across 5 tools
The three local tools (get_versions, bump_version, draft_release_notes) are clearly distinct by action, and the two store tools split cleanly by platform. Minor confusion risk: asc_list_builds and play_track_status both answer 'what's the release state remotely' but with asymmetric operations, and get_versions vs asc_list_builds both surface build/version info from different sources.
The first three tools follow a clean verb_noun snake_case pattern (get_versions, bump_version, draft_release_notes). The store tools break it with platform prefixes and inconsistent verbs (asc_list_builds has a verb, play_track_status does not), mixing conventions.
Five tools is a lean, well-scoped set where each earns its place, covering versioning, notes, and both store dashboards. It leans slightly thin given the breadth of the mobile-release domain, but nothing is redundant.
Local version read/bump and release-note drafting are covered, but the store surface is asymmetric: iOS has build listing while Play only shows track status, and vice versa, leaving no equivalent cross-platform view. There is also no tool to upload/submit a build, a notable gap for a 'release' lifecycle.