Repository avatar
AI Tools
v1.1.0
active

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)

MoRSwitch Lemon Squeezy Shutdown & CA SB 122 Billing Audit Preview

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:

  1. 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, 2027 1.5% -> 3.5% promo cliff) across Creem.io, Dodo Payments, Polar.sh, Paddle Billing, Stripe Managed Payments, Whop, and Gumroad.
  2. 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.
  3. 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.02 USDC).

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

ParameterTypeDefaultDescription
countryCodestring"US"ISO-2 country code or country name across 197 countries (e.g. "UA", "IN", "BR", "GB")
monthlyGmvnumber10000Monthly GMV / MRR in USD
avgOrderValuenumber39Average invoice / order value in USD
intlPctnumber55International card share (0-100)
paypalPctnumber22PayPal recurring share (0-100) exposed to March 31, 2027 drop
needsLicenseKeysbooleantrueRequires Lemon Squeezy License Key API replacement
needsDigitalFilesbooleanfalseRequires hosted file delivery
needsAffiliatesbooleantrueRequires affiliate tracking
needsStorefrontbooleanfalseRequires hosted storefront
hasShippedBinariesbooleanfalseCustomers run desktop/CLI/WP binaries that cannot auto-update overnight
codeSnippetstring""Optional code snippet scanned for hardcoded api.lemonsqueezy.com/v1/licenses/* calls
exportedKeyStatusesstring[]nullExported license statuses (flags revocation leaks if "disabled" / "expired" omitted)
preservesExistingKeyStringsbooleannullWhether existing customer license key strings are imported verbatim
failOpenGraceDaysnumbernullOffline grace-window duration (days) for legacy binaries hitting 410/DNS errors

v1.1.0 License-Key Migration Hardening (license_key_migration_risks): Every audit_lemon_squeezy_country_and_mrr call now checks hardcoded api.lemonsqueezy.com/v1/licenses/* calls, the disabled/expired key 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

ParameterTypeDefaultDescription
caSalesnumber650000Direct-billed annual California sales (USD)
marketplaceCaRevenuenumber0Marketplace-facilitated CA revenue (counts toward $500k nexus; excluded from direct tax base)
mixobject | stringsaas:50,ai:20,dl:5,iaas:15,dev:10SKU weights (saas, ai, dl, iaas, dev, games)
ratePctnumber9.25Blended CA district sales tax rate (7.25-11.5)
resalePctnumber10B2B CDTFA-230 resale-exempt share (0-100)
physicalbooleanfalseCalifornia employees, contractors, office, or inventory
maxBuyernumber0Largest single CA buyer annual spend (>$5M Direct Pay Permit rule)

3. get_billing_migration_resources

ParameterTypeDefaultDescription
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


Disclaimer: morswitch-mcp provides deterministic fee comparisons, Stripe txcd_* 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.