Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Cerrado
#41 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
50/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
cli, payments

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
0
Forks
0
Merge medio
3 h 51 min
PR fusionados (30 d)
3

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de DeepFirstHQ/deepfirstsearch

Todos los issues de DeepFirstHQ/deepfirstsearch

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.