A local payment policy test harness for MCP paid tool demos.
Gauntlet helps developers test whether an AI agent's simulated payment request satisfies a configured deterministic policy before a paid MCP tool flow continues. V0.1 is an offline/local devtool. It does not approve payments, move funds, verify merchants, or enforce production runtime policy.
Gauntlet is actively seeking external validation; review the validation goals, contribute a scenario, or report integration feedback.
- Local CLI:
gauntlet init,gauntlet run,gauntlet run --ci - Deterministic policy rules for amount, merchant matching, quote expiry, quote drift, idempotency, required metadata, and review thresholds
history.jsonfixture support for budget and duplicate checks- Redacted
receipt.jsonand developer-facingreport.md - One mock MCP paid tool example
- 8 must-have scenarios, with 12 backlog scenarios documented
- Product PRD: Gauntlet PRD.md
- Feature spec: spec.md
- Implementation plan: plan.md
- Data model: data-model.md
- CLI contract: contracts/cli.md
- Quickstart: quickstart.md
- Tasks: tasks.md
- External validation plan: external-validation-plan.md
- Integration trial: integration-trial.md
- Outreach templates: outreach-templates.md
- Validation tracker: validation-tracker.md
- FDE demo playbook: fde-demo-playbook.md
打开中文静态 FDE 演示:
open demo/index.html演示页面以「Agent 请求 → 报价核对 → 策略判断 → 脱敏凭证」呈现同一套支付预检模型。可以切换内置风险场景、修改金额和商户、运行逐项检查,并在技术证据区查看策略、请求快照、脱敏凭证和开发报告。
npm install
npm run typecheck
npm test
npm run buildPull requests run the same verification steps in GitHub Actions.
See CONTRIBUTING.md for development and contribution guidelines.
Run built-in scenarios:
npm run dev -- runCreate local fixtures:
npm run dev -- initRun a custom local fixture set:
npm run dev -- run \
--policy gauntlet/policy.yaml \
--quote gauntlet/quote.json \
--request gauntlet/requests/valid-payment.json \
--history gauntlet/history.json \
--output-dir gauntlet/receiptsReceipts are redacted by default. Use --unredacted only for local debugging.
Gauntlet is available under the MIT License.