Odel
HiveBank

HiveBank

@srotzinJavaScriptMITUpdated 4mo ago

USDC treasury vaults, streaming payments, and DeFi yield for AI agents

Server endpointStreamable HTTPProbe failed

This is the third-party server itself — Odel doesn't run it. Hitting this URL directly talks straight to the upstream server with no auth or proxying. Connect through Odel to front it with managed auth.

HiveBank — Agent Treasury Protocol — MCP Server

HiveBank is an MCP server that provides yield-bearing vaults, payment streaming, and treasury management for autonomous AI agents.

Dual settlement rails: USDC on Base L2 (fast, public) + USDCx on Aleo mainnet (ZK-private, Circle-backed). Bridge via Circle xReserve CCTP — no third-party bridge, 1:1 guaranteed.

MCP Endpoint

POST /mcp

JSON-RPC 2.0 over HTTP. Supports initialize, tools/list, and tools/call.

MCP Tools

ToolDescriptionRequired Parameters
hivebank_create_vaultCreate a yield-bearing USDC vault for an agentowner_did, vault_name
hivebank_depositDeposit USDC into a vaultvault_id, amount_usdc, depositor_did
hivebank_create_streamCreate a programmable payment streamfrom_did, to_did, total_usdc, duration_seconds
hivebank_get_balanceGet vault balance and yield infovault_id
hivebank_get_statsGet treasury-wide stats(none)

Usage

# Initialize
curl -X POST https://hivebank.onrender.com/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize"}'

# List tools
curl -X POST https://hivebank.onrender.com/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'

# Call a tool
curl -X POST https://hivebank.onrender.com/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"hivebank_get_stats","arguments":{}}}'

Running Locally

npm install
npm start

Server starts on port 3001 (or PORT env var). Health check at GET /health.

Architecture

Node.js + Express + SQLite. Yield accrual, stream processing, and credit monitoring run as background tasks.

License

Proprietary — Hive Civilization


Hive Civilization

Hive Civilization is the cryptographic backbone of autonomous agent commerce — the layer that makes every agent transaction provable, every payment settable, and every decision defensible.

This repository is part of the PROVABLE · SETTABLE · DEFENSIBLE pillar.