Prerequisites
- Cursor installed.
- A Pocketsflow account. No API key needed: you approve Cursor with your Pocketsflow login.
Connect the Pocketsflow MCP server
Add the Pocketsflow MCP server to Cursor’s MCP config at~/.cursor/mcp.json (global) or .cursor/mcp.json (per project):
MCP: … API key for the connection;
delete it under Developers → API keys to disconnect. Connect while your
account is in test mode to keep the agent on sandbox data while you build.
In Composer/Chat (Agent mode), Cursor lists the Pocketsflow tools and can run
them — “list my products”, “create a checkout link for product X”, “show
orders from the last 7 days”. Each call runs as your account.
Alternative: API key (headless / CI)
To skip the sign-in (for example in a headless or CI setup), create a key under Developers → API keys and send it as a header:Add a project rule
Create a Cursor project rule so the editor follows Pocketsflow conventions when generating code. In your integration repo:.cursor/rules/pocketsflow.mdc:
Typical workflow
1
Describe the integration
In Agent mode, ask Cursor to build the checkout + webhook flow, referencing
the rule and docs.
2
Let it call the API via MCP
Have it create a test product and a checkout session in test mode to
validate the request shape.
3
Test the webhook
Ask it to send a test event and confirm your handler verifies the signature
and settles the order.