Prerequisites
- Cursor installed.
- A Pocketsflow API key from Developers → API keys (use
pk_test_…while building).
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):
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 with your
pk_test_…
key 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.