x402 Pay — USDC API Payment Helper

Pay for APIs with USDC. Read-only x402 payment discovery, verification, evidence, and status.

Sollte ich dies verwenden

Qualität und Sicherheit

A
Qualität der Beschreibung
100%
Vollständigkeit des Schemas
70%
Qualität der Benennung
92%
Risiko der Vergiftung
100%
Übereinstimmung der Berechtigungen
100%
Einhaltung des Protokolls
100%

Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.

Kontextkosten

~2,350Tokens (Tool-Definitionen)
~4.9 KBTypische Antwortgröße
Mittlere Auswirkung auf die Aufmerksamkeit (1.84% von 128k Kontext)

Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.

Installieren

Installation mit einem Klick

Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:

{
  "mcpServers": {
    "x402-pay": {
      "url": "https://squeezeos-api.onrender.com/mcp/x402-pay"
    }
  }
}

Remote-Endpunkte

https://squeezeos-api.onrender.com/mcp/x402-paystreamable-http

Was es kann

Tool-Inventar

Tools (5)

🟢 Nur lesen🟡 Schreiben🔴 Löschen⚪ Unbekannt
🟢payment_info

Read the documented SML x402 v2 Base/USDC configuration and receiver before selecting a paid route. Returns configuration and a read-only policy. Fresh resource requirements override these hints; this tool does not sign, spend or prove settlement.

Eingabe-Schema

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "asset": {
      "type": "string"
    },
    "asset_contract": {
      "type": "string"
    },
    "network": {
      "type": "string"
    },
    "pay_to": {
      "pattern": "^0x[a-fA-F0-9]{40}$",
      "type": "string"
    },
    "policy": {
      "type": "object"
    },
    "product": {
      "type": "string"
    },
    "protocol": {
      "type": "string"
    }
  },
  "required": [
    "product",
    "protocol",
    "network",
    "asset",
    "asset_contract",
    "pay_to",
    "policy"
  ],
  "additionalProperties": true
}
🟢list_paid_apis(limit)

List paid API operations declared by the live SqueezeOS OpenAPI document, bounded by limit. Returns method, path, job and advertised price. Use for route selection, then inspect that resource's fresh 402 challenge; listed prices do not authorize payment.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "limit": {
      "default": 10,
      "description": "Maximum number of declared paid operations to return; not an exhaustive catalog count.",
      "maximum": 25,
      "minimum": 1,
      "type": "integer"
    }
  },
  "additionalProperties": false
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "count": {
      "type": "integer"
    },
    "ok": {
      "type": "boolean"
    },
    "operations": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "advertised_price": {},
          "job": {},
          "method": {
            "type": "string"
          },
          "path": {
            "type": "string"
          }
        },
        "required": [
          "method",
          "path",
          "job",
          "advertised_price"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "source": {
      "type": "string"
    }
  },
  "required": [
    "ok",
    "source",
    "count",
    "operations"
  ],
  "additionalProperties": true
}
🟢check_payment(url)

