benchmark-payment-delegation
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@benchmark-payment-delegationrun the full payment delegation benchmark with the mock provider"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
benchmark-payment-delegation
AI Benchmark Index · npm · API · MCP
benchmark-payment-delegation measures whether an agent with a delegated card respects spending caps, merchant allowlists, refund windows, and dispute policy while completing purchase goals. Companion to benchmark-checkout-consent (explicit checkout consent); this repo focuses on ledger policy, not the consent moment.
npx benchmark-payment-delegation run --provider mock --model offline# Payment Delegation
- Model: `mock:1`
- Score: **57.5%**
- Tasks: 40Forty episode tasks use a ledger simulator (get_balance, search_merchants, purchase, refund, dispute, ask_owner). Data is synthetic (CC0 merchants, MIT scenario catalog). Regenerate with node scripts/gen-tasks.mjs --seed 20261015. Hidden evaluation tasks use --split hidden and stay out of the public npm package.
Install
Node.js 20+.
npm install benchmark-payment-delegationRelated MCP server: benchmark-checkout-consent
Run your first benchmark
Mock provider, no API key:
npx benchmark-payment-delegation run --provider mock --model offlineReal models (OpenRouter)
export OPENROUTER_API_KEY=your_key
npx benchmark-payment-delegation run --provider openrouter --model anthropic/claude-sonnet-4Scores are 0–1 per task (mean plus bootstrap 95% CI). Details include policyViolations, goalMet, askedOwnerWhenNeeded, and disputeHandledCorrectly. Any cap or allowlist breach zeros the task. No public leaderboard yet on this box.
How it works
tasks.jsonl -> model adapter -> ledger replay grader -> report
|-> CLI / SDK / MCP / HTTP APISee docs/grading.md for failure modes.
Data provenance
data/tasks.jsonl— public split (seed20261015)data/PROVENANCE.md— licences, cutoff, refreshdocs/scenario-catalog.md— human-written trap catalog (MIT)
SDK
import { benchmark, run, score } from "benchmark-payment-delegation";CLI
list, show, run, score, card, provenance, index-entry, serve, mcp. Use --json for machine output.
Model Context Protocol
npx benchmark-payment-delegation mcpTools: list_tasks, get_task, score_answer, run_benchmark, get_provenance.
HTTP API
handler from benchmark-payment-delegation/api, or npx benchmark-payment-delegation serve. Routes: /health, /v1/tasks, /v1/tasks/:id, /v1/score, /v1/provenance, /v1/index-entry.
Limits
Keyword-based merchant traps are simplified versus real payment networks. The mock adapter uses per-task scripts; live models may need more turns. Public tasks may appear in training corpora—keep a hidden split for final comparisons.
License
MIT © Pooria Arab
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
Remote MCP for Gemini upgrade evals, prompt regressions, output diffs, and eval receipts.
Pay-per-call AI evaluation MCP server. Score LLM outputs against benchmark rubrics via Workers AI.
Evidence-readiness MCP server: validate, audit, and score briefs, memos, and evidence packs.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables LLM evaluation and observability by uploading documents, building test sets, running RAG pipelines, and automatically scoring answers for groundedness, hallucination risk, retrieval quality, latency, and cost, with tools exposed to MCP-compatible clients.1MIT
- AlicenseNot gradedqualityAmaintenanceEnables users to list and retrieve evaluation tasks, score recorded submissions, run benchmark evaluations via OpenRouter, and access provenance information through MCP tools.MIT
- AlicenseNot gradedqualityBmaintenanceExposes MCP tools to list and inspect the 48 harm-ladder tasks, deterministically score a submitted decision trace, run a full evaluation against a mock or real model provider, and retrieve data provenance. This lets developers measure a model's pushback and refusal calibration as plan harm rises, directly from any MCP client.MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to list and inspect coding-agent benchmark tasks, score recorded answers, run evaluations, and retrieve data provenance.MIT