`agent-pay check`: accept an MCP config file as the registry
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 48/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
Hướng nghiên cứu
Start with the agent-pay check --registry loader and the existing atomic-units registry format it expects, then read the linked CONTRIBUTING.md and docs/REVIEWING.md. Add a branch for the MCP config shape (a network and merchants object) that converts decimal strings with exact parsing, such as viem's parseUnits, and maps price to pricePin and tolerancePct to toleranceBps. Done means tests cover both file shapes and a clear error for anything else, and the preset question is answered in the issue before coding.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
An owner who already runs agent-pay-mcp has their sellers in an MCP config: decimal USDC strings such as "price": "0.003", "maxPerTx": "0.005". agent-pay check --registry expects a different JSON, with atomic units and pricePin. So today they would maintain two files.
What: when the --registry file is an object with network and merchants (the MCP config shape), convert it: decimal strings become atomic units, price becomes pricePin, and tolerancePct becomes toleranceBps. Also accept "preset": "verified" if it's easy to share the preset data. Otherwise report clearly that presets aren't supported there yet.
Acceptance:
- Tests for both file shapes, and a clear error for anything else.
- The conversion is exact: no floating point, so use viem's
parseUnitsor equivalent.
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.
- 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ự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
jessepollak/home#2223 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
grep fixture corpus test follows the corpus's loop symlink under the receipt runner (fails on main)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
code-yeongyu/senpi#3756 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
org:external package:deepagents priority:triage topic:memory topic:middleware type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
langchain-ai/deepagents#7059 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
osmlab/name-suggestion-index#12992 ·
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 66/100
hemilabs/ui-monorepo#2506 ·
Maintainer thường phản hồi trong vòng 1 ngày