examples/mcp-agent: an agent that pays per MCP tool call, guarded
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- blockchain
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- TypeScript
- 星标
- 0
- 派生
- 0
- 平均合并
- 3 小时 51 分钟
- 30 天内合并 PR
- 3
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DeepFirstHQ/deepfirstsearch 的其他 Issue
-
documentation help wanted
难度 2/5 1-3 小时 新手友好度 72/100
-
documentation good first issue
难度 2/5 1-3 小时 新手友好度 62/100
-
难度 3/5 1-2 天 新手友好度 28/100
-
enhancement
难度 3/5 1-2 天 新手友好度 58/100
-
enhancement good first issue
难度 3/5 1-2 天 新手友好度 55/100
查看 DeepFirstHQ/deepfirstsearch 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
jessepollak/home#2223 ·
维护者通常 1 天内回复
-
grep fixture corpus test follows the corpus's loop symlink under the receipt runner (fails on main)未关闭
难度 2/5 1-3 小时 新手友好度 68/100
code-yeongyu/senpi#3756 ·
维护者通常 1 天内回复
-
org:external package:deepagents priority:triage topic:memory topic:middleware type:bug
难度 2/5 1-3 小时 新手友好度 65/100
langchain-ai/deepagents#7059 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
osmlab/name-suggestion-index#12992 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 66/100
hemilabs/ui-monorepo#2506 ·
维护者通常 1 天内回复