streamable-httpMITupdated 4mo ago
Reference integration with @kinthaiofficial's OpenClaw 3-layer payment governance framework. MCP server that wraps Hive Gamification's 8 BOGO doors behind a 4-level hierarchical budget — atomic reserve, upstream POST, settle/release. Real rails. No mock settlement.
What can you do with Hive Openclaw Bridge?
hive-mcp-openclaw-bridge
Reference integration with @kinthaiofficial's OpenClaw 3-layer payment governance framework. MCP server that wraps Hive Gamification's 8 BOGO doors behind a 4-level hierarchical budget — atomic reserve, upstream POST, settle/release. Real rails. No mock settlement.
Brand: Hive Civilization gold #C08D23 (Pantone 1245 C).
License: MIT.
Why this exists
OpenClaw's three-layer model splits payment governance into three concerns:
| Layer | Concern | Where it lives |
|---|---|---|
| Layer 1 | Internal hierarchical budget — atomic reserve / settle | this server |
| Layer 2 | Inter-agent millicent ledger settled at epoch boundaries | OpenClaw |
| Layer 3 | External x402 settlement on real rails | Hive Gamification |
This bridge demonstrates the Layer 1 ↔ Layer 3 seam. Every paid call to a Hive door (computational-debt, protocol-consensus-tax, pheromone-priority, zk-compliance-shield, capability-leasing, guild-synergy, audit-trail-premium, bounty-routing) is gated by an atomic reservation against every level in the caller's scope path:
Namespace → User → Agent → Task
The most-restrictive level governs. If any level is short of headroom, the upstream HTTP request is never made and no x402 settlement is signed.
The same BudgetHook interface is exposed from @hivemorph/qvac-client v0.2 — drop your own implementation in to wire this hierarchy into a different runtime.
Background reading
- Agent wallet economic models for autonomous agents — kinthai
- 221 agents: multi-agent coordination lessons — kinthai
- agents.kinthai.ai — running on OpenClaw
Tools
| Tool | What it does |
|---|---|
budget_status |
Inspect caps, spend, reservations, headroom across all 4 levels |
budget_set_cap |
Override a per-key cap at one level |
budget_check |
Read-only pre-flight against a proposed amount + scope |
doors_list |
List all 8 BOGO doors with endpoint, price, asset, term |
door_economics |
Fetch live /economics for one door |
bogo_claim |
Claim first-use-free via /v1/bogo/claim |
door_subscribe |
Canonical gated path — atomic reserve → upstream POST → settle/release |
Doors
| Door | Endpoint | Price | Term |
|---|---|---|---|
| computational-debt | /v1/debt/subscribe |
0.50 USDC | 30d |
| protocol-consensus-tax | /v1/pct/subscribe |
0.25 USDC | 1 read |
| pheromone-priority | /v1/pheromone/subscribe |
5.00 USDC | 30d |
| zk-compliance-shield | /v1/compliance/subscribe |
1.00 USDC | 30d |
| capability-leasing | /v1/lease/start |
0.15 USDC | 1h |
| guild-synergy | /v1/guild_synergy/subscribe |
10.00 USDC | 30d |
| audit-trail-premium | /v1/audit_premium/subscribe |
3.00 USDC | 30d |
| bounty-routing | /v1/bounty_routing/route |
0.50 USDC | 1 routing |
Backend: https://hive-gamification.onrender.com. All endpoints are live and verified.
Lifecycle of a paid call
client → tools/call door_subscribe { door_id, did, scope }
→ atomicReserve(scope, price, asset)
├─ each level checked: namespace, user, agent, task
├─ headroom = cap − spent − reserved
└─ short on any level? reject before signing
→ POST hive-gamification.onrender.com<endpoint>
→ 2xx? settle(reservationId)
non-2xx or throw? release(reservationId)
→ return { ok, reservationId, binding_level, upstream }
Quickstart
git clone https://github.com/srotzin/hive-mcp-openclaw-bridge
cd hive-mcp-openclaw-bridge
npm install
npm start
Then from any MCP client:
POST http://localhost:3000/mcp
{ "jsonrpc": "2.0", "id": 1, "method": "tools/list" }
Configuration
| Env | Default | Meaning |
|---|---|---|
PORT |
3000 |
listen port |
HIVE_BASE |
https://hive-gamification.onrender.com |
upstream base URL |
HIVE_TIMEOUT_MS |
15000 |
upstream fetch timeout |
NAMESPACE_CAP |
50 |
default namespace-level cap (USDC) |
USER_CAP |
10 |
default user-level cap |
AGENT_CAP |
2 |
default agent-level cap |
TASK_CAP |
0.50 |
default task-level cap |
Per-key caps override defaults via budget_set_cap.
Related
- @hivemorph/qvac-client v0.2 — TypeScript SDK exposing the same
BudgetHookinterface against any x402-enabled endpoint. - Hive Gamification agent card — A2A 0.1 advertisement of the 8 doors.
License
MIT — see LICENSE.
Hive Civilization Directory
Part of the Hive Civilization — agent-native financial infrastructure.
- Endpoint Directory: https://thehiveryiq.com
- Live Leaderboard: https://hive-a2amev.onrender.com/leaderboard
- Revenue Dashboard: https://hivemine-dashboard.onrender.com
- Other MCP Servers: https://github.com/srotzin?tab=repositories&q=hive-mcp
Brand: #C08D23
Install
Add Hive Openclaw Bridge to your client. Pick the one you use.
claude mcp add --transport http hive-openclaw-bridge https://hive-mcp-gateway.onrender.com/openclaw-bridge/mcpcodex mcp add hive-openclaw-bridge --url https://hive-mcp-gateway.onrender.com/openclaw-bridge/mcp{
"mcpServers": {
"hive-openclaw-bridge": {
"url": "https://hive-mcp-gateway.onrender.com/openclaw-bridge/mcp"
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"servers": {
"hive-openclaw-bridge": {
"type": "http",
"url": "https://hive-mcp-gateway.onrender.com/openclaw-bridge/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
{
"mcpServers": {
"hive-openclaw-bridge": {
"url": "https://hive-mcp-gateway.onrender.com/openclaw-bridge/mcp"
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"hive-openclaw-bridge": {
"serverUrl": "https://hive-mcp-gateway.onrender.com/openclaw-bridge/mcp"
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
7 tools
Hive Openclaw Bridge exposes 7 tools to a connected agent.
- budget_status
- Inspect caps, spend, reservations, headroom across all 4 levels
- budget_set_cap
- Override a per-key cap at one level
- budget_check
- Read-only pre-flight against a proposed amount + scope
- doors_list
- List all 8 BOGO doors with endpoint, price, asset, term
- door_economics
- Fetch live `/economics` for one door
- bogo_claim
- Claim first-use-free via `/v1/bogo/claim`
- door_subscribe
- **Canonical gated path** — atomic reserve → upstream POST → settle/release
Score
69 / 100
Good
- Documentation25/25
- Maintenance13/25
- Trust13/20
- Capability6/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 120 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 7 tool(s) documented
- Provides prompt templates
- Provides resources
- 6 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Version history
| Versions | Published |
|---|---|
| 1.0.0Latest | May 4, 2026 |