Ship a test build from Claude Code or Codex in one command
· 6 min read
Short answer: To ship a test build from Claude Code, add the AppForShare plugin with /plugin marketplace add appforshare/appforshare-mcp and /plugin install appforshare@appforshare, run /appforshare:setup once to sign in through your browser, then run /appforshare:ship whenever you want testers to have the current build. It builds when the project has a known build command, uploads with the branch and commit as notes, and answers with the install link, the QR code page and the store readiness result. Codex uses the same marketplace.
Coding assistants already write and run the build. The awkward part used to come after: copying an API token into a config file, looking up the upload command, and pasting a link into the team chat. This guide covers what the plugin adds, how sign in works without pasting a token, what each command does, and where the assistant stops and asks you first.
What the plugin installs
The plugin is a small package from the public repository appforshare/appforshare-mcp. It sets up two things in one step:
- The AppForShare MCP server (
npx appforshare-mcp), which gives the assistant tools such asupload_build,build_info,build_install_issues,list_feedbackandlist_channels. - Skills used as slash commands, which tell the assistant the order of steps and when to ask before acting.
# Claude Code
/plugin marketplace add appforshare/appforshare-mcp
/plugin install appforshare@appforshare
/appforshare:setup
# Codex (in a terminal, then install appforshare from the marketplace in Codex)
codex plugin marketplace add appforshare/appforshare-mcp
The plugin is free. Uploads from the CLI or an assistant and most tools need Pro or Team; on Free, signing in works and uploads stay on the website.
Sign in without a token
The first time, /appforshare:setup calls the sign_in tool. It shows an 8 letter code and the address appforshare.io/device, and opens your browser when the computer has one. On that page, signed in to AppForShare, you see the code, the computer name and system, the app and version and the network address it asked from. Check that they match, pick a workspace (Personal, or a Team workspace where you are Owner, Admin or Developer) and press Approve.
- A code works once, for 5 minutes.
- The computer gets an upload token valid for 90 days, saved in
~/.config/appforshare/credentials.jsonand readable only by you. The plugin, the npm MCP server and the CLI share it. - Only a hash of the token is kept on our side. Signing in again with the same app on the same computer and workspace revokes the older token.
- A team that requires two step sign in refuses approval from a member who has not set it up, and each approval is a security line in the team's activity feed.
appforshare logoutor thesign_outtool revokes the token and deletes the file. Settings, API tokens lists every browser sign in, where Revoke stops it at once.
The same flow works in a plain terminal with npx appforshare login, and over SSH, because the code prints in the terminal and you approve on any device. Details are in browser sign in.
The four commands
/appforshare:setup
Signs you in, makes the first upload, offers a channel with a link that never changes, points you to the dashboard steps for Slack, Microsoft Teams or Discord notifications, and walks through iPhone device registration for ad hoc builds. It runs the build through the local check before the first upload, so blockers show before anything is sent.
/appforshare:ship
Builds only when it finds a known build command (for example flutter build apk --release or ./gradlew assembleRelease) and asks before running anything that takes minutes. For iOS it does not invent signing settings: without a script or a fastlane lane, it asks you for the exported .ipa. It writes notes from the branch and the last commit subject, uploads, and reports the install link, the QR code page and each store readiness blocker with its fix. Putting the build into a channel moves that link for every tester, so it asks first.
/appforshare:ci
Finds your CI system (GitHub Actions, Bitrise, CircleCI, Codemagic, GitLab CI, Bitbucket Pipelines or Azure Pipelines), finds the job that already builds the app, and adds the upload step after it. It never adds a second build. Storing the token as a secret is your step; it runs gh secret set only after asking, and you type the token yourself. On GitHub Actions it can add the pull request comment with install links, described in a test build link on every pull request.
/appforshare:why-cant-install
For "Unable to install", "App not installed" or "Integrity could not be verified". It reads the build's install facts with build_install_issues (signing, the profile and its end date, whether a given iPhone's UDID is in it, minimum OS, iPad only builds, test only APKs) and gives the cause in one sentence and the fix as steps for whoever has to act.
Where the assistant stops and asks
The skills are written so the assistant does not surprise your testers. It does not email testers, share with groups or change link settings unless you asked in the conversation. Changing who can install, such as pausing a link or moving a channel, needs your yes. It never asks you to paste a token into the chat. The store readiness result is reported as guidance for review, never as a promise that the store will approve the app.
Without the plugin
The plugin is a shortcut, not a requirement:
- Claude Code with the hosted server.
claude mcp add --transport http --scope user appforshare https://appforshare.io/api/mcp, then/mcpand sign in when the browser opens. - Cursor, VS Code and other MCP apps. The setup for each is in the MCP server docs.
- Plain commands.
npx appforshare upload app-release.apk --notes "checkout fix" --channel betadoes what/appforshare:shipdoes, and fits any script. See upload from CI.
For what assistants are good at in release work and what should stay with a person, see AI for mobile app releases.
Common questions
Does the plugin work in Codex as well as Claude Code?
Yes. Add the marketplace with codex plugin marketplace add appforshare/appforshare-mcp, install appforshare from it, then mention $appforshare:setup.
Where is my sign in stored?
In ~/.config/appforshare/credentials.json on your computer, readable only by you. Our side keeps only a hash of the token.
Can I use it in CI?
Use an API token there instead. APPFORSHARE_TOKEN and --token always win over a saved sign in, so CI jobs behave as before.
What does it cost?
The plugin and the sign in are free. Uploading from an assistant or the CLI is part of Pro and Team; see pricing.


