Cursor
Connect CashSDK to Cursor so you can manage your account from the editor.
Add the CashSDK MCP server to Cursor and your agent can operate your workspace (model catalog, generate paywalls, register webhooks) without leaving the editor.
Add the server#
Create .cursor/mcp.json in your project root (or edit the global
~/.cursor/mcp.json to make it available everywhere):
{
"mcpServers": {
"cashsdk": {
"url": "https://mcp.cashsdk.com/mcp"
}
}
}
This configuration contains no credentials. In MCP settings, choose Connect and sign in to CashSDK in your browser. Select your workspace and app, review permissions, then approve. For guided setup, also install the CashSDK plugin and skill.
For clients that cannot use browser sign-in, add an Authorization header
containing a durable MCP token from Settings, MCP. Keep a token-bearing
configuration out of version control. Setup tokens expire after 24 hours.
Enable and verify#
Go to Cursor Settings → MCP (or Tools & Integrations). Cursor
detects the cashsdk server from your mcp.json.
Enable the cashsdk server. Cursor connects to the hosted endpoint over
HTTP, so there is nothing to install or spawn.
The server should show a green status and a list of tools like
get_setup_checklist, create_product, and generate_paywall. If it
shows an authentication error, choose Connect again. For token fallback,
an expired or mistyped token comes back as 401.
You can also add a .cursor/rules file pointing Cursor at
https://docs.cashsdk.com/llms-full.txt so the model always has the full
CashSDK reference in context. See llms.txt.
Example prompts#
Open the Cursor chat in Agent mode and try:
- "Using CashSDK, create a monthly Pro subscription with a
proentitlement." - "Generate an onboarding paywall from a template and add a placement for it."
- "Register a webhook at
https://api.myapp.com/hooks/cashsdkand send a test event." - "Tail the recent CashSDK events for this app."
- "What's still outstanding on my CashSDK setup checklist?"