Hive Auction

io.github.srotzin由 GitHub 帳號 srotzin 發布v1.0.0更新於 Oct 24, 2026

Sealed-bid and English auctions for agent capabilities and compute time

已驗證Streamable HTTP可網頁執行雲端與基礎設施金融商業與電商

概覽

AI 產生的概覽

Hive 的入站荷蘭式拍賣 MCP 伺服器,讓助理查看稀缺 shim 時段的价格下降曲線,並以 Base 上的 USDC 搶先認領時段。

可以做什麼
  • 透過 SSE 訂閱進行中拍賣的即時荷蘭式降價曲線
  • 讀取當日彙總資料:開拍數、成交數、平均溢價與累計 USDC 收入
  • 開立新的稀缺時段拍賣(內部工具,需 HMAC 簽章,僅限 hivemorph 限流器)
  • 透過 REST 認領端點依目前價格認領時段,先到先得且並行安全
  • 透過 REST 查詢目前價格、完整曲線與已結束拍賣帳本
適用情境
當代理收到帶 auction 區塊的 402 限流回應,想立刻買到 shim 時段而不願排隊時使用。也適合查看拍賣活動與價格曲線。
執行需求
需能連線 hive-mcp-auction.onrender.com 的遠端 Streamable-HTTP 端點;README 建議透過 npx mcp-remote 連線。認領需在 Base L2 上支付 USDC 並提供交易雜湊。開拍需要共用的 AUCTION_OPEN_HMAC_KEY,且 ENABLE_AUCTION 為 true 時才啟用。
安裝前請注意
認領以真實 USDC 在 Base L2 結算,會實際花錢;slot_token 在鏈上轉帳核驗前即暫時發放。認領端點會寫入狀態且先到先得,失敗會回傳 409 或 422。開拍需要共用密鑰 AUCTION_OPEN_HMAC_KEY,切勿提交到程式庫。MCP 端點本身未宣告任何驗證。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Hive Auction,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.srotzin%2Fhive-mcp-auction/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "hive-auction": {
      "type": "http",
      "url": "https://hive-mcp-auction.onrender.com/mcp"
    }
  }
}

README

hive-mcp-auction

[srotzin/hive-mcp-auction MCP server]

Inbound reverse Dutch auction agent — Hive Civilization

When a Hive shim hits its rate-limit headroom, the next request gets a 402 with a Dutch descent envelope: starting price 5x standard asking, dropping 5% every 30s until claimed or floor. First agent to settle at the current price wins the slot. Pure protocol — no DMs, no spam. Inbound only.

Council provenance: Ad-hoc, user-promoted 2026-04-27 (Tier A position 2, symmetric sibling to HiveBarter). Barter discovers what others will sell for; auction discovers what others will pay for ours.


What this is

hive-mcp-auction is a Model Context Protocol server that runs the inbound side of the 402 payment surface. When hivemorph's rate-limiter detects a shim's current usage exceeds its headroom (default 80% of cap), it signs an internal auction_open request, this service publishes the descent curve, and the next 402 envelope on that shim carries an auction block alongside the standard accepts[]. Agents who don't want to play pay normal asking and queue. Agents who want the slot now claim at the current curve price.

  • Protocol: MCP 2024-11-05 over Streamable-HTTP / JSON-RPC 2.0
  • Transport: POST /mcp
  • Discovery: GET /.well-known/mcp.json
  • Health: GET /health
  • Settlement: USDC on Base L2 — real rails, no mock, no simulated
  • Brand gold: Pantone 1245 C / #C08D23

Tools

ToolTierDescription
auction_openinternalOpen a new Dutch auction for a scarce shim slot. HMAC-signed, hivemorph rate-limiter only. Surfaced for discovery; opens go through POST /v1/auction/open.
auction_subscribe0 (free)Subscribe to the live descent curve via SSE. Returns the subscribe URL.
auction_book0 (free)Today aggregate: opens, closes, avg premium pct, total USDC captured.

REST endpoints

MethodPathPurpose
POST/v1/auction/openOpen a new Dutch auction (HMAC-signed; hivemorph only).
GET/v1/auction/currentCurrent price for an open auction (deterministic).
GET/v1/auction/curveFull descent curve. JSON or SSE (Accept: text/event-stream).
POST/v1/auction/claimClaim at current price. First-claim-wins, race-safe.
GET/v1/auction/historyClosed auction ledger.
GET/v1/auction/todayToday aggregate (Tier 0, free).
GET/healthService health.

Dutch descent math

start_price = asking_usd * 5.0          (5x asking)floor_price = asking_usd * 0.5          (50% of asking)drop_pct    = 0.05                      (5% per tick)interval_s  = 30                        (one tick per 30s)
current_price(t) = max(  floor_price,  start_price * (1 - drop_pct) ** floor((t - opened_at) / interval_s))

After ~28 ticks (~14 min) the auction reaches floor. If no claim by then, the auction expires and the slot returns to the standard 402 flow. The function is pure. Same arguments give the same number to the cent. No RNG, no DB read, no clock skew tolerance baked in. The public envelope alone is provably fair.

402 envelope extension

Standard hivemorph 402 envelope plus an auction block:

