v20

latestOpenAPI 3.0.0raw.githubusercontent.com2026-07-214885191.3 KB
Products

Configure MCP plans on an MCP product

Configures plans and optional tool-to-plan mappings for an MCP product.

put/v1/sdk/products/{productRef}/mcp/plans

Path parameters

productRefstring required
Example:prd_1A2B3C4D

Product reference or ID

Request body

Response

MCP plans configured successfully

mcpServerobject required

Updated MCP server identity

planMapobject required

Resolved plan mapping by key (includes existing free plan)

Example response

{
  "product": {
    "config": {
      "deliveryMethod": "api",
      "fulfillmentType": "digital",
      "validityPeriod": 30
    },
    "mcp": {
      "defaultPlanRef": "pln_FREE123",
      "mcpProxyUrl": "https://acme-docs.mcp.solvapay.com/mcp",
      "mcpServerRef": "mcp_ABC123",
      "mcpSubdomain": "acme-docs",
      "originUrl": "https://origin.example.com/mcp"
    },
    "name": "AI Writing Assistant",
    "plans": [
      {
        "billingCycle": "monthly",
        "billingModel": "pre-paid",
        "creditsPerUnit": 1,
        "currency": "USD",
        "currencySymbol": "$",
        "freeUnits": 1000,
        "isActive": true,
        "limit": 10000,
        "measures": "requests",
        "meterRef": "mtr_1A2B3C4D",
        "price": 2999,
        "reference": "pln_1A2B3C4D",
        "requiresPayment": true,
        "setupFee": 500,
        "status": "active",
        "trialDays": 14
      }
    ],
    "reference": "prd_1A2B3C4D",
    "status": "active"
  }
}