Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

dryRun in the CLI (`agent-pay check <url>`) and as a free MCP tool

オープン
#41 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
50/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
cli, payments

調査の方向性

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 on deny, so it can gate CI or a cron.
  • MCP: a free check_price tool in agent-pay-mcp, so an agent can see the verdict (and the price) before it calls paid_fetch. It's useful for "is this worth paying for?" decisions and for showing the owner what a call would cost.

Notes:

  • no_challenge means "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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DeepFirstHQ/deepfirstsearch のほかの issue

DeepFirstHQ/deepfirstsearch の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。