Best Practices & Troubleshooting
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_monthly
for monthly subscriptions$rc_annual
for annual subscriptions$rc_three_month
,$rc_six_month
for other durations$rc_lifetime
for lifetime purchases$rc_custom_*
for custom packages
Workspace Organization (Local Extension)
- One workspace per project: Keep different RevenueCat projects in separate workspaces
- Environment separation: Use different API keys for different environments
- Documentation: Keep your
mcp.json
structure documented for team members
Troubleshooting
Common Issues
MCP Server Not Enabled (Local Extension)
Symptoms: No responses from RevenueCat commands in chat Solution:
- Go to Cursor Settings → MCP
- Click Enable
- Click Refresh
MCP Server Disconnected
Symptoms: Previously working commands stop responding Solution:
- Go to Cursor Settings → MCP (for local extension)
- Click Refresh
- If issues persist, reload the window
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
- For local extension: Re-run
RevenueCat: Set Project Secret Key
- For cloud server: Update your Authorization header
Missing mcp.json (Local Extension)
Symptoms: Extension doesn't work after setting API key Solution:
- The extension should create
mcp.json
automatically - If missing, remove and re-add your API key
- Check that the MCP server port is correctly configured
Debug Information
For troubleshooting:
- Check the VS Code Developer Console for debug logs (local extension)
- Verify
mcp.json
contains the correct server configuration (local extension) - Test with simple commands like "Show me my project details"
- Ensure API key has proper permissions in RevenueCat dashboard
Security Considerations
- Never commit
mcp.json
: Always add it to.gitignore
(local extension) - 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
Error Handling
Both deployment options provide 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
This MCP server leverages the Model Context Protocol to provide seamless integration between RevenueCat's API and your development workflow. Happy monetizing! 🚀