agentSafeGuard for x402 payments over MCP (`@x402/mcp`)
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- payments
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- TypeScript
- 星标
- 0
- 派生
- 0
- 平均合并
- 3 小时 51 分钟
- 30 天内合并 PR
- 3
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DeepFirstHQ/deepfirstsearch 的其他 Issue
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 78/100
-
documentation help wanted
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 5/5 一周以上 新手友好度 15/100
-
documentation
难度 4/5 3-5 天 新手友好度 38/100
-
enhancement help wanted integration
难度 4/5 3-5 天 新手友好度 52/100
DeepFirstHQ/deepfirstsearch#69 · 2 条评论 ·
查看 DeepFirstHQ/deepfirstsearch 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 74/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
remotion-dev/remotion#12905 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
supermomonga/paseo-plugin-zcode-provider#83 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
oxidecomputer/skepsis#102 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
voidzero-dev/void#677 ·
维护者通常 1 天内回复