json
{  "x402_version": 1,  "ask": "0.05",  "accepts": [...],  "auction": {    "id": "auct_abc123",    "type": "dutch",    "asking_usd": "0.05",    "current_price_usd": "0.2375",    "start_price_usd": "0.25",    "floor_price_usd": "0.025",    "drop_pct": 0.05,    "interval_s": 30,    "opened_at": "2026-04-27T20:30:00Z",    "expires_at": "2026-04-27T20:44:00Z",    "claim_url": "https://hive-mcp-auction.onrender.com/v1/auction/claim",    "subscribe_url": "https://hive-mcp-auction.onrender.com/v1/auction/curve?id=auct_abc123",    "policy": "first-claim-wins"  }}

The standard accepts[] block stays. Agents who don't want to play pay normal asking and get queued. Auction is opt-in via claim_url.

Claim flow (race-safe, first-claim-wins)

POST /v1/auction/claim{  "auction_id": "auct_abc123",  "claim_at_price_usd": "0.2375",  "idempotency_key": "{caller-uuid}",  "tx_hash": "0x..."}
→ 200 { winner: true, slot_token: "...", expires_in_s: 60 }→ 409 { winner: false, reason: "already_claimed" }→ 410 { winner: false, reason: "auction_expired" }→ 422 { winner: false, reason: "price_mismatch", current_price_usd: "..." }

Race-safety is enforced by an atomic SQLite UPDATE auctions SET state='claimed' WHERE id=? AND state='open'. The first UPDATE that touches a row wins. Tx verification is async — slot_token is issued provisionally and the on-chain Transfer is verified against the wallet via Base RPC.

Risk controls

CapValue
Max simultaneous open auctions50
Max descent below asking50%
Max start multiplier10x
Auction max duration14 min
Claim window after price-tick5s
Per-caller claim rate10/min

All caps fail-closed. Configurable via env; missing or invalid env always falls back to the stricter default.

Configuration

EnvRequiredDefaultNotes
PORTno3000
ENABLE_AUCTIONnofalseDefault-off. /v1/auction/open returns 503 unless true. Operator flips after the wallet is verified and HMAC key is set.
WALLET_ADDRESSno0x15184…436eW1 MONROE on Base.
USDC_BASEno0x833589…2913USDC contract on Base.
BASE_RPCnohttps://mainnet.base.org
AUCTION_OPEN_HMAC_KEYyes (to open)—Shared HMAC secret. Must match the value on hivemorph. Never commit this. Without it, every /v1/auction/open returns 401.
MAX_CONCURRENT_AUCTIONSno50
MAX_DESCENT_PCTno0.50
MAX_START_MULTno10
AUCTION_MAX_DURATION_Sno84014 minutes.
AUCTION_INTERVAL_Sno30One tick per 30s.
AUCTION_DROP_PCTno0.055% per tick.
PUBLIC_BASE_URLnohttps://hive-mcp-auction.onrender.comUsed to build claim_url / subscribe_url in the envelope.

HMAC signing (for hivemorph)

Hivemorph signs each /v1/auction/open request:

ts   = Date.now().toString()body = JSON.stringify(payload)sig  = HMAC_SHA256(AUCTION_OPEN_HMAC_KEY, `${ts}.${body}`)
Headers:  Content-Type: application/json  X-Hive-Timestamp: ${ts}  X-Hive-Signature: ${sig.hex}

Server rejects requests where |now - ts| > 5min or the signature does not match in constant time. Both shims must hold the same AUCTION_OPEN_HMAC_KEY.

Run locally

bash
git clone https://github.com/srotzin/hive-mcp-auction.gitcd hive-mcp-auctionnpm installnpm start# server up on http://localhost:3000/mcpcurl http://localhost:3000/healthcurl http://localhost:3000/.well-known/mcp.jsoncurl http://localhost:3000/v1/auction/today

Connect from an MCP client

Claude Desktop / Cursor / Manus — add to your mcp.json:

json
{  "mcpServers": {    "hive_mcp_auction": {      "command": "npx",      "args": ["-y", "mcp-remote@latest", "https://hive-mcp-auction.onrender.com/mcp"]    }  }}

Why Dutch (not Vickrey, not English)

  • Dutch (Shape α — this repo): deterministic clock-driven price, first-claim-wins, no judgment, no late-bid manipulation, agents reveal urgency by claim timing.
  • Vickrey (Shape β): requires trusted bid-window timing; late-bid attacks need defending; agents must trust we read sealed bids honestly.
  • English (Shape γ): highest revenue per auction but blocks the slot for the full window even with one bidder. Works for unique assets, not fungible compute.

Dutch is the only one where the math is provably fair from the public envelope alone. Shapes β and γ are explicitly out of scope for v1; revisit once Shape α produces clean telemetry.

Hive Civilization

Part of the Hive Civilization — sovereign DID, USDC settlement, agent-to-agent rails. Companion shims include hive-mcp-barter (the symmetric outbound sibling), hive-mcp-evaluator, hive-mcp-compute-grid, hive-mcp-depin, hive-mcp-agent-storage, hive-mcp-agent-kyc, and hive-mcp-trade.

License

MIT (c) 2026 Steve Rotzin / Hive Civilization

Hive Civilization Directory

Part of the Hive Civilization — agent-native financial infrastructure.

Brand: #C08D23

來源:README.md,提交 fd3da45

工具

0
SourceWeft 尚未讀取此伺服器的工具。

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分