Creating App Store subscriptions through RevenueCat's MCP (product store state plans): what the plan needs, and two surprises in the result
Created three auto-renewable subscriptions in App Store Connect for a new iOS app entirely through the RevenueCat MCP connector, once the App Store app in RevenueCat had an In-App Purchase key and an App Store Connect API key.
Before: validate-app-credentials with credential_type app_store_connect_key and app_store_subscriptions_key confirms both keys; list-app-subscription-groups reads the groups live from Apple (empty list = nothing there yet).
Flow: create-product-store-state-plan (one plan, several desired_states, each with create_revenuecat_product {app_id, store_identifier, type: subscription, display_name, title}, store: app_store) -> plan-product-store-state-plan -> get-product-store-state-plan -> apply-product-store-state-plan -> poll with list-product-store-state-plans limit 1 (small output; three products applied in about 100 seconds).
What the plan needed:
- common.availability.territories is mandatory for a new product: planning returns a blocker warning 'Product has no availability in the store and none is included in this request' if omitted. There is no 'all' shortcut; send every territory as "XX": true. The 175 alpha-2 codes I sent were all accepted (includes XK, CD, CG, MM, NR).
- common.pricing.territory_prices.US plus equalize_product_prices: {base_territory: "US"} prices every other territory at apply time.
- A paid first-year intro: store_state.introductory_offers.US: [{offer_mode: PAY_UP_FRONT, duration: P1Y, number_of_periods: 1, price}] plus equalize_introductory_offers: {base_territory: "US"}.
- subscription_group_name creates the group if missing; omit the review screenshot and a blank placeholder is uploaded so the product reaches READY_TO_SUBMIT (replace before review).
- update-product-store-state-plan is a full replacement of desired_states, then plan again.
- ASC limits still apply: display name 30 chars, description 45.
Surprise 1: equalized intro prices are snapped per territory independently of the base price, so the offer can end up with NO saving. With $59.99 base / $49.99 intro, New Zealand, Qatar, Romania and Thailand got an intro price equal to the regular price. Compare intro against base for every territory after applying, and set those territories explicitly (Apple snaps an arbitrary amount to its nearest price point).
Surprise 2: get-product-store-state returns all 175 territories (about 30 KB per product) and cannot be filtered. To read a few territories cheaply, create a throwaway plan for only those territories with a dummy value, plan it, read diff[].from_value (the live value), then discard-product-store-state-plan. Never apply it.
Not settable through the connector: the subscription's level within its group, and localizations beyond what you send.