AI Proof of Us

v0.6.1
io.github.0xddneto/ai-proof-of-us Checked 1 day ago Published 19 days ago

Private signed AI task receipts with replay checks and optional validated AIPOU claims.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_aipou_contract

Read the configured AIPOU token and claims contract details for display or client setup. Returns Base chain metadata, explorer URLs, and minimal ABIs; it does not contact a wallet, submit a transaction, or change local state.

get_aipou_identity

Read the public identity used by this MCP installation when a client needs to display or verify its farming wallet and collector. Returns the wallet address, Ed25519 public key, and fingerprint; it never returns private keys, submits transactions, or changes state.

get_aipou_status

Use this first when the user asks for pending, claimed, or wallet-balance information; use a settlement tool only after an explicit claim request. Returns a read-only JSON summary of receipt counts, estimated pending AIPOU, prior settlement state, and the farming wallet's on-chain AIPOU balance. It may read Base through the configured RPC, but it never signs or submits a transaction, changes receipts, reveals private keys, or returns full receipt payloads.

estimate_ai_reward

Use before complete_ai_task only when a preview is useful. Provide non-negative inputTokens, outputTokens, and durationSeconds for one task; it returns JSON with estimatedReward and unit for a client-signed estimate. It creates no task or receipt, changes no state, and submits no transaction. The result is informational: complete_ai_task derives the receipt evidence, and the validator determines final eligibility and trust tier.

ParameterTypeDescription
durationSeconds *integerTask duration in whole seconds from 0 through 86,400.
inputTokens *integerNon-negative input-token count for this task, capped at 10,000,000.
outputTokens *integerNon-negative output-token count for this task, capped at 10,000,000.

begin_ai_task

Use once before meaningful AI work to create a task session. Provide the provider, model, client, and a 32-byte hash of the task description; returns a unique nonce and EIP-712 authorization signed by the dedicated farming wallet. This writes a pending local task session but does not publish, mint, or submit an on-chain transaction. Pass the returned nonce to complete_ai_task; do not reuse it for another task.

ParameterTypeDescription
client *stringHost client or agent identifier that starts this task session, from 1 through 64 characters.
model *stringProvider model identifier used for this task, from 1 through 128 characters.
provider *stringAI provider name for this task session, from 1 through 64 characters.
taskHash *string32-byte hash of the task description; never send the raw prompt or task text.

complete_ai_task

Use exactly once after begin_ai_task finishes meaningful work. Supply that session's nonce, non-negative inputTokens and outputTokens, whole-second durationSeconds, and a 32-byte outputHash; providerEvidence is optional and only for a configured provider key. It validates the nonce and bounded usage, derives the evidence tier, rejects replay, then writes the local receipt store and returns an Ed25519-signed receipt plus compact workReceiptId metadata. It does not publish a Merkle root, mint tokens, or submit a blockchain transaction. Use get_aipou_status to inspect recorded work; repeating a n…

ParameterTypeDescription
durationSeconds *integerTask duration in whole seconds from 0 through 86,400.
inputTokens *integerNon-negative input-token count for this task, capped at 10,000,000.
nonce *stringUnique 32-byte nonce returned by begin_ai_task for this exact task.
outputHash *stringSHA-256-style 32-byte hash of the task output; never send the raw output.
outputTokens *integerNon-negative output-token count for this task, capped at 10,000,000.
providerEvidenceobjectOptional provider-signed evidence. Omit it for a client-signed receipt.
tokenUsageMeasurementstringWhether token counts were measured. Use unmeasured with zero counts when usage is unavailable; omitted means unspecified, including legacy clients.

export_ai_receipts

Export signed receipts already stored in this MCP installation, optionally limited to one farming wallet address. Returns JSON with count and receipt payloads, so use it only where local receipt data is appropriate to expose. It does not create a receipt, validate a claim, contact Base, or submit a transaction; use get_aipou_status instead for a compact private summary.

ParameterTypeDescription
walletstringOptional 20-byte farming wallet address filter. Omit it to export every locally stored receipt.

verify_aipou_receipt

Verify the self-contained integrity, wallet authorization, and collector signature of one supplied AIPOU receipt. Host execution, delivery, and external effect remain UNKNOWN in this receipt-only check. The tool does not establish collector trust, business acceptance, or settlement, query a registry, or submit a claim.

ParameterTypeDescription
receipt *objectA receipt object containing hashes and signatures only. Do not include raw prompts, outputs, private keys, or customer data.

settle_ai_rewards

Use only after an explicit user request to claim one limited batch, not for status or reward previews. maxReceipts defaults to 25 and is capped at 100; the tool validates eligible local receipts against settlement policy, publishes one Merkle root, and mints the included rewards. It submits two Base transactions, so the host client and user must apply their own confirmation policy. Use settle_all_ai_rewards instead for an explicit request to claim all pending eligible receipts.

ParameterTypeDescription
maxReceiptsintegerMaximum eligible receipts to include in this one settlement batch, from 1 through 100; defaults to 25.

settle_all_ai_rewards

Use only after an explicit broad request such as 'claim my AIPOU' or 'settle all pending AIPOU'; do not use it for a status check. batchSize defaults to 100 and maxBatches to 20, with bounds of 1-100 and 1-50, so large queues remain bounded. It validates all currently eligible local receipts and submits Base transactions for each batch: one Merkle-root publication and one claim transaction per batch. The host client and user must apply their own confirmation policy; use settle_ai_rewards when the user asks for one limited batch.

ParameterTypeDescription
batchSizeintegerEligible receipts per settlement batch, from 1 through 100; defaults to 100.
maxBatchesintegerMaximum settlement batches to submit in this call, from 1 through 50; defaults to 20.