examples/mcp-agent: an agent that pays per MCP tool call, guarded
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ả
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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DeepFirstHQ/deepfirstsearch
-
documentation help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 28/100
-
enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
-
enhancement good first issue
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
Tất cả issue của DeepFirstHQ/deepfirstsearch
Issue tương tự
-
[Android] Nested transforms are composed in reverse orderCó thể đã có người làm @Danyalo đã nhận hôm nay. Đang mởRepro provided
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
software-mansion/react-native-svg#3090 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
radix-ui/primitives#4228 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
rocketride-org/rocketride-server#2705 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
archon-ready archon-size-s archon-type-bug area: web
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
coleam00/Archon#4707 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
HarperFast/grafana-datasource#177 ·