Prerequisites
- Windsurf installed.
- A Pocketsflow account. No API key needed: you approve Windsurf with your Pocketsflow login.
Connect the Pocketsflow MCP server
Add the Pocketsflow MCP server to Windsurf’s MCP config (Cascade → MCP servers → Configure, which edits~/.codeium/windsurf/mcp_config.json):
MCP: … API key for the connection; delete it under
Developers → API keys to disconnect. Connect while your account is in test
mode to keep Cascade on sandbox data while you build.
Cascade can now run Pocketsflow tools — “list my last 10 orders”, “create a
$29 product and give me the checkout link”, “cancel subscription
sub_123”. Each call runs as your account.
Alternative: API key (headless / CI)
To skip the sign-in, create a key under Developers → API keys and send it as a header:Add a workspace rule
Give Cascade project context and standards. Create.windsurf/rules/pocketsflow.md
in your workspace root:
Typical workflow
1
Plan with Cascade
Ask Cascade to design the checkout + webhook flow using the workspace rule
and docs.
2
Validate via MCP
Have it create a test product and checkout session in test mode.
3
Exercise the webhook
Send a test event and confirm the handler verifies the signature and settles
the order idempotently.