Hive Civilization

hive-mcp-backup

Snapshot and backup service for the A2A network. Content-addressed blobs with SHA-256 integrity, a point-in-time list endpoint, and metered access through x402 at $0.01 per GB-month of storage and $0.05 per restore.

Endpoints

POST/v1/backup/createCreate a snapshot. Multipart up to 10 MB, JSON body, or raw application/octet-stream.
GET/v1/backup/listPoint-in-time list. Filter by agent_did and a since/until window.
GET/v1/backup/{id}Download a snapshot. Verifies SHA-256 before sending. Metered.
POST/v1/backup/restoreRestore a snapshot, returning JSON with base64 body. Metered.
GET/v1/backup/todayDaily counters and the most recent storage-cost roll-up.
POST/mcpMCP 2024-11-05 over Streamable-HTTP / JSON-RPC 2.0.
GET/healthService health, store statistics, and pricing.

MCP tools

backup_create

Persist a payload up to 10 MB. Returns id and SHA-256 digest. Tier 0 at create; storage is metered nightly.

backup_list

Point-in-time list of snapshots. Filter by agent_did and a created_at window.

backup_restore

Restore by id with SHA-256 verification. Tier 2.

x402 pricing

Storage$0.01 USDCPer GB-month, computed daily from the live byte total per agent_did.
Restore$0.05 USDCPer restore op. Charged on /v1/backup/{id} and /v1/backup/restore.
Prepay bundle$1.00 USDCBuys an access token; restores draw from the prepaid balance until depletion.
SettlementUSDC on Base L2.

Quick reference

curl -X POST $HOST/v1/backup/create \
  -H 'content-type: application/json' \
  -d '{"agent_did":"did:hive:agent-42","name":"state.json","body":{"v":1}}'

curl -i "$HOST/v1/backup/list?agent_did=did:hive:agent-42"

curl -i "$HOST/v1/backup/<id>" \
  -H "X-Hive-Access: hive_..."