dryRun in the CLI (`agent-pay check <url>`) and as a free MCP tool
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 50/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start with the existing dryRun function in the agent-pay SDK and its live fixtures in sdk/test/dry-run.test.ts, then find where agent-pay-mcp registers its tools. Add a CLI check command that wraps dryRun, prints the verdict and chosen option, and exits non-zero on deny, plus a free check_price MCP tool that never sends a payment header. Done when both pass against those fixtures and one real seller, and the docs show them.
索引モデルが issue の本文から書いたものです。
説明
dryRun (agent-pay 0.10.0) answers "what would the policy do with this seller's answer?" with no key and nothing signed. It returns allow, deny with a code, no_challenge or invalid_402. Today you only get it from code.
Proposal:
- CLI:
npx @deepfirstsearch/agent-pay check <url> [--method POST --body …] --registry registry.json. It prints the verdict, the option it would pay, and why. It exits non-zero ondeny, so it can gate CI or a cron. - MCP: a free
check_pricetool in agent-pay-mcp, so an agent can see the verdict (and the price) before it callspaid_fetch. It's useful for "is this worth paying for?" decisions and for showing the owner what a call would cost.
Notes:
no_challengemeans "no terms shown to this caller now": a free route, a free trial or a 404. The tool should say that, not "free".- Never send a payment header from
check.
Done when: both work against the live fixtures in sdk/test/dry-run.test.ts plus one real seller, and the docs show them.
- 主要言語
- TypeScript
- スター
- 0
- フォーク
- 0
- 平均マージ
- 3時間 51分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DeepFirstHQ/deepfirstsearch のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
DeepFirstHQ/deepfirstsearch#40 · コメント 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
DeepFirstHQ/deepfirstsearch の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
status:approved type:bug
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
stage:4
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
ilan-pinto/roaring-lions#598 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Frontmatter next to `src:` is applied to every imported slide, not only the first (undocumented)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信