Run your Pocketsflow numbers through Gemini CLI.
Gemini connects to Pocketsflow from Gemini CLI: one command adds the server and /mcp auth signs you in. Then ask for MRR, net revenue after fees and the subscriptions about to churn, without opening a dashboard.
- Connects via
- Gemini CLI
- Works in
- Terminal (Gemini CLI)
- Plan
- Gemini CLI needs a Gemini Code Assist Standard or Enterprise license, or a paid API key.
From an ask in Gemini to your store and back.
You type in Gemini. 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:
- Gemini CLI: “How much can I withdraw right now?” The Pocketsflow MCP server checks the key you approved, calls get_payout_balance, and answers: “$142.50 is ready to withdraw and $38.00 is still clearing.”
- Gemini CLI: “Look up order ord7f9b1.” The Pocketsflow MCP server checks the key you approved, calls get_order, and answers: “Amelia Hart paid $54.00: Presets Vol. 2 plus the Icon Pack as a $15.00 order bump.”
- Gemini CLI: “Reset her downloads on that order.” The Pocketsflow MCP server checks the key you approved, calls reset_order_downloads, and answers: “Done. Amelia has all her downloads back, and the link expiry starts again now.”
Connect Gemini in 4 steps.
Add the server
Open a terminal and run the command below.
Authenticate
In Gemini CLI, type
/mcp auth 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 in plain words
Gemini lists the Pocketsflow tools and picks the right one for each ask.
gemini mcp add --transport http pocketsflow https://www.pocketsflow.com/mcp
# then, inside Gemini CLI: /mcp auth pocketsflowServer address https://www.pocketsflow.com/mcp
The Gemini app on the web has no setting to add your own MCP server that we can point you to. The Open button copies the setup prompt so Gemini can walk you through the CLI.
What to ask Gemini.
Write it the way you would ask a colleague. Under each ask are the Pocketsflow tools it calls.
“How much can I withdraw right now?”
Reads the available and the still-clearing balance.
- get_payout_balance
“What is my MRR, and how did it move this quarter?”
Reads monthly recurring revenue and its trend.
- get_mrr
“Which subscriptions are about to churn?”
Lists past-due and cancelling subscribers you can still save.
- list_at_risk_subscriptions
“What did I keep last month after fees and refunds?”
Reads net revenue with the fees broken out.
- get_net_revenue
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 Gemini 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
Can I use the Gemini app on the web?
Not as a connection. The verified path is Gemini CLI. In the web app, paste the setup prompt and Gemini can guide you through the CLI steps.
Which license does Gemini CLI need?
A Gemini Code Assist Standard or Enterprise license, or a paid API key. Free and Google AI Pro accounts moved to Antigravity CLI.
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 Gemini refund a buyer?
No. Payment refunds are issued from your dashboard. Gemini can find the order, check its payment and set the refund policy buyers see at checkout.
How do I disconnect Gemini CLI?
Delete the MCP: Gemini CLI key (the name the app gives itself) under Developers → API keys in your dashboard. Access stops on the next request.
Connect Gemini, 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