nidhipati — proof of spend for AI agents
Proof-of-spend and reserve checks for AI agents: receipts, spend audit, NAV, reconciliation.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"nidhipati": {
"url": "https://rta.lat/nidhipati/mcp"
}
}
}遠端端點
https://rta.lat/nidhipati/mcpstreamable-http它能做什麼
工具清單
工具(5)
🟢verify_receipt(receipt, public_key)
Check a signed proof-of-spend receipt offline: schema, Ed25519 signature, mandate expiry, positive amount, quantity*unit_price == amount, refund not above payment. Use when an agent or provider returns a receipt and you need to know whether it actually proves the charge was allowed. Do NOT use to move funds or to confirm a transaction on-chain - nothing here reads a chain.
輸入結構描述
{
"type": "object",
"properties": {
"receipt": {
"type": "object",
"description": "The receipt document as JSON."
},
"public_key": {
"type": "string",
"description": "Ed25519 public key, base64url (from keygen) or 64 hex chars."
}
},
"required": [
"receipt",
"public_key"
]
}🟢audit_spend(records, policy)
Find duplicates, price escalation, failed-but-billed calls, runaway loops, missing refunds, model overpay, unknown asset/network and budget breaches in a list of settled agent calls. Returns three separate amounts (money without a basis, estimate above the agent's own median, budget overrun) instead of one sum, because adding them together would overstate what can be recovered. Do NOT use as a statement of money actually returned.
輸入結構描述
{
"type": "object",
"properties": {
"records": {
"type": "array",
"description": "Rows with ts, agent_id, tool, quote, settled, status; optional model, actual, refund, asset, network, tx_hash, payee.",
"items": {
"type": "object"
}
},
"policy": {
"type": "object",
"description": "Optional budget policy: {\"limit_usd\": \"100\"}."
}
},
"required": [
"records"
]
}🟢reserve_report(reserve)
Turn an issuer's reserve lines into a NAV with explicit formulas and a sha256 evidence hash per line. Verdict is backed, underbacked, or incomplete - and the backing ratio is refused (null) when any line has no price, because a ratio over half a reserve is not a number. Do NOT treat the result as a statutory audit.
輸入結構描述
{
"type": "object",
"properties": {
"reserve": {
"type": "object",
"description": "Reserve document."
}
},
"required": [
"reserve"
]
}🟢resolve_report(market)
Weigh the sources a resolver says it read against the declared outcome. Verdicts: supported, disputed, single_source, insufficient. A conflict is reported as a conflict, never averaged. Do NOT use to trade or to place a position.
輸入結構描述
{
"type": "object",
"properties": {
"market": {
"type": "object",
"description": "Market document."
}
},
"required": [
"market"
]
}🟢reconcile_books(invoices, transactions)
Match invoices to stablecoin transfers by memo first, then exact amount and asset inside the invoice window. Names what is left over in both directions: invoices nobody paid, money nobody invoiced, invoices paid twice. A duplicate is counted once, never twice. Do NOT use as proof of who the payer was.
輸入結構描述
{
"type": "object",
"properties": {
"invoices": {
"type": "array",
"items": {
"type": "object"
},
"description": "id, amount, asset, created_at; optional due_at, payee, memo."
},
"transactions": {
"type": "array",
"items": {
"type": "object"
},
"description": "tx_hash, amount, asset, timestamp; optional to, memo."
}
},
"required": [
"invoices",
"transactions"
]
}社群
證據