agentSafeGuard for x402 payments over MCP (`@x402/mcp`)
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
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
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DeepFirstHQ/deepfirstsearch
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
help wanted integration
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
-
enhancement good first issue
Difficoltà 3/5 1-2 giorni Idoneità per principianti 62/100
-
help wanted integration
Difficoltà 3/5 Mezza giornata Idoneità per principianti 25/100
-
enhancement good first issue
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
Tutte le issue di DeepFirstHQ/deepfirstsearch
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
xdjs/MusicNerdWeb#1532 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
sebastian-software/ardo#352 ·
I maintainer di solito rispondono entro 1 giorno
-
@react95/core good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 3 giorni
-
@shikijs/stream: `ShikiStreamTokenizer.clone()` shares its `tokensStable` array with the originalForse già presa @xyrolle l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 6 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno