Przejdź do treści
Biblioteka skilli
Programowanie · Przegląd i audyt

mpp-conformance

/mpp-conformance

Waliduje implementacje MPP względem specyfikacji: zgodność wyzwania i odpowiedzi HTTP 402, formaty nagłówków, poprawność metod płatności, wykrywanie usług i gotowość produkcyjną.

Licencja
MIT
Ostatnia zmiana repozytorium
14.09.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
2
Przestarzałość

Brak sygnałów. Repozytorium zmienione 14.09.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Waliduje implementacje MPP względem specyfikacji: zgodność wyzwania i odpowiedzi HTTP 402, formaty nagłówków, poprawność metod płatności, wykrywanie usług i gotowość produkcyjną.

Oryginalny opis (EN)

Validate MPP implementations against the specification — verify HTTP 402 challenge-response compliance, header formats, payment method correctness, service discovery, and production readiness. Use when auditing an MPP integration or preparing for production launch.

Jak działa

  1. Before writing code
  2. Protocol Compliance Checklist
  3. Production Readiness Checklist
Sekcje z nagłówków SKILL.md, w oryginale · 110 linii, 627 słów
Podgląd SKILL.md
---
name: mpp-conformance
description: Validate MPP implementations against the specification — verify HTTP 402 challenge-response compliance, header formats, payment method correctness, service discovery, and production readiness. Use when auditing an MPP integration or preparing for production launch.
allowed-tools: Read, Write, Edit, Bash, Grep, Glob, WebSearch, WebFetch
disable-model-invocation: true
---

# MPP Conformance & Production Readiness

## Before writing code

**Fetch live docs**:
1. Fetch `https://paymentauth.org/` for the canonical specification requirements
2. Fetch `https://datatracker.ietf.org/doc/draft-ryan-httpauth-payment/` for the IETF draft compliance requirements
3. Web-search `site:docs.stripe.com payments machine mpp production` for Stripe production readiness
4. Web-search `site:paymentauth.org draft-payment-discovery` for service discovery compliance

## Protocol Compliance Checklist

### HTTP 402 Response

- [ ] Returns `402 Payment Required` status code for unpaid requests
- [ ] Includes `WWW-Authenticate: Payment <base64url-challenge>` header
- [ ] Challenge contains required fields: `id`, `realm`, `method`, `intent`, `request`
- [ ] Challenge JSON is RFC 8785 canonicalized before base64url encoding
- [ ] Challenge size under 8KB
- [ ] Error body follows RFC 9457 Problem Details format

### Authorization Header

- [ ] Accepts `Authorization: Payment <base64url-credential>` header
- [ ] Parses credential correctly (base64url decode → JSON)
- [ ] Validates payment proof against the payment method
- [ ] Returns appropriate error for invalid credentials

### Payment-Receipt Header

- [ ] Returns `Payment-Receipt: <base64url-receipt>` on successful payment
- [ ] Receipt contains: status, method, timestamp, reference
- [ ] Receipt is delivered atomically with the resource

### Challenge Binding

- [ ] Uses 32-byte secret key for HMAC challenge binding
- [ ] Challenge IDs are unique and non-guessable
- [ ] Challenges have expiration timestamps
- [ ] Expired challenges are rejected
- [ ] Each challenge can only be consumed once (replay protection)

### Transport Security

- [ ] TLS 1.2+ on all endpoints (TLS 1.3 recommended)
- [ ] HTTPS only (port 443)
- [ ] `Cache-Control: no-store` on responses with credentials
- [ ] No plaintext credential logging

### Payment Methods

- [ ] At least one payment method configured
- [ ] Tempo: correct chain ID (4217), valid USDC contract address, valid recipient
- [ ] Stripe: valid API key, correct SPT handling
- [ ] Payment verification is atomic (no partial states)

### Service Discovery

- [ ] `GET /openapi.json` returns valid OpenAPI 3.x document
- [ ] `x-service-info` extension present with categories and docs
- [ ] `x-payment-info` extension on each payable operation
- [ ] All payable operations declare `402` response
- [ ] OpenAPI document under 64 KB
- [ ] `Cache-Control: max-age=300` on discovery endpoints
- [ ] `llms.txt` available with service description

### Error Handling

- [ ] `payment-required` for initial challenges
- [ ] `verification-failed` for invalid proofs
- [ ] `payment-expired` for expired challenges/credentials
- [ ] `malformed-credential` for unparseable credentials
- [ ] All errors include RFC 9457 `type` URLs

## Production Readiness Checklist

### Security

- [ ] Secret key stored in environment variable or secrets manager
- [ ] No hardcoded Stripe keys, wallet keys, or SPT tokens
- [ ] Key rotation strategy documented
- [ ] Rate limiting implemented
- [ ] DDoS protection (Cloudflare, AWS Shield, etc.)

### Monitoring

- [ ] Payment success/failure metrics collected
- [ ] Challenge issuance rate tracked
- [ ] Revenue per endpoint dashboarded
- [ ] Alert on verification failure spikes
- [ ] Tempo chain health monitored (if using Tempo)
- [ ] Stripe API availability monitored (if using Stripe)

### Reliability

- [ ] Health check endpoint (outside payment gate)
- [ ] Graceful degradation if payment provider is down
- [ ] Credential store (Redis/DB) for replay protection has failover
- [ ] Load tested with expected traffic volume

### Operations

- [ ] Deployment does not interrupt active payment sessions
- [ ] Secret key rotation does not invalidate in-flight challenges
- [ ] Refund process documented and tested
- [ ] Billing reconciliation process defined

Fetch the latest specification and IETF draft for any newly added compliance requirements before running conformance checks.

Wersje

W bazie nie ma innych skilli o nazwie mpp-conformance.

Migawka bazy z 13.11.2026 · wersja paczki 44a3c919955c (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100mpp-stripe-method
    Konfiguruje Stripe jako metodę płatności MPP: płatności kartą i portfelem przez Shared Payment Tokens, z integracją przepływu HTTP 402 z infrastrukturą płatniczą Stripe.
  • 100mpp-service-discovery
    Wdraża wykrywanie usług MPP: dokumenty OpenAPI z rozszerzeniem x-payment-info, metadane x-service-info i llms.txt, aby agenci AI znajdowali i opłacali płatne usługi.
  • 100mpp
    Pomaga budować rozwiązania z MPP (Machine Payments Protocol), czyli płatnościami maszyna do maszyny przez HTTP 402, dla płatnych API, agentów i rozliczeń naliczanych z SDK mppx, pympp i Rust.
  • 95pay-with-any-token
    Opłaca wyzwania płatnicze HTTP 402 tokenami przez CLI Tempo i Uniswap Trading API, przy odpowiedzi 402 Payment Required i płatnościach maszynowych w protokołach MPP i x402.
  • 95lightning-amp-mpp
    Opisuje płatności wielościeżkowe MPP i AMP w sieci Lightning: dzielenie płatności na równoległe trasy, wspólny hash lub osobne hashe części oraz diagnozę problemów z routingiem pełnej kwoty.
  • 90agentic-gateway
    Podłącza Alchemy do kodu aplikacji bez klucza API, przez bramkę x402 lub MPP z uwierzytelnianiem portfelem i płatnościami USDC.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.