{"name":"io.github.entradox/agent-ledger","title":"AgentLedger","description":"Meter, cap, and block AI agent spend before the provider is charged.","url":"https://aiagentscity.com/mcp/","website":"https://aiagentscity.com","repository":"https://github.com/entradox/agent-ledger","status":"ok","score":80,"grade":"B","protocol":"2025-06-18","tools":18,"tokens":6147,"latency_ms":604,"availability_30d":1.0,"checks_30d":3,"discover":"none","checked_at":"2026-11-29 03:25 UTC","cite":"On 2026-11-29 03:25 UTC, the BOTERNITY MCP Index scored AgentLedger (io.github.entradox/agent-ledger) 80/100 (grade B); 18 tools, 6147 tokens for tools/list; healthy in 100 % of 3 checks over 30 days.","page":"https://boternity.com/mcp-index/server?name=io.github.entradox%2Fagent-ledger","badge":"https://boternity.com/mcp-index/badge.svg?name=io.github.entradox%2Fagent-ledger","history":[{"at":"2026-11-29 03:25 UTC","status":"ok","score":80},{"at":"2026-11-27 06:28 UTC","status":"ok","score":84},{"at":"2026-11-26 05:35 UTC","status":"ok","score":84}],"alternatives":null,"similar":null,"declared_tools":{"captured_at":"2026-11-29 03:25 UTC","same_check_as_score":true,"names":["ledger_alerts","ledger_api_docs","ledger_approval_decide","ledger_approvals","ledger_check_spend","ledger_examples","ledger_price","ledger_proxy_attach","ledger_report","ledger_request_approval","ledger_revoke_secret","ledger_rotate_secret","ledger_set_budget","ledger_start","ledger_track","ledger_wait_events","read_skill","skills_list_tool"],"documented":[{"name":"ledger_alerts","description":"Alert history for an agent: budget warnings (80% threshold) and spending spikes. Requires a credential: either the agent's own agent_secret or its workspace's workspace_key (same rule as GET /v1/alerts).","params":["agent_id","agent_secret","workspace_key"],"required":["agent_id"],"readOnlyHint":true,"destructiveHint":false},{"name":"ledger_api_docs","description":"Self-serve documentation for AgentLedger — quickstart, MCP tools, REST endpoints, budget caps, error codes, and idempotency usage, as markdown.","params":["topic"],"readOnlyHint":true,"destructiveHint":false},{"name":"ledger_approval_decide","description":"Approve or deny a pending spend permit — workspace owner only. The agent's own agent_secret can REQUEST an approval but can never decide one: a credential that can approve its own requests is not a control. decision must be 'approve' or 'de","params":["agent_id","approval_id","decision","workspace_key"],"required":["agent_id","approval_id","decision","workspace_key"],"readOnlyHint":false,"destructiveHint":true},{"name":"ledger_approvals","description":"List spend-approval permits — yours, or your whole workspace's.","params":["agent_id","agent_secret","state","workspace_key"],"readOnlyHint":true,"destructiveHint":false},{"name":"ledger_check_spend","description":"Ask BEFORE you spend: may this agent spend this much right now? Returns allowed (true/false), a stable reason code (within_budget, over_monthly_cap, over_daily_cap, over_monthly_token_cap, over_daily_token_cap, no_budget_set, unpriced_model","params":["agent_id","agent_secret","amount_cents","model","tokens_in","tokens_out","workspace_key"],"required":["agent_id"],"readOnlyHint":true,"destructiveHint":false},{"name":"ledger_examples","description":"Complete, runnable Python recipe for a common AgentLedger integration pattern.","params":["pattern"],"required":["pattern"],"readOnlyHint":true,"destructiveHint":false},{"name":"ledger_price","description":"What will this call cost? Priced from the same table the caps use. Exists because ledger_track requires the CALLER to supply amount_cents, so an agent whose spend is capped could under-report its own cost and stay under the cap. This return","params":["model","tokens_in","tokens_out"],"required":["model"],"readOnlyHint":true,"destructiveHint":false},{"name":"ledger_proxy_attach","description":"Point your provider traffic at the proxy so budget caps are enforced BEFORE the provider is contacted, instead of being reported afterwards. This closes the gap where the brake was unreachable from MCP: an agent connected over MCP could rec","params":["agent_id","agent_secret","provider","workspace_key"],"required":["agent_id"],"readOnlyHint":true,"destructiveHint":false},{"name":"ledger_report","description":"Spend report for an agent over a rolling window. Returns total spend, breakdown by rail and by service, budget status (ok/warning/exceeded), detected anomalies, and entry count. Requires a credential: either the agent's own agent_secret or ","params":["agent_id","agent_secret","days","workspace_key"],"required":["agent_id"],"readOnlyHint":true,"destructiveHint":false},{"name":"ledger_request_approval","description":"Ask your workspace owner for a one-shot spend exception before a ledger_track that the cap would refuse. Creates a pending permit for exactly amount_cents on the given service. The owner (a human, or a supervisor agent holding the workspace","params":["agent_id","agent_secret","amount_cents","reason","service","workspace_key"],"required":["agent_id","amount_cents","service"],"readOnlyHint":false,"destructiveHint":false},{"name":"ledger_revoke_secret","description":"Invalidate an agent_id's agent_secret WITHOUT deleting its spend history. Use when a credential may have leaked, or to stop an agent writing. Subsequent writes to that agent fail with agent_secret_mismatch until you rotate a new secret in. ","params":["agent_id","workspace_key"],"required":["agent_id","workspace_key"],"readOnlyHint":false,"destructiveHint":true},{"name":"ledger_rotate_secret","description":"Mint a NEW agent_secret for an agent_id your workspace already owns, invalidating the old one. Use this to RECOVER an agent whose secret was lost: the previous credential stops working immediately. Requires the workspace_key that owns agent","params":["agent_id","workspace_key"],"required":["agent_id","workspace_key"],"readOnlyHint":false,"destructiveHint":true},{"name":"ledger_set_budget","description":"Set spending caps for an agent. Warns at 80%, blocks spend when exceeded — enforced: a ledger_track call that would cross the cap is rejected. Dollar caps (monthly_cents/daily_cents) and token caps (monthly_tokens/ daily_tokens) are indepen","params":["agent_id","agent_secret","daily_cents","daily_tokens","monthly_cents","monthly_tokens","workspace_key"],"required":["agent_id","monthly_cents"],"readOnlyHint":false,"destructiveHint":true},{"name":"ledger_start","description":"Get a FREE AgentLedger workspace with no credential and no arguments — the MCP equivalent of opening POST /start in a browser. Call this FIRST if you have no credentials yet. Every other tool here (ledger_track, ledger_set_budget, ledger_re","readOnlyHint":false,"destructiveHint":false},{"name":"ledger_track","description":"Record a spend entry for an AI agent on any payment rail, with optional token counts. Claiming a brand-new agent_id requires your workspace_key (get one via x402 at POST /v1/billing/x402 — no human, no login — or at /start). That first call","params":["agent_id","agent_secret","amount_cents","model","rail","service","tokens_in","tokens_out","workspace_key"],"required":["agent_id","amount_cents","rail","service"],"readOnlyHint":false,"destructiveHint":false},{"name":"ledger_wait_events","description":"Long-poll an agent's event feed — how an agent with no public URL receives alerts. Webhooks (POST /v1/webhooks) push events to a URL you own; an agent on stdio MCP cannot host one, so it waits here instead. Call this in a loop: the call hol","params":["agent_id","agent_secret","client_instance","client_started","consumer_id","cursor","name","timeout","workspace_key"],"required":["agent_id","consumer_id"],"readOnlyHint":true,"destructiveHint":false},{"name":"read_skill","description":"Read a product skill file by its skill:// URI.","params":["uri"],"required":["uri"]},{"name":"skills_list_tool","description":"List this product's skills. Each entry carries the SKILL.md URI, its name and description, verbatim frontmatter, and a per-file sha256 manifest. Read a body with `read_skill`."}],"rule":"Tool names and descriptions are the server's own words, copied from its tools/list answer at the dated check (descriptions cut at 240 characters, 12 parameters, 30 documented tools at most). BOTERNITY never calls these tools and does not verify what they do."},"clients":[{"client":"claude","verdict":"ready","reason":"Answered a standard MCP initialize over Streamable HTTP without sign-in on 2026-11-29; Claude accepts servers that need no sign-in.","source":"https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp"},{"client":"chatgpt","verdict":"ready","reason":"Answered a standard MCP initialize over Streamable HTTP without sign-in on 2026-11-29; ChatGPT accepts servers that need no sign-in.","source":"https://developers.openai.com/apps-sdk/build/auth"},{"client":"cursor","verdict":"ready","reason":"Answered a standard MCP initialize over Streamable HTTP without sign-in on 2026-11-29; Cursor accepts servers that need no sign-in.","source":"https://cursor.com/docs/context/mcp"},{"client":"vscode","verdict":"ready","reason":"Answered a standard MCP initialize over Streamable HTTP without sign-in on 2026-11-29; VS Code accepts servers that need no sign-in.","source":"https://code.visualstudio.com/api/extension-guides/ai/mcp"}],"connect":{"name":"agent-ledger","url":"https://aiagentscity.com/mcp/","required_headers":[],"optional_headers":[],"claude_code":"claude mcp add --transport http agent-ledger https://aiagentscity.com/mcp/","cursor":{"mcpServers":{"agent-ledger":{"url":"https://aiagentscity.com/mcp/"}}},"vscode":{"servers":{"agent-ledger":{"type":"http","url":"https://aiagentscity.com/mcp/"}}},"claude":{"connector_url":"https://aiagentscity.com/mcp/","headers":[],"verdict":"ready","reason":"Answered a standard MCP initialize over Streamable HTTP without sign-in on 2026-11-29; Claude accepts servers that need no sign-in."},"chatgpt":{"connector_url":"https://aiagentscity.com/mcp/","can_send_required_headers":true,"verdict":"ready","reason":"Answered a standard MCP initialize over Streamable HTTP without sign-in on 2026-11-29; ChatGPT accepts servers that need no sign-in."},"rule":"Generated from the Streamable HTTP address this server publishes in the official MCP Registry (the address the Index check connects to) and from the request headers its registry entry declares as required. Values in capitals are placeholders: get the real ones from the publisher. Nothing here is run against the server.","note":"The check of 2026-11-29 (UTC) connected to this address without any credential."},"failure":null,"signature":{"alg":"Ed25519","kid":"450c02fbfb29dba9","statement":{"v":1,"issuer":"boternity.com","kid":"450c02fbfb29dba9","name":"io.github.entradox/agent-ledger","url":"https://aiagentscity.com/mcp/","status":"ok","score":80,"grade":"B","checked_at":"2026-11-29T03:25:05Z","protocol":"2025-06-18","tools":18,"tokens":6147,"latency_ms":604,"availability_30d_permille":1000,"checks_30d":3},"digest":"sha256:9235d439447df3069f828ae7f482e65d5fc416a80647d841b70276e36234630f","signature":"H2ga52bXlKFjUhNJskTp0zkca2p9uDcztn3UThOcY-dtmAUnnlpTqeh1hGFRoBzP37ej6WKxEZrwx-MPhV4hAw","keys":"https://boternity.com/.well-known/boternity-index-keys.json","verify":"https://boternity.com/mcp-index/verify"},"method":"https://boternity.com/mcp-index/method","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"}}