integrate-revenuecat: end-to-end RevenueCat integration
Use this skill when the user wants to add RevenueCat to a project for the first time, or to reconfigure the SDK with a public API key. The skill covers two halves:
- Dashboard side — set up the project, register the app, and obtain the public API key, all through the RevenueCat MCP server.
- App side — install the Purchases SDK, call at app entry, and verify the configuration banner in the logs.
Walk them in order. Most integrations need both halves, even when the user asks "just install the SDK" — the SDK needs an API key from the dashboard.
If a project + app already exist and the user only wants to wire the SDK into code, jump to
Section 3 below.
If the user wants to bootstrap a brand new RevenueCat project (apps + products + entitlements + offerings), use the
create-revenuecat-project
skill instead, then come back here for the SDK install.
Arguments
Available as
when invoked as a slash command:
- (optional): One of , , , , . If omitted, run the detection algorithm in Section 3a.
- (optional): Bundle ID (iOS) or package name (Android). If omitted, read it from the project files (, , , ).
- (optional): Name of the RevenueCat project to use. If omitted, list projects via MCP and ask the user.
1. Understand the status quo
Before touching the dashboard, gather the facts:
- Platform target: iOS / Apple App Store, Android / Google Play, or both. Inspect the working directory before asking — the detection algorithm in Section 3 makes this obvious for most projects.
- Technology: native iOS (Swift), native Android (Kotlin / Java), React Native, Flutter, Kotlin Multiplatform. SDK list: https://www.revenuecat.com/docs/getting-started/installation.md.
- App identifier: bundle ID (iOS), package name (Android). Pull from / / / rather than asking.
2. Dashboard side — RevenueCat MCP
Use the RevenueCat MCP server for every tool call below.
2a. Get or create the project
- — list accessible projects. If multiple, ask the user which one matches this app, or offer to create a new one.
- If there is no project, hand off to the
create-revenuecat-project
skill, then resume here.
- Store the for the rest of the steps.
2b. Get or create the app
- Check which apps are already configured in the project. A app is always present; and apps are present only if the user has finished store-side setup.
- Ask the user whether their app is already set up in App Store Connect (iOS) or Google Play Console (Android). Reassure them that store-side setup can come later — the app is enough to start integrating.
- If the user confirms store-side setup is done, call :
- iOS: , from Section 1.
- Android: , from Section 1.
- derived from the identifier or asked from the user.
2c. Get the public API key
- Call with the relevant app ID:
- / if the store-side app exists.
- Otherwise the app.
- The returned key is public and safe to embed in client app code. iOS keys are prefixed , Android keys , Amazon .
Never use the secret API key in client code. Secret keys are server-side only.
3. App side — install and configure the SDK
3a. Detect the platform
Inspect the working directory and pick the first match, from top to bottom:
- React Native: has a entry, or as a dependency → read
platforms/react-native.md
. If is also a dependency, note it as an Expo project.
- Flutter: exists at the project root → read .
- Kotlin Multiplatform: contains a multiplatform source sets block, or depends on
com.revenuecat.purchases:purchases-kmp*
→ read .
- Android (native): applies (and is not KMP) → read .
- iOS (native): , , , or at the project root → read .
If several match (e.g. an
folder inside a Flutter project), pick the
outermost project, the one that owns the build. If still ambiguous, ask the user which platform they want to configure.
3b. Shared concepts (all platforms)
- Public SDK key, not secret key. RevenueCat issues a separate public SDK key per store/platform. iOS apps use an key, Android apps use a key (Amazon uses ). Server-side secret keys must never appear in client apps.
- Configure once per app launch. Call exactly once, as early as possible (app entry point). Later calls no-op or warn.
- Anonymous users by default. If you don't pass an , RevenueCat creates a stable anonymous ID. Only pass if you already have an authenticated user at launch; otherwise call later (see the skill).
- Enable debug logging during integration. Each platform file shows how. Turn it off for release builds.
- Keep keys out of source control. Recommend (RN), (iOS), / (Android), or dart-define (Flutter) when the user asks about secret management.
3c. Implementation
Read the platform file that matches detection:
platforms/react-native.md
Each platform file is self-contained: install command, exact
snippet, and where to place it in the app entry point.
4. Verify
Do not claim setup is complete until:
- The project builds (Xcode build, , , , or the KMP equivalent).
- The app launches and the RevenueCat SDK logs a configuration banner in the console / logcat / Metro output (each platform file describes the expected log line).
- No authentication errors appear on the first SDK network call. A wrong API key surfaces as an auth error log as soon as the app fetches offerings.
If the user only asked to "install" without running the app, tell them what to look for in the logs when they do run it.
5. Next steps
5a. Products, entitlements, offerings
Check whether products, entitlements, and offerings are already set up in the project. If not, offer to help via the
create-revenuecat-project
skill.
5b. Store-side setup
iOS (App Store Connect)
- In-App Purchase Key (recommended for StoreKit 2) — App Store Connect → Users and Access → Integrations → In-App Purchase. Generate key, download the file. Note the Key ID and Issuer ID.
- Shared Secret (legacy StoreKit 1) — App Store Connect → App → App Information → App-Specific Shared Secret.
- If the user provides this information, register it on the RevenueCat side via / .
Android (Google Play Console)
- Service account credentials — Create a service account in Google Cloud Console. Grant "Service Account User" role. Create a JSON key. In Play Console, grant the service account access with "View financial data" permission.
- Real-time Developer Notifications (RTDN) — Set up a Cloud Pub/Sub topic. Configure in Play Console → Monetization setup.
- If the user provides this information, register it via / .
5c. Subsequent skills
Common follow-ups after
:
- — display a dashboard-configured paywall.
- — implement purchase + restore manually.
revenuecat-entitlements-gate
— gate features behind active entitlements.
- — wire / to the app's auth system.
- — set up a sandbox testing channel.
- — diagnose offerings / products / entitlement bugs.