Add a live mainnet x402 MCP conformance fixture

Aperta
#60 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github, python
Ambito
devtools, testing

Direzione di ricerca

Start by locating the buyer skill's x402 MCP transport and its existing tests or examples. Then check how it handles tools/list, an unpaid tools/call, payment metadata, a paid retry, and the settlement response against the public HumanMirror endpoint. Done means a documented optional workflow exercises that sequence; the issue does not name repository files or tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The buyer skill now supports the x402 MCP transport, but I could not find a public mainnet conformance fixture in this repo that exercises the full MCP flow end-to-end against an independent seller.

Would it be useful to add one documented external fixture for:

  1. tools/list discovery
  2. unpaid tools/call → PaymentRequired in structuredContent
  3. payment in _meta["x402/payment"]
  4. paid retry
  5. settlement in _meta["x402/payment-response"]

HumanMirror can serve as that fixture without requiring an account or API key.

Public MCP server:
POST https://humanmirror.fr/api/x402/mcp/

Two paid tools:

  • humanmirror_machine_resolve — 0.001 USDC on Base
  • humanmirror_safe_preflight — 0.010 USDC on Base

The MCP-originated PaymentRequired now uses the x402 MCP resource identity form:
mcp://tool/

and includes Bazaar MCP discovery metadata (type=mcp, toolName, inputSchema, example, streamable-http).

Canonical discovery:
https://humanmirror.fr/.well-known/x402
https://humanmirror.fr/kit.json

Independent public evidence already exists that HumanMirror is x402-compliant and listed in CDP Bazaar:
https://forgemesh.io/partners/humanmirror

I am not proposing a special-case integration or any change to MetaMask payment policy. The useful outcome would be a small optional example/conformance workflow that lets contributors test the MetaMask buyer against a live third-party seller.

If you prefer a different public seller for the fixture, the same test shape would still be valuable; I can help adapt the HumanMirror side if your MCP buyer exposes a stricter requirement than the current x402 v2 spec.

Lingua principale
Python
Stelle
30
Fork
16
Merge medio
11h 59m
PR unite (30g)
5

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MetaMask/agent-skills

Tutte le issue di MetaMask/agent-skills

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.