💰create-revenuecat-project
- プラグイン
- revenuecat
- ソース
- GitHub で見る ↗
説明
RevenueCatプロジェクトを一から完全にセットアップします —— アプリ、プロダクト、エンタイトルメント、オファリング、パッケージを正しい順序で作成します。 次のような場合に使用: ユーザーが新しいRevenueCatプロジェクトの作成、アプリ内購入の設定、サブスクリプションやマネタイゼーションの構成、またはiOS・Android・Web向けのIAPインフラのブートストラップを行いたい場合。
原文を表示
Set up a complete RevenueCat project from scratch — creates apps, products, entitlements, offerings, and packages in the correct order. Use when the user wants to create a new RevenueCat project, configure in-app purchases, set up subscriptions or monetization, or bootstrap IAP infrastructure for iOS, Android, or Web.
ユースケース
- ✓新しいRevenueCatプロジェクトを作成するとき
- ✓アプリ内購入を設定するとき
- ✓サブスクリプションを構成するとき
- ✓iOS・Android・Web向けのIAPインフラをセットアップするとき
本文(日本語訳)
RevenueCat プロジェクト ブートストラップ
ゼロから RevenueCat プロジェクトを完全にセットアップする手順をガイドします。
手順
重要: すべてのツール呼び出しには RevenueCat MCP サーバーを使用してください。
MCP サーバーは複数のプロジェクトにアクセスできる場合があります。
必ず最初に list-projects を実行して、アクセス可能なすべてのプロジェクトを取得してください。
複数のプロジェクトが返された場合は、どのプロジェクトを使用するか、または新しいプロジェクトを作成するかをユーザーに確認してください。
フェーズ 1: 要件の把握
開発者のニーズを理解するために、以下の項目を質問します:
- 対応プラットフォーム — 「どのプラットフォーム向けに開発していますか?」(iOS、Android、Web、または複数)
- ビジネスモデル — 「どのような収益化を予定していますか?」(サブスクリプション、買い切り、消耗型、またはそれらの組み合わせ)
- サブスクリプションの階層 (該当する場合) — 「どのようなサブスクリプションプランを提供したいですか?」(一般的な例: 月額+年額、単一プラン、フリーミアム+プレミアム)
- アプリの詳細 — Bundle ID (iOS、例:
com.company.appname)、パッケージ名 (Android)、表示名
フェーズ 2: リソースの作成
以下の順序で実行してください — 依存関係があるため順序が重要です。
-
プロジェクトの確認 / 作成
list-projectsでアクセス可能なプロジェクトを一覧表示します。 複数ある場合: どれを使用するか、または新規作成するかをユーザーに確認してください。 新しいプロジェクトを作成する場合は、create-projectMCP ツールを使用してください。 以降のすべての呼び出しのためにproject_idを保存してください。 -
App の作成 (プラットフォームごとに実施):
- モバイルアプリの場合: ユーザーが App Store Connect / Google Play Console でのアプリ設定を済ませているか確認してください。設定済みであれば、
create-appツール (type:app_store|play_store) で App を作成します。未設定の場合は、自動生成されるtest_storeApp を使用し、App Store Connect / Google Play Console との連携は後から設定できることをユーザーに伝えてください。 - Web アプリの場合:
create-appを type:rc_billingで実行してください。
- モバイルアプリの場合: ユーザーが App Store Connect / Google Play Console でのアプリ設定を済ませているか確認してください。設定済みであれば、
-
プロダクトの作成 (サブスクリプション / 購入アイテムごとに):
create-productツールを使用 -
エンタイトルメントの作成 (機能 / アクセスレベルごとに):
create-entitlementツールを使用 -
プロダクトをエンタイトルメントに紐付け:
attach-products-to-entitlementツールを使用 -
デフォルトオファリングの作成:
create-offeringツールを使用 (lookup_key:"default") -
オファリング内にパッケージを作成:
create-packageツールを使用
(サブスクリプションの場合は$rc_monthly、$rc_annualなどを使用) -
プロダクトをパッケージに紐付け:
attach-products-to-packageツールを使用 -
API キーの取得:
list-app-public-api-keysツールを使用
フェーズ 3: セットアップ概要と次のステップ
完全なセットアップ概要を提供します:
プロジェクトのセットアップが完了しました!
==========================================
プロジェクト: {project_name} ({project_id})
作成した App:
iOS: {app_name} - API Key: appl_xxxxx
Android: {app_name} - API Key: goog_xxxxx
プロダクト:
- monthly_premium (サブスクリプション, P1M)
- annual_premium (サブスクリプション, P1Y)
エンタイトルメント:
- premium → monthly_premium, annual_premium
オファリング: default (現在有効)
└── $rc_monthly → monthly_premium
└── $rc_annual → annual_premium
次のステップ:
1. RevenueCat ダッシュボードでストアの認証情報を設定する
2. App Store Connect / Play Console でプロダクトを作成する
3. アプリに SDK を追加する (「/rc:create-app」を参照)
4. "default" オファリングを使用してペイウォール UI を実装する
エラー処理
いずれかのステップが失敗した場合:
- 発生したエラーを明確に報告する
- 修正方法を提案する (例:「Bundle ID がすでに使用されている可能性があります」)
- そのステップを再試行するかスキップするかを提案する
- 可能であれば、残りのステップを続行する
原文(English)を表示
RevenueCat Project Bootstrap
Guide through setting up a complete RevenueCat project from scratch.
Instructions
Important: Use the RevenueCat MCP server for all tool calls. The MCP server may have access to multiple projects. Always use list-projects first to retrieve all accessible projects. If multiple projects are returned, ask the user which project to use or if they want to create a new one.
Phase 1: Discovery
Ask targeted questions to understand the developer's needs:
- Platforms — "Which platforms are you building for?" (iOS, Android, Web, or multiple)
- Business Model — "What type of monetization are you planning?" (subscriptions, one-time purchases, consumables, or a mix)
- Subscription Tiers (if applicable) — "What subscription options do you want to offer?" (common: Monthly + Annual, single tier, Freemium + Premium)
- App Details — Bundle ID (iOS, e.g.
com.company.appname), package name (Android), and display name
Phase 2: Create Resources
Execute in this order — dependencies matter.
-
Verify/Create Project
list-projects- list accessible projects If multiple: ask user which to use, or offer to create a new one To create a new project, use thecreate-projectMCP tool Store project_id for all subsequent calls -
Create Apps (for each platform):
- For mobile apps, ask if the user already has set up their app in App Store Connect / Google Play Console. If so, create an app using the
create-apptool (type: app_store | play_store). If not, use the automatically generatedtest_storeapp and tell the user that they can set up the integration with App Store Connect / Google Play Console later. - For web apps,
create-appwith type rc_billing
- For mobile apps, ask if the user already has set up their app in App Store Connect / Google Play Console. If so, create an app using the
-
Create Products (for each subscription/purchase):
create-producttool -
Create Entitlements (for each feature/access level):
create-entitlementtool -
Attach Products to Entitlements:
attach-products-to-entitlementtool -
Create Default Offering:
create-offeringtool (lookup_key: "default") -
Create Packages in Offering:
create-packagetool (for subscriptions, use $rc_monthly, $rc_annual, etc.) -
Attach Products to Packages:
attach-products-to-packagetool -
Get API Keys:
list-app-public-api-keystool
Phase 3: Summary & Next Steps
Provide a complete setup summary:
Project Setup Complete!
=======================
Project: {project_name} ({project_id})
Apps Created:
iOS: {app_name} - API Key: appl_xxxxx
Android: {app_name} - API Key: goog_xxxxx
Products:
- monthly_premium (subscription, P1M)
- annual_premium (subscription, P1Y)
Entitlements:
- premium → monthly_premium, annual_premium
Offering: default (current)
└── $rc_monthly → monthly_premium
└── $rc_annual → annual_premium
Next Steps:
1. Configure store credentials in RevenueCat dashboard
2. Create products in App Store Connect / Play Console
3. Add SDK to your app (see /rc:create-app)
4. Implement paywall UI using the "default" offering
Error Handling
If any step fails:
- Report the specific error clearly
- Suggest fixes (e.g., "Bundle ID may already be in use")
- Offer to retry or skip that step
- Continue with remaining steps if possible
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。