浏览器与自动化
agent-ready-mpp
Sub-skill: Implement MPP Payment Discovery. Publish OpenAPI with x-payment-info extensions so AI agents discover payable endpoints via Machine Payment Protocol (mpp.dev).
fabricioctelles · 已有 AI 审核记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add fabricioctelles/skills --skill agent-ready-mpp技能说明
name: agent-ready-mpp description: > Sub-skill: Implement MPP Payment Discovery. Publish OpenAPI with x-payment-info extensions so AI agents discover payable endpoints via Machine Payment Protocol (mpp.dev).
Implement MPP Payment Discovery
Publish an OpenAPI document with MPP payment discovery metadata so AI agents can discover your payable endpoints via the Machine Payment Protocol (spec).
Requirements
- Serve
/openapi.jsonat the site root with HTTP 200 - Include
x-payment-infoextensions on payable operations - Each
x-payment-infomust declareintent(charge or session),method(tempo, stripe, lightning, card), andamount - Optionally include
currency,description, and top-levelx-service-infowith categories
Example
{
"openapi": "3.1.0",
"info": { "title": "My API", "version": "1.0" },
"paths": {
"/api/generate": {
"post": {
"x-payment-info": {
"intent": "charge",
"method": "stripe",
"amount": "0.01",
"currency": "USD",
"description": "Generate content"
}
}
}
}
}
Validate
POST https://isitagentready.com/api/scan
Content-Type: application/json
{"url": "https://YOUR-SITE.com"}
Check that checks.commerce.mpp.status is "pass".