Update to Polar
Snapshot Nov 3, 2026 · 19:24 UTC · version 0.2.2
Package or technical metadata updated
Package or technical metadata updated
Observed in package metadata. These changes alone do not establish a new customer-facing feature.
Up to 3 plugins free · no card required.
All fields and original values.
These are saved file metadata. Open a changed file to read its text edits.
Package file
Nov 3, 2026 · 00:14 UTC
6ff43e1d8d505709e974c8711e47b9908c869b2c18380e15da53981a3fe7cf64
Nov 3, 2026 · 19:24 UTC
e0b3eec1a08efcd8607115de483beea712c64a5416d3479d20ac9a37b10b0e5f
Package file
Nov 3, 2026 · 00:14 UTC
5294
Nov 3, 2026 · 19:24 UTC
5225
Package file
Nov 3, 2026 · 00:14 UTC
07e057e63ef0670a075a971d53acdcec9f50dee6a8a990e97c27ac39717b4f4d
Nov 3, 2026 · 19:24 UTC
c4e71d307bc1f8651feb89a647ecd6fc7d0a7d365e1ee8d68d9fa5c08b3b0002
Package file
Nov 3, 2026 · 00:14 UTC
4627
Nov 3, 2026 · 19:24 UTC
6077
Compare saved observations
Download comparison JSONChanged files
Choose a file to see its text changes. Binary or large files show metadata only.
assets/polar_logomark_black.png →
skills/polar-integration/SKILL.md →
skills/polar-migration/SKILL.md →
README.md
− removed · + added
--- before +++ after @@ -1,5 +1,10 @@ # Polar Agent Toolkit +[](https://github.com/polarsource/agent-toolkit/actions/workflows/validate.yml) +[](https://github.com/polarsource/agent-toolkit/actions/workflows/drift.yml) +[](https://github.com/polarsource/agent-toolkit/releases/latest) +[](https://github.com/polarsource/agent-toolkit/blob/main/LICENSE) + Polar's plugin for AI coding agents. It connects your agent to [Polar](https://polar.sh), the open-source payment infrastructure platform, so it can set up products, checkouts, customer portals and webhooks in your app, test them against the Polar sandbox, and help you migrate from another payment provider. The skills follow the [Agent Skills](https://agentskills.io/) format, so they also work in agents that don't support plugins. @@ -22,7 +27,7 @@ | `setup-polar` | Guided setup from scratch: connects the MCP server, creates an organization and a first product, then hands off to `polar-integration`. | | `polar-integration` | Adds Checkout, Customer Portal and Webhooks endpoints with `@polar-sh/sdk` to any TS/JS framework, including Next.js, Express, Hono, Astro, SvelteKit, Remix, Nuxt and Cloudflare Workers. | | `polar-testing` | Tests an integration against the sandbox: test cards, local webhooks with the Polar CLI (`polar webhook listen`, `polar webhook trigger`), mocks and CI. | -| `polar-migration` | Plans and runs a migration from Stripe Billing, Paddle, Lemon Squeezy or Gumroad. | +| `polar-migration` | Guides a migration to Polar: Polar's assisted migration from Stripe Billing, or recreating the catalog and moving customers from Paddle, Lemon Squeezy and others. | ## Installation @@ -32,13 +37,6 @@ /plugin install polar --marketplace polarsource/agent-toolkit ``` -On Claude Code versions before 2.1.275, add the marketplace first: - -``` -/plugin marketplace add polarsource/agent-toolkit -/plugin install polar@polar -``` - Then run `/mcp`, select `polar` or `polar-sandbox` and sign in to Polar in your browser. Skills are available as `/polar:setup-polar`, `/polar:polar-integration` and so on, and Claude also uses them on its own when a task matches. ### Codex @@ -50,6 +48,26 @@ Then sign in to Polar in your browser with `codex mcp login polar` or `codex mcp login polar-sandbox`. Codex uses the skills on its own when a task matches. +### Cursor + +In Cursor, open **Customize**, choose **From GitHub Repository** and enter `https://github.com/polarsource/agent-toolkit`. Then sign in to `polar` or `polar-sandbox` from Cursor's MCP settings. + +### Gemini CLI + +```bash +gemini extensions install https://github.com/polarsource/agent-toolkit +``` + +Then sign in to Polar with `/mcp auth polar` or `/mcp auth polar-sandbox`. + +### Antigravity + +```bash +agy plugin install https://github.com/polarsource/agent-toolkit +``` + +Then sign in to `polar` or `polar-sandbox` from Antigravity's MCP settings. + ### Other agents Install the skills with [skills](https://github.com/vercel-labs/skills): @@ -62,19 +80,15 @@ ## Example prompts -``` -Help me set up Polar in my Next.js app -``` -``` -Add a Polar webhook handler and test it locally -``` -``` -Help me migrate my subscriptions from Stripe to Polar -``` +- "Add Polar checkout and a webhook handler for my Pro plan to this Next.js app" +- "What's my MRR this month, and how does churn compare to last month?" +- "Why are customers canceling their subscriptions? Break it down by reason." +- "Send a sandbox `order.paid` event to my local webhook handler and check that it works" +- "Create a 25% off launch discount for my yearly plan" ## Data and privacy -The plugin contains instructions and MCP server configuration only. It ships no scripts or hooks and sends no telemetry itself. +The plugin contains instructions and MCP server configuration only. It runs no scripts or hooks on your machine and sends no telemetry itself. The scripts in `.github/` are for maintaining this repository, and the plugin never runs them. When you use the MCP servers, your agent sends requests to `mcp.polar.sh` over HTTPS. They read and change data in the Polar organization you authorized, such as products, customers, subscriptions and orders, within the permissions you granted. To disconnect, clear the server's authentication in `/mcp` in Claude Code, run `codex mcp logout <server>` in Codex, or uninstall the plugin. Polar handles this data under its [Privacy Policy](https://polar.sh/legal/privacy-policy) and [Terms of Service](https://polar.sh/legal/master-services-terms). @@ -83,12 +97,11 @@ - **Polar API** (`api.polar.sh`, `sandbox-api.polar.sh`): the integration code, tests and Polar CLI commands the skills set up call it with your own access token or CLI login. - **Polar CLI telemetry** (PostHog): `setup-polar` and `polar-testing` install the [Polar CLI](https://polar.sh/docs/integrate/cli/introduction), which sends one anonymous event per command, such as the command name, duration, CLI version and OS. It never sends access tokens, organization IDs, URLs or payloads. Opt out with `POLAR_CLI_TELEMETRY_OPTOUT=1`. - **npm registry**: to install `@polar-sh/cli` and `@polar-sh/sdk`. -- **Your current payment provider** (Stripe, Paddle or Lemon Squeezy): `polar-migration` writes scripts that export your products, customers and subscriptions with your own API keys so they can be imported into Polar. +- **Your current payment provider** (Stripe, Paddle or Lemon Squeezy): `polar-migration` may read your existing billing code and data with your own API keys to map customers and products to Polar. Stripe migrations themselves run in Polar's dashboard. ## Support - [Polar documentation](https://polar.sh/docs) -- [Contact Polar support](https://polar.sh/docs/support) - [Report an issue with this plugin](https://github.com/polarsource/agent-toolkit/issues) ## License
Full technical diff · 14 changed fields
changed /files/.codex-plugin~1plugin.json/sha256
"6ff43e1d8d505709e974c8711e47b9908c869b2c18380e15da53981a3fe7cf64"
"e0b3eec1a08efcd8607115de483beea712c64a5416d3479d20ac9a37b10b0e5f"
changed /files/.codex-plugin~1plugin.json/size
5294
5225
changed /files/README.md/sha256
"07e057e63ef0670a075a971d53acdcec9f50dee6a8a990e97c27ac39717b4f4d"
"c4e71d307bc1f8651feb89a647ecd6fc7d0a7d365e1ee8d68d9fa5c08b3b0002"
changed /files/README.md/size
4627
6077
changed /files/assets~1polar_logomark_black.png/sha256
"08377661a6127ea463445296a4070e895c5f3ac0433ce202384791a4a1363264"
"80f6f838338e01015886b1487e862952bf006c7463e040055f8236640da690d2"
changed /files/assets~1polar_logomark_black.png/size
17321
50912
changed /files/skills~1polar-integration~1SKILL.md/sha256
"6731a3107edede9116c93137e756442ce931c418a50fec3c4afeaa2513793afd"
"107b0485326775c4b8199f3cd82bccf9f1d4fb97865a76c7c42049c31fc34fe9"
changed /files/skills~1polar-integration~1SKILL.md/size
17851
18543
changed /files/skills~1polar-migration~1SKILL.md/sha256
"70559e2c9b7eb626e0e8152b40a0b409512ea45d62866c0f7f7a863c82d04ff7"
"a6c6bd6b1ba1c3f613960fd20b56fd6dd3cc378db78f59e3cfc463225a532fa9"
changed /files/skills~1polar-migration~1SKILL.md/size
15298
8655
changed /files/skills~1polar-testing~1SKILL.md/sha256
"55250f77a480b1ea5a66c3aadac6e392e33ac802ac8f87e538d3a74df9b3f579"
"88aaaa50ae4c6615ea22447c36e07f8d3c156fd37fae44be6b28298d1afa0dc3"
changed /files/skills~1polar-testing~1SKILL.md/size
13544
14237
changed /files/skills~1setup-polar~1SKILL.md/sha256
"a5b30d90b2af2302c7d6316219bc474adbba46cac696f06552e139d003fead83"
"39a1ae3dad6979f4fd486db9a9aab0192a93b986442a0ec4cfbce86f7ab3bb38"
changed /files/skills~1setup-polar~1SKILL.md/size
5429
8074
Full snapshot data
{
"files": {
".app.json": {
"sha256": "c4e04944cddb5f9047a809e00fbfd39f23a663693c691f281870e877b7b4f2de",
"size": 97
},
".codex-plugin/plugin.json": {
"sha256": "e0b3eec1a08efcd8607115de483beea712c64a5416d3479d20ac9a37b10b0e5f",
"size": 5225
},
".mcp.json": {
"sha256": "3e1ad6380f9f39e428cfc18e88c4600825a434dbdb528ff02f199a34edf06a76",
"size": 112
},
"LICENSE": {
"sha256": "3d1d4ac8236a23e45ccce5ffdfac6fffb334692355db6b0b86074195f91b2212",
"size": 1076
},
"README.md": {
"sha256": "c4e71d307bc1f8651feb89a647ecd6fc7d0a7d365e1ee8d68d9fa5c08b3b0002",
"size": 6077
},
"assets/polar_logomark_black.png": {
"sha256": "80f6f838338e01015886b1487e862952bf006c7463e040055f8236640da690d2",
"size": 50912
},
"skills/polar-integration/SKILL.md": {
"sha256": "107b0485326775c4b8199f3cd82bccf9f1d4fb97865a76c7c42049c31fc34fe9",
"size": 18543
},
"skills/polar-migration/SKILL.md": {
"sha256": "a6c6bd6b1ba1c3f613960fd20b56fd6dd3cc378db78f59e3cfc463225a532fa9",
"size": 8655
},
"skills/polar-testing/SKILL.md": {
"sha256": "88aaaa50ae4c6615ea22447c36e07f8d3c156fd37fae44be6b28298d1afa0dc3",
"size": 14237
},
"skills/setup-polar/SKILL.md": {
"sha256": "39a1ae3dad6979f4fd486db9a9aab0192a93b986442a0ec4cfbce86f7ab3bb38",
"size": 8074
}
}
}SHA-256 of public snapshot: ff8ab941cfd5d28aba6fe18dbbf5bdfb1275fa1479b097889a33aa92014088eb