1Read ASC Catalog: — Fetch subscription groups, subscriptions, and IAPs from App Store Connect using `asc` commands.
2Read RevenueCat Catalog: — Retrieve products, entitlements, offerings, and packages from RevenueCat using MCP tools.
3Build Mapping Plan: — Map ASC product types to RevenueCat product types and determine entitlement policies.
4Ensure Missing ASC Items (Optional): — Create missing subscription groups, subscriptions, and IAPs in ASC if requested.
5Ensure RevenueCat App and Products: — Create the RevenueCat app (if missing) and products, mapping `store_identifier` to ASC `productId`.
6Ensure Entitlements and Attachments: — Create entitlements and attach products to them in RevenueCat.
7Ensure Offerings and Packages (Optional): — Create or update offerings and packages, attaching products to packages with appropriate eligibility criteria.
8Generate Summary Report: — Return a final summary with created, skipped, and failed counts for both ASC and RevenueCat, along with attachment counts.