Best Practices & Troubleshooting
Best practices, troubleshooting, and security considerations for RevenueCat MCP
Best Practices
API Key Management
- Use dedicated keys: Create separate API keys for different environments (development, staging, production)
- Principle of least privilege: Use read-only keys when write access isn't needed
- Regular rotation: Periodically rotate your API keys for security
Naming Conventions
- Package identifiers: Follow RevenueCat conventions:
$rc_monthlyfor monthly subscriptions$rc_annualfor annual subscriptions$rc_three_month,$rc_six_monthfor other durations$rc_lifetimefor lifetime purchases$rc_custom_*for custom packages
Troubleshooting
Common Issues
OAuth Issues
If you're using OAuth to authenticate with the RevenueCat MCP, you may encounter the following issues:
Unknown MCP Client
Symptoms: OAuth flow fails with an error indicating the client is not recognized Cause: RevenueCat uses a simplified public client registration flow and does not allow automatic client additions. Your MCP client may not be registered with our OAuth server. Solution: Contact RevenueCat support with your client details so we can allowlist your MCP client.
Outdated Redirect URIs
Symptoms: OAuth flow fails during the redirect step, or you receive an error about invalid redirect URI Cause: MCP clients occasionally update their redirect URIs, and our OAuth server configuration may not yet reflect these changes. Solution: Contact RevenueCat support with the details of your MCP client and the expected redirect URI so we can update our configuration.
API Key Issues
Symptoms: Authentication errors or "unauthorized" responses Solution:
- Verify your API key is correct
- Check key permissions (read vs write)
- Ensure the key belongs to the correct project
- Update your Authorization header with the correct API key
You don't see a tool that you expect
We are constantly adding new tools to the MCP server to allow agents to eventually access and manipulate all RevenueCat resources. If you don't see a tool that you know should be available, please note that the MCP automatically filters tools based on the permissions that you granted via OAuth or API key. For example, if you only granted read-only access to a project, you will not see tools that require write access.
Debug Information
For troubleshooting:
- Test with simple commands like "Show me my project details"
- Ensure API key has proper permissions in RevenueCat dashboard
- Check your AI assistant's MCP connection logs
Security Considerations
- Use environment-specific keys: Don't use production keys in development
- Regular key rotation: Change API keys periodically
- Team access: Use separate keys for each team member when possible
- Monitor usage: Regularly review API key usage in your RevenueCat dashboard
- Secure storage: Keep your API keys secure and never commit them to version control
Error Handling
The MCP server provides detailed error responses including:
- Authentication errors for missing or invalid tokens
- API errors with full RevenueCat API response details
- Validation errors for invalid parameters
All errors are returned in a consistent format with isError: true and descriptive error messages.
Getting Help
- RevenueCat Documentation: docs.revenuecat.com
- API Reference: docs.revenuecat.com/reference
- Support: Contact RevenueCat support through the dashboard
- Community: Join the RevenueCat community discussions