{
  "name": "terns-recharge-api-proxy",
  "version": "1.0.0",
  "description": "Authenticated proxy for the Recharge Admin API. The Recharge token is held by this Worker and never leaves it.",
  "surfaces": {
    "POST /mcp": "MCP: list, get, request. Accepts either a static bearer token or an OAuth access token.",
    "ANY /api/{path}": "Raw passthrough to api.rechargeapps.com, e.g. GET /api/subscriptions?status=active. Bearer only.",
    "GET /health": "Liveness and configuration check."
  },
  "resources": [
    "addresses",
    "bundle_selections",
    "charges",
    "collections",
    "customers",
    "discounts",
    "events",
    "metafields",
    "onetimes",
    "orders",
    "payment_methods",
    "plans",
    "products",
    "subscriptions",
    "webhooks"
  ],
  "policy": {
    "writesAllowed": false,
    "apiVersion": "2021-11"
  }
}