Give Codex your Pocketsflow store, in the app and the terminal.
Codex keeps one MCP setup for its app, the CLI and the editor extension, so two commands are enough. Then a support job is one sentence: find order 1042, reset its downloads and email the buyer.
- Connects via
- codex mcp add
- Works in
- Codex app, terminal and editor extension (one setup)
- Plan
- Comes with ChatGPT plans (limited use on the free plan).
From an ask in Codex to your store and back.
You type in Codex. It calls a Pocketsflow tool, your store changes or answers, and the result comes back to the chat.
How an ask in your AI app becomes a change in your store:
- Codex: “Put the Icon Pack on sale at $19.” The Pocketsflow MCP server checks the key you approved, calls update_product, and answers: “The Icon Pack is $19 now, with $29 crossed out on its page.”
- Codex: “Who bought the Icon Pack this week?” The Pocketsflow MCP server checks the key you approved, calls list_orders, and answers: “Daan, Sofia and Priya, at $29.00 each.”
- Codex: “Give every Icon Pack sale a license key.” The Pocketsflow MCP server checks the key you approved, calls update_product, and answers: “Done. Every Icon Pack buyer now gets their own license key.”
Connect Codex in 4 steps.
Add the server
Open a terminal and run the first command below.
Sign in
Run
codex mcp login pocketsflow. 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 anywhere Codex runs
The Codex app, the CLI and the editor extension all see the Pocketsflow tools now.
codex mcp add pocketsflow --url https://www.pocketsflow.com/mcp
codex mcp login pocketsflowServer address https://www.pocketsflow.com/mcp
What to ask Codex.
Write it the way you would ask a colleague. Under each ask are the Pocketsflow tools it calls.
“Reset the downloads on order 1042 and tell the buyer.”
Opens the order, resets its download count and emails the buyer.
- get_order
- reset_order_downloads
- send_email
“Disable the license key that was shared on the forum.”
Finds the key and turns it off, so new activations fail.
- list_license_keys
- disable_license_key
“Post refunds to https://api.northlight.studio/hooks.”
Adds a webhook for refund events and returns its signing secret.
- create_webhook
“Put the Icon Pack on sale at $19, with $29 crossed out.”
Updates the price and the compare-at price on its page.
- update_product
“List this month's payments, subscriptions included.”
Reads every charge, one time and renewals.
- list_payments
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.
The setup prompt asks Codex to check with you before anything goes live, and 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
Do the app and the CLI need separate setups?
No. The Codex app, the CLI and the editor extension read the same MCP settings, so you add Pocketsflow once.
Which plan do I need?
Codex comes with ChatGPT plans, with limited use on the free plan. Pocketsflow itself is free to start.
Do I need an API key?
No. You sign in to Pocketsflow and click Allow access, and the app gets a token for your account. API keys are only for headless servers and CI, where nobody can click Allow.
Can Codex refund a buyer?
No. Payment refunds are issued from your dashboard. Codex can find the order, check its payment and set the refund policy buyers see at checkout.
How do I disconnect Codex?
Delete the MCP: Codex key (the name the app gives itself) under Developers → API keys in your dashboard. Access stops on the next request.
Connect Codex, 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