
morswitch-mcp
io.github.spleyapp/morswitch-mcp
Read-only MCP auditing Mar-2027 Lemon Squeezy MoR exits & Jan-2027 CA SB 122 SaaS/AI tax splits.
Documentation
MoRSwitch + CA SB 122 MCP (io.github.spleyapp/morswitch-mcp)

Zero-dependency, 100% read-only Model Context Protocol (MCP) server and Node 20+ CLI auditing both urgent 2027 SaaS billing & tax cliffs locally with zero API keys and zero telemetry:
- March 31, 2027 Lemon Squeezy Shutdown (
audit_lemon_squeezy_country_and_mrr) — Checks Stripe Managed Payments' 37-country allowlist across 197 countries, quantifies PayPal recurring subscription churn exposure, flags dropped features (License Keys, Digital Files, Native Affiliates, Hosted Storefront), and models Year-1 vs. Year-2 MoR fees (including Stripe Managed Payments' Dec 1, 20271.5% -> 3.5%promo cliff) across Creem.io, Dodo Payments, Polar.sh, Paddle Billing, Stripe Managed Payments, Whop, and Gumroad. - January 1, 2027 California SB 122 SaaS & AI Sales Tax (
audit_ca_sb122_tax_split) — Evaluates California's $500,000 current/prior-year economic nexus with explicit separation of marketplace-facilitated CA sales (AWS/Shopify/Apple) vs. direct-billed CA sales so you never double-remit, calculates legal savings from unbundling exempt IaaS (txcd_10010001), custom dev (txcd_10701300), and video games (txcd_10201000) from taxable SaaS/AI (txcd_10103001) and downloaded software (txcd_10202003), and outputs the 3-point pre-Jan-1 Stripe verification checklist. - Migration Resources & PayAI x402 Endpoints (
get_billing_migration_resources) — Direct machine-readable references to interactive calculators, Migration Kits ($49/$99/$149), Done-For-You Sprints ($499), and PayAI Base Mainnet x402 API endpoints ($0.01/$0.02USDC).
Install in Claude Desktop, Claude Code, Cursor, or Windsurf
MCP Config (Zero Install via npx)
{
"mcpServers": {
"morswitch": {
"command": "npx",
"args": ["-y", "github:spleyapp/morswitch-mcp"]
}
}
}
One-Click .mcpb Bundle
Download morswitch-mcp.mcpb from GitHub Releases or install directly from the Official MCP Registry (io.github.spleyapp/morswitch-mcp).
Quick Terminal CLI Mode
# Run both audits (Ukraine $12k MRR Lemon Squeezy exit + CA SB 122 marketplace-triggered nexus)
npx -y github:spleyapp/morswitch-mcp --demo
# Audit a specific Lemon Squeezy store
npx -y github:spleyapp/morswitch-mcp --mor --country=IN --mrr=15000 --aov=49 --intl=60 --paypal=20
# Audit California SB 122 direct + marketplace sales
npx -y github:spleyapp/morswitch-mcp --sb122 --ca-sales=220000 --marketplace-ca-revenue=310000 --mix=saas:45,ai:25,iaas:20,dev:10
Exposed MCP Tools (Read-Only, Local Deterministic Math)
1. audit_lemon_squeezy_country_and_mrr
| Parameter | Type | Default | Description |
|---|---|---|---|
countryCode | string | "US" | ISO-2 country code or country name across 197 countries (e.g. "UA", "IN", "BR", "GB") |
monthlyGmv | number | 10000 | Monthly GMV / MRR in USD |
avgOrderValue | number | 39 | Average invoice / order value in USD |
intlPct | number | 55 | International card share (0-100) |
paypalPct | number | 22 | PayPal recurring share (0-100) exposed to March 31, 2027 drop |
needsLicenseKeys | boolean | true | Requires Lemon Squeezy License Key API replacement |
needsDigitalFiles | boolean | false | Requires hosted file delivery |
needsAffiliates | boolean | true | Requires affiliate tracking |
needsStorefront | boolean | false | Requires hosted storefront |
hasShippedBinaries | boolean | false | Customers run desktop/CLI/WP binaries that cannot auto-update overnight |
codeSnippet | string | "" | Optional code snippet scanned for hardcoded api.lemonsqueezy.com/v1/licenses/* calls |
exportedKeyStatuses | string[] | null | Exported license statuses (flags revocation leaks if "disabled" / "expired" omitted) |
preservesExistingKeyStrings | boolean | null | Whether existing customer license key strings are imported verbatim |
failOpenGraceDays | number | null | Offline grace-window duration (days) for legacy binaries hitting 410/DNS errors |
v1.1.0 License-Key Migration Hardening (
license_key_migration_risks): Everyaudit_lemon_squeezy_country_and_mrrcall now checks hardcodedapi.lemonsqueezy.com/v1/licenses/*calls, thedisabled/expiredkey export revocation trap, shipped-binary update windows & fail-open grace policies, and verbatim customer key string preservation. (Informed by DEV.to community discussion — credit: Arthur / Keyharbor.)
2. audit_ca_sb122_tax_split
| Parameter | Type | Default | Description |
|---|---|---|---|
caSales | number | 650000 | Direct-billed annual California sales (USD) |
marketplaceCaRevenue | number | 0 | Marketplace-facilitated CA revenue (counts toward $500k nexus; excluded from direct tax base) |
mix | object | string | saas:50,ai:20,dl:5,iaas:15,dev:10 | SKU weights (saas, ai, dl, iaas, dev, games) |
ratePct | number | 9.25 | Blended CA district sales tax rate (7.25-11.5) |
resalePct | number | 10 | B2B CDTFA-230 resale-exempt share (0-100) |
physical | boolean | false | California employees, contractors, office, or inventory |
maxBuyer | number | 0 | Largest single CA buyer annual spend (>$5M Direct Pay Permit rule) |
3. get_billing_migration_resources
| Parameter | Type | Default | Description |
|---|---|---|---|
topic | "all" | "lemon-squeezy" | "ca-sb122" | "x402" | "all" | Returns calculators, Kits ($49/$99/$149), $499 DFY Sprints, and PayAI x402 specs |
Live Interactive Calculators, Deep-Dive Articles & Kits
- Lemon Squeezy Shutdown Switchboard & Migration Kit (
$49/$99, DFY Sprint$499): morswitch.netlify.app - California SB 122 Tax Split Calculator & Stripe
txcd_*Kit ($49/$149, DFY Sprint$499): sb122ready.netlify.app - All-9 Studio Conversion Hub & Complete Bundle (
$149): spleyapp.github.io - Deep-Dive Guide #1 (Lemon Squeezy Exit): Lemon Squeezy Shuts Down March 31, 2027: Auditing Stripe Managed Payments Country Blocks & PayPal Churn
- Deep-Dive Guide #2 (California SB 122): California SB 122 Takes Effect Jan 1, 2027: Splitting Taxable SaaS & AI APIs from Exempt IaaS on Stripe
- Autonomous Agent PayAI x402 APIs (Base Mainnet USDC via
https://facilitator.payai.network):GET https://morswitch.netlify.app/api/x402/mor-quote($0.01USDC)POST https://sb122ready.netlify.app/api/x402/sb122-check($0.02USDC)
- Direct Contact / DFY Sprints:
or@spley.app
Disclaimer:
morswitch-mcpprovides deterministic fee comparisons, Stripetxcd_*reference mappings, and informational tax readiness estimates. It is not licensed CPA, tax, or legal advice. Verify final tax obligations with a qualified California tax professional and merchant underwriting terms directly with your billing provider.
License
MIT — see LICENSE.
https://github.com/spleyapp/morswitch-mcp/releases/download/v1.1.0/morswitch-mcp.mcpb# mcpb: https://github.com/spleyapp/morswitch-mcp/releases/download/v1.1.0/morswitch-mcp.mcpbRelated Servers
io.github.spleyapp/model-cliff-mcp
Read-only MCP auditing OpenAI Dec-11 gpt-5/o3, Jan-6 tts-1 REST & Jan-14 gpt-4o/4.1 cliffs.
io.github.spleyapp/oracle-guard-mcp
Read-only MCP auditing Polymarket, Limitless & Kalshi resolution clauses and UMA dispute risk.
io.github.spleyapp/polytax-8949-mcp
Read-only MCP auditing Polymarket 2026 FIFO/HIFO PnL, dangling $0 losing shares & Dec-31 harvest.