Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#59 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
blockchain

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Merge trung bình
3 giờ 51 phút
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DeepFirstHQ/deepfirstsearch

Tất cả issue của DeepFirstHQ/deepfirstsearch

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.