Inspect a public HTTPS URL for a fresh x402 v2 HTTP 402 challenge using an unsigned GET with a 10-second network timeout and no redirect following. Returns validated payTo, asset, network, atomic amount, resource and maxTimeoutSeconds; incomplete or non-x402 responses return challenge=null and a reason. Does not sign, settle or verify receipts. Fresh requirements override documented receiver hints; inspect canonical_receiver_match before choosing to pay.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "url": {
      "description": "Full public HTTPS URL to inspect with an unsigned GET. No payment headers; redirects, credentials and private network targets are rejected.",
      "format": "uri",
      "maxLength": 2048,
      "minLength": 8,
      "pattern": "^https://",
      "type": "string"
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "canonical_receiver_match": {
      "description": "Comparison with documented SML receiver; a mismatch never rewrites upstream requirements.",
      "type": "boolean"
    },
    "challenge": {
      "description": "Fresh validated requirements, or null. No synthetic defaults are inserted.",
      "oneOf": [
        {
          "additionalProperties": false,
          "properties": {
            "amount": {
              "pattern": "^[0-9]+$",
              "type": "string"
            },
            "asset": {
              "description": "Asset identifier from the fresh requirements; never replaced with a cached symbol.",
              "minLength": 1,
              "type": "string"
            },
            "maxTimeoutSeconds": {
              "maximum": 3600,
              "minimum": 1,
              "type": "integer"
            },
            "network": {
              "minLength": 1,
              "type": "string"
            },
            "payTo": {
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "resource": {
              "description": "Exact resource URL or identifier advertised by the endpoint.",
              "minLength": 1,
              "type": "string"
            },
            "scheme": {
              "description": "Payment scheme advertised by the fresh requirement.",
              "minLength": 1,
              "type": "string"
            },
            "x402Version": {
              "const": 2
            }
          },
          "required": [
            "x402Version",
            "scheme",
            "payTo",
            "asset",
            "network",
            "amount",
            "resource",
            "maxTimeoutSeconds"
          ],
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    },
    "http_status": {
      "description": "Observed HTTP status; zero means no HTTP response was received.",
      "maximum": 599,
      "minimum": 0,
      "type": "integer"
    },
    "is_x402": {
      "description": "True only for HTTP 402 with complete validated x402 v2 requirements.",
      "type": "boolean"
    },
    "missing_fields": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "payment_sent": {
      "const": false
    },
    "raw_headers": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Allowlisted response headers only; never cookies or authentication headers.",
      "type": "object"
    },
    "reason": {
      "type": "string"
    }
  },
  "required": [
    "is_x402",
    "http_status",
    "challenge",
    "payment_sent"
  ],
  "additionalProperties": true,
  "allOf": [
    {
      "else": {
        "properties": {
          "challenge": {
            "type": "null"
          }
        }
      },
      "if": {
        "properties": {
          "is_x402": {
            "const": true
          }
        }
      },
      "then": {
        "properties": {
          "challenge": {
            "additionalProperties": false,
            "properties": {
              "amount": {
                "pattern": "^[0-9]+$",
                "type": "string"
              },
              "asset": {
                "description": "Asset identifier from the fresh requirements; never replaced with a cached symbol.",
                "minLength": 1,
                "type": "string"
              },
              "maxTimeoutSeconds": {
                "maximum": 3600,
                "minimum": 1,
                "type": "integer"
              },
              "network": {
                "minLength": 1,
                "type": "string"
              },
              "payTo": {
                "pattern": "^0x[a-fA-F0-9]{40}$",
                "type": "string"
              },
              "resource": {
                "description": "Exact resource URL or identifier advertised by the endpoint.",
                "minLength": 1,
                "type": "string"
              },
              "scheme": {
                "description": "Payment scheme advertised by the fresh requirement.",
                "minLength": 1,
                "type": "string"
              },
              "x402Version": {
                "const": 2
              }
            },
            "required": [
              "x402Version",
              "scheme",
              "payTo",
              "asset",
              "network",
              "amount",
              "resource",
              "maxTimeoutSeconds"
            ],
            "type": "object"
          },
          "http_status": {
            "const": 402
          }
        }
      }
    }
  ]
}
🟢x402_inspect_challenge(url)

Inspect a fresh x402 v2 challenge without sending payment. Compatible alias of check_payment with the same schema, 10-second unsigned probe and result. Use before a paid resource call; do not use as a signer, receipt verifier or settlement proof. Non-402 and incomplete challenges remain null rather than receiving invented defaults.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "url": {
      "description": "Full public HTTPS URL to inspect with an unsigned GET. No payment headers; redirects, credentials and private network targets are rejected.",
      "format": "uri",
      "maxLength": 2048,
      "minLength": 8,
      "pattern": "^https://",
      "type": "string"
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "canonical_receiver_match": {
      "description": "Comparison with documented SML receiver; a mismatch never rewrites upstream requirements.",
      "type": "boolean"
    },
    "challenge": {
      "description": "Fresh validated requirements, or null. No synthetic defaults are inserted.",
      "oneOf": [
        {
          "additionalProperties": false,
          "properties": {
            "amount": {
              "pattern": "^[0-9]+$",
              "type": "string"
            },
            "asset": {
              "description": "Asset identifier from the fresh requirements; never replaced with a cached symbol.",
              "minLength": 1,
              "type": "string"
            },
            "maxTimeoutSeconds": {
              "maximum": 3600,
              "minimum": 1,
              "type": "integer"
            },
            "network": {
              "minLength": 1,
              "type": "string"
            },
            "payTo": {
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "resource": {
              "description": "Exact resource URL or identifier advertised by the endpoint.",
              "minLength": 1,
              "type": "string"
            },
            "scheme": {
              "description": "Payment scheme advertised by the fresh requirement.",
              "minLength": 1,
              "type": "string"
            },
            "x402Version": {
              "const": 2
            }
          },
          "required": [
            "x402Version",
            "scheme",
            "payTo",
            "asset",
            "network",
            "amount",
            "resource",
            "maxTimeoutSeconds"
          ],
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    },
    "http_status": {
      "description": "Observed HTTP status; zero means no HTTP response was received.",
      "maximum": 599,
      "minimum": 0,
      "type": "integer"
    },
    "is_x402": {
      "description": "True only for HTTP 402 with complete validated x402 v2 requirements.",
      "type": "boolean"
    },
    "missing_fields": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "payment_sent": {
      "const": false
    },
    "raw_headers": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Allowlisted response headers only; never cookies or authentication headers.",
      "type": "object"
    },
    "reason": {
      "type": "string"
    }
  },
  "required": [
    "is_x402",
    "http_status",
    "challenge",
    "payment_sent"
  ],
  "additionalProperties": true,
  "allOf": [
    {
      "else": {
        "properties": {
          "challenge": {
            "type": "null"
          }
        }
      },
      "if": {
        "properties": {
          "is_x402": {
            "const": true
          }
        }
      },
      "then": {
        "properties": {
          "challenge": {
            "additionalProperties": false,
            "properties": {
              "amount": {
                "pattern": "^[0-9]+$",
                "type": "string"
              },
              "asset": {
                "description": "Asset identifier from the fresh requirements; never replaced with a cached symbol.",
                "minLength": 1,
                "type": "string"
              },
              "maxTimeoutSeconds": {
                "maximum": 3600,
                "minimum": 1,
                "type": "integer"
              },
              "network": {
                "minLength": 1,
                "type": "string"
              },
              "payTo": {
                "pattern": "^0x[a-fA-F0-9]{40}$",
                "type": "string"
              },
              "resource": {
                "description": "Exact resource URL or identifier advertised by the endpoint.",
                "minLength": 1,
                "type": "string"
              },
              "scheme": {
                "description": "Payment scheme advertised by the fresh requirement.",
                "minLength": 1,
                "type": "string"
              },
              "x402Version": {
                "const": 2
              }
            },
            "required": [
              "x402Version",
              "scheme",
              "payTo",
              "asset",
              "network",
              "amount",
              "resource",
              "maxTimeoutSeconds"
            ],
            "type": "object"
          },
          "http_status": {
            "const": 402
          }
        }
      }
    }
  ]
}
🟢check_status

Read the current SqueezeOS backend status and payment-readiness evidence. Returns both upstream envelopes and autonomous_spend=false. Use to diagnose readiness before purchase; HTTP availability or readiness flags alone do not establish settled or accepted delivery.

Eingabe-Schema

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "autonomous_spend": {
      "const": false
    },
    "core": {
      "additionalProperties": true,
      "properties": {
        "body": {
          "description": "Exact upstream JSON or a bounded text excerpt; missing evidence is not filled in."
        },
        "ok": {
          "description": "Whether the selected upstream returned HTTP 2xx; not settlement proof.",
          "type": "boolean"
        },
        "payment_required": {
          "type": "boolean"
        },
        "source": {
          "description": "The queried local upstream path.",
          "type": "string"
        },
        "status_code": {
          "type": "integer"
        }
      },
      "required": [
        "ok",
        "status_code",
        "source",
        "body",
        "payment_required"
      ],
      "type": "object"
    },
    "hosting": {
      "type": "string"
    },
    "ok": {
      "type": "boolean"
    },
    "payment_readiness": {
      "additionalProperties": true,
      "properties": {
        "body": {
          "description": "Exact upstream JSON or a bounded text excerpt; missing evidence is not filled in."
        },
        "ok": {
          "description": "Whether the selected upstream returned HTTP 2xx; not settlement proof.",
          "type": "boolean"
        },
        "payment_required": {
          "type": "boolean"
        },
        "source": {
          "description": "The queried local upstream path.",
          "type": "string"
        },
        "status_code": {
          "type": "integer"
        }
      },
      "required": [
        "ok",
        "status_code",
        "source",
        "body",
        "payment_required"
      ],
      "type": "object"
    }
  },
  "required": [
    "ok",
    "hosting",
    "core",
    "payment_readiness",
    "autonomous_spend"
  ],
  "additionalProperties": true
}

Empfohlene Prompts

list_items
List all [items] available in x402 Pay — USDC API Payment Helper
Erwartete Tools: list_paid_apis
browse_collection
Show me the [collection] from x402 Pay — USDC API Payment Helper
Erwartete Tools: list_paid_apis

Community

Diesen Server bewerten

Nachweis

Aktuelle Beobachtungen

verifiziertVersion nicht aufgezeichnet5 Tools
verifiziertVersion nicht aufgezeichnet5 Tools
verifiziertVersion nicht aufgezeichnet5 Tools
verifiziertVersion nicht aufgezeichnet4 Tools
verifiziertVersion nicht aufgezeichnet4 Tools
verifiziertVersion nicht aufgezeichnet4 Tools
verifiziertVersion nicht aufgezeichnet4 Tools