Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

agentSafeGuard for x402 payments over MCP (`@x402/mcp`)

Aperta
#50 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
payments

Direzione di ricerca

Start in sdk/README.md to see where the agentSafeGuard usage section goes, and find the guard's origin option in the SDK source. Before coding, comment on the issue, because the issue leaves open whether a guard.mcp(...) helper is needed and a new dependency must be discussed first. Done means a test with an in-memory x402-paid MCP server passes: a call at the pinned price to the pinned payee is paid, and a swapped payee is refused with payee_mismatch and zero signatures. The README section must also be added.

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

Descrizione

help wanted integration

Some agents pay per MCP tool call: the x402 client in @x402/mcp handles a payment-required tool result instead of an HTTP 402. The policy is the same, but the "origin" is the MCP server the owner configured.

What: show that agentSafeGuard works with the @x402/mcp client, using the guard's fixed origin option set to the MCP server URL. Or propose a small guard.mcp(...) helper if the hooks need more context.

Acceptance:

  • A test with a minimal x402-paid MCP server (in-memory transport is fine): a tool call at the pinned price to the pinned payee is paid; a swapped payee is refused (payee_mismatch) with zero signatures.
  • A short section in sdk/README.md.

New to the repo? Start with CONTRIBUTING.md. Every outside PR goes through the review gates in docs/REVIEWING.md. Please discuss any new dependency in this issue first. Comment here before starting, so two people don't build the same thing.

Lingua principale
TypeScript
Stelle
0
Fork
0
Merge medio
3h 51m
PR unite (30g)
3

Preparare l'ambiente

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 DeepFirstHQ/deepfirstsearch

Tutte le issue di DeepFirstHQ/deepfirstsearch

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.