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

examples/mcp-agent: an agent that pays per MCP tool call, guarded

Aperta
#59 0 commenti 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
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
blockchain

Direzione di ricerca

Start from test/official-mcp.test.ts, which already runs agentSafeGuard with the @x402/mcp client over the in-memory transport, and reuse its chain-free local facilitator. Read the @x402/mcp section of sdk/README.md and the layout of examples/agent-workflow. Done when npm start prints the allowed call, the hijacked 402 (payee_mismatch) and the exhausted plan, npm test asserts all three, and the example is wired into the newcomer CI job.

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

Descrizione

good first issue integration

test/official-mcp.test.ts (added in 8af8daa) shows agentSafeGuard working with the @x402/mcp client over the in-memory transport: a tool call to the pinned payee is paid, a swapped payee is refused (payee_mismatch), and the sealed plan is enforced.

What: turn that into a runnable example in examples/mcp-agent/: a small MCP client that pays for a tool call through Agent Safe, against a local paid MCP server (reuse the chain-free local facilitator from the test). Show the owner config (registry, plan, origin = the MCP server URL) and the output for an allowed call, a hijacked 402 and an exhausted plan.

Done when: npm i && npm start prints the three outcomes, npm test asserts them, and it is added to the newcomer CI job. Installed from the published packages like the other examples.

See sdk/README.md (the @x402/mcp section) and examples/agent-workflow for the shape.

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.