Use Pocketsflow from Claude Code, in your repo.
One claude mcp add and Claude Code can act on your store while it works in your codebase: create the product your app sells, open a checkout session, register the webhook your server listens on and send it a test event.
- Connects via
- claude mcp add
- Works in
- Terminal, in any project
- Plan
- Comes with Claude plans that include Claude Code, or an Anthropic API account.
From an ask in Claude Code to your store and back.
You type in Claude Code. It calls a Pocketsflow tool, your store changes or answers, and the result comes back to the chat.
Create a $49 Pro license product and a checkout session for it, then add the link to our pricing page.
- create_product
- create_checkout_session
Makes the product and a checkout session, then edits your code.
Connect Claude Code in 4 steps.
Add the server
In your project, run the command below. It adds Pocketsflow over streamable HTTP.
Authenticate
Start
claude, type/mcp, pick pocketsflow and choose Authenticate. Your browser opens Pocketsflow.Allow access
Sign in to Pocketsflow and click Allow access. Pocketsflow adds a key named
MCP: <app>under Developers → API keys, in the mode your dashboard is in (live or test).Ask while you build
The Pocketsflow tools sit next to your files. Connect while your dashboard is in test mode to build against sandbox data.
claude mcp add --transport http pocketsflow https://www.pocketsflow.com/mcp
# then, inside Claude Code: /mcp, pick pocketsflow, AuthenticateServer address https://www.pocketsflow.com/mcp
No browser, like CI or claude -p on a server? Add the same URL with --header "Authorization: Bearer pk_test_…" and a test key instead.
What to ask Claude Code.
Write it the way you would ask a colleague. Under each ask are the Pocketsflow tools it calls.
“Create a $49 Pro license product and a checkout session for it, then add the link to our pricing page.”
Makes the product and a checkout session, then edits your code.
- create_product
- create_checkout_session
“Register a webhook for order.completed at /api/pocketsflow and send it a test event.”
Adds the webhook, returns its signing secret and fires a test delivery at your server.
- create_webhook
- test_webhook
“Bill our API by the request: $0.002 each, reported from the usage job.”
Sets usage pricing on the plan and shows how to report usage from your code.
- update_usage_pricing
- report_usage
“A customer's license key hit its activation limit. Reset it.”
Finds the key and clears its activations.
- list_license_keys
- reset_license_key_activations
“Why did the last checkout on staging fail?”
Reads the order's live payment, including why a declined card failed.
- list_orders
- get_order_payment_details
What it can and can't do.
Connecting an AI is not handing over the keys. You approve it, you see every change, and you can unplug it in one click.
It can
- Use the same 303 tools as the public API: products, checkout links, discounts, upsells, orders, customers, subscriptions, license keys, usage billing, webhooks, newsletters and analytics.
- Read your payouts: what is ready to withdraw, what is still clearing, and why a payout is on hold.
- Set the refund policy buyers see at checkout, and look up any order's payment, fees and tax.
- Work in test mode with no real money, if your dashboard is in test mode when you click Allow.
It can't
- Refund a payment or withdraw money. Refunds and withdrawals stay in your dashboard.
- Connect without you: nothing happens until you sign in to Pocketsflow and click Allow access.
- See another store. Every call is scoped to the account you approved.
- Use a paid feature your plan lacks. It gets a clear error and tells you which plan unlocks it.
Claude Code asks before it runs a tool, unless you allow that tool for the session. Every change shows in your dashboard. To disconnect any app, delete its MCP: <app> key under Developers → API keys. It stops on the next request. Access tokens last an hour and renew themselves; one left unused for 30 days expires.
For developers.
The server speaks streamable HTTP with OAuth 2.1 (PKCE, dynamic client registration) and exposes 303 tools, the same public API as our REST endpoints and the pocketsflow SDK.
Questions
Is Claude Code the same connection as claude.ai?
No. Claude Code keeps its own MCP servers, so you add Pocketsflow there with the command above, even if claude.ai already has the connector.
Can it use test mode?
Yes. Switch the dashboard to test mode before you click Allow access, and the connection uses sandbox data with no real money.
Does it work in CI?
Yes, with an API key: pass --header "Authorization: Bearer pk_test_…" when you add the server. Keep keys out of git.
Can Claude Code refund a buyer?
No. Payment refunds are issued from your dashboard. Claude Code can find the order, check its payment and set the refund policy buyers see at checkout.
How do I disconnect Claude Code?
Delete the MCP: Claude Code key (the name the app gives itself) under Developers → API keys in your dashboard. Access stops on the next request.
Connect Claude Code, then ask for your first product.
Free to start, no monthly fee. Your AI works in your account with the access you approve.
Start selling free