Borrowing it
Nothing to install: this file belongs to up2itnow0822/agentpay-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/up2itnow0822/agentpay-mcp/main/AGENTS.mdgit clone --depth 1 https://github.com/up2itnow0822/agentpay-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/up2itnow0822/agentpay-mcp/agents-md)<a href="https://agentmods.dev/instructions/up2itnow0822/agentpay-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/up2itnow0822/agentpay-mcp/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/up2itnow0822/agentpay-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/up2itnow0822/agentpay-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01216 | $0.01216 |
| Opus 5.5 | $0.00486 | $0.00486 |
| Sonnet 5.5 | $0.00243 | $0.00243 |
| Haiku 4.5 | $0.00122 | $0.00122 |
Grade A, and why
agentpay-mcp AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md -- AgentPay MCP
Purpose
- This repository provides the canonical MCP server for policy-aware x402 payment tools in the AI Agent Economy payment trial.
Ownership
- AI Agent Economy owns the server, npm package, documentation, and release evidence.
Local Contracts
- Preserve local signing, explicit policy checks, idempotency, and fail-closed handling of malformed or untrusted payment responses.
- Never use live funds or production credentials in default tests.
- Keep npm metadata, README commands, GitHub releases, and runtime behavior consistent.
- Treat
dist/, coverage, dependency folders, and generated repair artifacts as outputs unless a closer contract says otherwise. - Merge policy: a PR merges only with 100% green checks and every review
comment resolved. The
mainruleset enforces thebuildcheck and thread resolution; no direct pushes, force-pushes, or branch deletion. - Every outbound HTTP request to a caller-influenced destination goes through
src/utils/safe-fetch.ts(https, no private destinations, pinned DNS, no automatic redirects, capped bodies). Never call globalfetchfor it — this includes the value-pack examples, which import it directly. - Every value-moving handler runs inside
withSpendIntentand wraps wallet writes inrunClassifiedSpend; failures after a possible broadcast lock the intent. Unresolved locks are never evicted; only the operator CLI clears them. - x402 payment entry points require
max_payment_ethandpay_to; the signed requirement must match the caller-approved terms. x402 intents carry alockScope(canonical host + payee): a paid-but-undelivered payment, including a paid non-2xx response, blocks new x402 payments to that host and that payee until the operator CLI resolves it. Intents sharing a scope key run one at a time. Settled idempotency keys are never evicted; the spend journal is compacted only to live state (temp + fsync + rename). - Operator reconciliation states the on-chain outcome:
resolve <id> settledretires a keyed intent's key (tombstone),unsettledclears the lock. One process owns anAGENTPAY_STATE_DIR(spend-intents.lock: inode + nonce re-verified before every journal write; heartbeat through the owner's own descriptor; pid liveness trusted only within one host, boot and PID namespace; takeovers serialised). Never write the journal from a second process. Operator commands select intents by theid:handle (spendIntentHandle) or a shell-plain key, never by printed key text; keys are printed only throughdisplaySpendIntentKey.idempotencyKeyinput rejects control, invisible-formatting and line-separator characters. - Spend policy: the operator policy comes only from the environment; MCP callers may only tighten. No MCP tool may loosen policy or clear spend locks.
- Remote free text (HTTP bodies, registry metadata, error strings) reaches
tool results only through
formatUntrustedBodyor sanitizers. - Third-party GitHub Actions are pinned to full commit SHAs. Model-driven
jobs (daily-review
analyze, daily-repairplan) hold only read-only tokens and no persisted credential; deterministic jobs validate their artifacts and own every write. No workflow merges automatically. Every workflow declarespermissions; CI that runs PR code iscontents: read. server.jsondeclares every environment variable the server reads.- Codex review: the Codex review a PR gets in CI is the only Codex check;
every Codex comment must be resolved (repaired or disposed of in writing).
review-gateenforces a non-dismissed Codex review of the PR's current head SHA plus zero unresolved Codex threads. A review of an older commit does not count. - The finding-to-fix map in
docs/security-remediation-2026-10.mdmust stay accurate when any of these controls change.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago Changed · +55 lines · +909 tokens per session a368cbbcaafb
- 1mo ago Changed · +3 lines · +49 tokens per session f73108d26cce
- 2mo ago First seen · 38 lines · 258 tokens per session scan A 56398b25cdce
agentpay-mcp AGENTS.md is an instructions file published in the GitHub repository up2itnow0822/agentpay-mcp (8 stars, last pushed yesterday), licensed MIT. It adds 1,216 tokens to every session, about $0.0049 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
agentpay-mcp AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| agentpay-mcp AGENTS.mdup2itnow0822/agentpay-mcp | Instructions file | 8 | yesterday | MIT | A | 1,216 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |