Skip to content

Repository files navigation

Gauntlet

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.

V0.1 Scope

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.json fixture support for budget and duplicate checks
  • Redacted receipt.json and developer-facing report.md
  • One mock MCP paid tool example
  • 8 must-have scenarios, with 12 backlog scenarios documented

Project Docs

Browser Demo

打开中文静态 FDE 演示:

open demo/index.html

演示页面以「Agent 请求 → 报价核对 → 策略判断 → 脱敏凭证」呈现同一套支付预检模型。可以切换内置风险场景、修改金额和商户、运行逐项检查,并在技术证据区查看策略、请求快照、脱敏凭证和开发报告。

Development

npm install
npm run typecheck
npm test
npm run build

Pull requests run the same verification steps in GitHub Actions.

Contributing

See CONTRIBUTING.md for development and contribution guidelines.

Current CLI

Run built-in scenarios:

npm run dev -- run

Create local fixtures:

npm run dev -- init

Run 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/receipts

Receipts are redacted by default. Use --unredacted only for local debugging.

License

Gauntlet is available under the MIT License.

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages