revenuecat-store-state
About revenuecat-store-state
A RevenueCat product store-state management skill for people configuring store products through MCP or the `rc` CLI. Its reviewable plan-and-confirm workflow covers inspection, planning, applying changes, and submitting products for review.
Key features
- 01Read store state and warnings
- 02Create and review change plans
- 03Apply store writes after confirmation
- 04Manage pricing, availability, and localizations
- 05Track plans and application results
Use cases
- 01Check a product’s store prices and availability
- 02Plan subscription price or offer changes
- 03Review production changes before applying
- 04Submit applied products for App Store review
MCP support
RevenueCat MCP tools and the `rc` CLI share a plan-and-apply model. The skill documents the relevant MCP tools and workflow.
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ revenuecat/ ai-toolkit --skill revenuecat-store-stateAfter installing, type/revenuecat-store-statein Claude Code to confirm it loaded.
Details
From the project READMEManaging product store state
The store is the source of truth for prices, availability, localizations, and offers. Reads are immediate. Writes go through a product store state plan: create a draft, compute a reviewable diff, then apply. Nothing reaches the store until the plan is applied.
MCP and the rc CLI (see the revenuecat-cli skill) use the same plan/apply model. Prefer whichever surface is available. Refer to the MCP tool schemas (or rc commands --schemas --json) for exact parameters.
There is at most one active (non-terminal) plan per project. List plans before creating a new one; if create fails because a plan is already in progress, fetch it, describe what is pending, and decide with the user whether to continue it or discard it.
Reads
Always use get-product-store-state (CLI: rc products show <product-id> --store-state). Never infer store prices, availability, or trials from get-product, list-products, or offering data — those are RevenueCat catalog, not store state. Surface the response's warnings.
If store_status.status is could_not_check, RevenueCat could not read the store: empty pricing, availability, or localizations mean the read failed, not that nothing is configured. Say the product couldn't be read from the store, without guessing a cause — never say it has no store prices.
Prerequisites
Store-state writes require store credentials connected to the RevenueCat project (an App Store Connect API key, or a Google Play service account with the Manage store presence permission) and a RevenueCat login with write access to the project. If a write fails with a credentials or permission error, report what is missing and how to fix it (dashboard app settings for store credentials) instead of retrying.
Confirm before applying
Apply writes to production stores and can change what live customers see and pay. Never call apply until you have shown the planned diffs and the user has explicitly confirmed.
After planning succeeds:
- Summarize
summaryand eachplan_items[*].diffin plain language (before → after per field). - Report every warning (
severity,field,message) verbatim, from bothwarningsandplan_items[*].warnings. Never downgrade a blocker or argue that its validator doesn't apply to this store (not "blocker on territories, but not applicable to Play — applying"). Never apply if anyplan_items[*].warningshasseverity: blocker. Fix the desired state, update the plan, and re-plan until there are no item-level blockers. - Share the dashboard review URL for every plan you describe — including one whose planning failed (the page shows the errors) and an existing plan that blocks a create:
https://app.revenuecat.com/projects/{project_id}/product-catalog/product-editor/review-changes?plan_id={plan_id}Adrafthas no review page yet; describe its contents instead. - Wait for an explicit go-ahead. Confirm each product's change individually or as one clearly itemized batch — never fold unrelated changes into a single confirmation.
- Only then call apply, and only if
actionsincludesapply.
Reads do not need confirmation. Submitting products to Apple for review is a separate confirmed write (submit-products-to-store).
Recommended write flow (MCP)
- Inspect first.
get-product-store-stateon existing products before deciding the desired changes. - Create a draft plan.
create-product-store-state-planwith onedesired_statesentry per product.- Target an existing RevenueCat product with
product_id, or passcreate_revenuecat_product(app_id,store_identifier,type,display_name, andtitle— when the user gave only one name, use it for both). - Set
storetoapp_store,play_store,rc_billing, ortest_storeand populate the matchingstore_state. - Put prices, availability, localizations, and (if the user provided one) the review screenshot in the desired state. Do not call
create-product-prices,upload-product-store-state-screenshot, orequalize-subscription-prices. - App Store subscriptions: send the prices to keep in
territory_pricesand includecommon.pricing.equalize_missing_subscription_priceswith thatbase_territoryso missing Apple territories are filled at apply. Do not send that field for App Store one-time products. - App Store review screenshots: omit screenshot so apply can upload a blank placeholder unless the user supplied an image.
- RC Billing / Test Store: pricing is
common.pricing.currency_prices(create-only; updating an existing currency is rejected). There is no equalization, so every currency must come from the user. - Play Store subscriptions: set
store_state.base_plans[<id>].other_regions_config.usd_price(andeur_priceif the euro zone matters) so Google fills unlisted regions; useregional_configs[<region>].priceonly for regions the user wants to override. - Never invent territory or currency prices or convert them with exchange rates. If the user didn't give a price for a territory, ask whether to fill it from another currency using the store mechanisms above. Every price is
amount_micros(1 unit = 1,000,000 micros). - Approved App Store subscriptions (check with
get-product-store-state): Apple never applies a price or intro-offer change immediately. Set a futurestart_date(the next day works) on eachterritory_prices[<territory>]entry you change and on any intro/trial offer you add — without it Apple rejects the change and apply stops at that territory. Keep usingequalize_missing_subscription_pricesfor unpriced territories; it carries the base territory'sstart_dateinto the gaps. Tell the user when the change takes effect and create the plan in the same turn; the date alone is not a reason to ask before planning. - Desired states are patches: omitted fields stay unchanged, a
nullmap value deletes that entry, andterritories: falseremoves availability.
- Target an existing RevenueCat product with
- Plan.
plan-product-store-state-plan, then pollget-product-store-state-planuntil status isplanned,planned_and_finished, orplan_errored. - Review with the user. Follow Confirm before applying. If planning failed, report
error_message/ per-item errors and the review URL; do not apply. - Apply.
apply-product-store-state-plan. Then pollget-product-store-state-planuntilappliedorapply_errored. Share the progress URLhttps://app.revenuecat.com/projects/{project_id}/product-catalog/product-editor/commit-to-store?plan_id={plan_id}. If apply looks like it will take more than ~10 minutes, stop polling, give the estimated completion, and point the user to that page (or to ask you again later). Report per-productapply_statusand anyapply_error_message. Apply stops at the first failing item and leaves earlier items committed; a retry re-runs only the items that did not apply. If apply fails because the store changed after planning, tell the user and start a new plan from the fresh state. - Submit for review when ready. App Store only: after apply succeeded, the change is in App Store Connect but not yet submitted to Apple. Offer
submit-products-to-storefor the products just applied (confirmed write). Submit only what the user asked for or what just applied (apply_status: applied, or present inget-product-store-state), never every product that looks ready. Report the per-product outcomes, including skipped ones; if a submission fails, report why and stop. Skip for Play Store, RC Billing, and Test Store.
To abandon a draft or planned plan, discard-product-store-state-plan. To change a draft, update-product-store-state-plan then plan again.
Gotchas
- App Store localizations: name ≤ 30 characters, description ≤ 45. The API accepts longer values and Apple rejects them at apply.
- Store products cannot be deleted. To retire one, set its territories to
false(and move Play base plans out ofACTIVE), thenarchive-productif it should also stop appearing in RevenueCat.
CLI equivalents
See the revenuecat-cli skill for install, auth, and schema discovery. Mapping:
- Read:
rc products show <product-id> --store-state - Create + compute diff:
rc products store plan <app-id> --file <csv|json> - Re-display a saved plan:
rc products store show <plan-id> - Apply / discard:
rc products store apply <plan-id>/rc products store discard <plan-id>
CLI apply waits for completion (no separate poll). Still show the plan diff and wait for confirmation before apply. Confirm exact flags with rc commands --schemas --json.
Do not use these MCP tools for writes
These may still appear in the MCP catalog. They write one product with no previewable plan. Prefer the plan tools above.
set-product-store-stateget-product-store-state-operationcreate-product-pricesupload-product-store-state-screenshotequalize-subscription-prices