dryRun in the CLI (`agent-pay check <url>`) and as a free MCP tool
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
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 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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 0
- Forks
- 0
- Merge medio
- 3 h 51 min
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DeepFirstHQ/deepfirstsearch
-
documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
guard: a documented way to pin the payee for clients that expose only a custom fetch or walletAbiertoenhancement help wanted
Dificultad 3/5 1-2 días Aptitud para principiantes 50/100
-
good first issue integration
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
-
help wanted integration
Dificultad 3/5 1-2 días Aptitud para principiantes 50/100
-
enhancement good first issue
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
Todos los issues de DeepFirstHQ/deepfirstsearch
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
anomalyco/opencode#56380 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
BUG | `MCP 服务器` | 全局层行的停用/启用与删除报 404 server row not found,编辑保存会在 profile 层复制出重复行Posiblemente ocupada @w6242652 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Chocobozzz/PeerTube#7832 ·
Los mantenedores suelen responder en 3 días
-
Pay to use?Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 66/100
darkreader/darkreader#16108 · 1 comentario ·
Los mantenedores suelen responder en 2 días