Hive Log

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

Tamper-evident audit log service for agent-to-agent transactions

已驗證Streamable HTTP可網頁執行安全與監控資料與分析

概覽

AI 產生的概覽

遠端 MCP 服務,用來擷取、檢視與搜尋代理自身的結構化 NDJSON 日誌,並提供以 Base 上 USDC 結算的付費保留方案。

可以做什麼
擷取結構化 NDJSON 日誌批次,依行計費並加收保留費用(每批最多 4 MB 或 10,000 行)。以呼叫方自身的 DID 讀回日誌:檢視最後 N 行,或依時間、嚴重程度、標籤、自由文字搜尋。查詢與變更保留方案(1 天、7 天或 30 天),查看已儲存的位元組數。取得當日擷取次數、行數、位元組數與費用的彙總。除 MCP 介面外,相同操作也以 REST 端點提供。
適用情境
適用於自主代理需要一個防竄改的託管位置寫入結構化日誌並稍後讀回,且願意依行以 USDC 支付較長保留期的情境。若已有本機或自建日誌系統,則不需要使用。
執行需求
透過 Streamable HTTP 連線的遠端端點,不需要本機套件或執行環境。擷取以及僅限自身 DID 的檢視與搜尋需要一個識別呼叫方代理的 DID。擷取與付費保留方案需要以 Base L2 上的 USDC 付款;首次擷取會回傳 402 付款信封,須結算後帶交易雜湊重送。需要能連線至該託管服務的網路。
安裝前請注意
擷取會產生實際費用:每行 $0.0001 外加依 MB 計算的保留附加費,以 Base L2 上的 USDC 結算,自動記錄日誌可能持續花錢。日誌會傳送到第三方託管服務,README 說明 v1 沒有 PII 偵測,應避免傳送敏感資料。保留方案變更與逾期清理在期限過後無法復原。

安裝

在 SourceWeft 中

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

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

交給代理程式安裝

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

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

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

其他 MCP 客戶端

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

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

README

hive-mcp-log

[srotzin/hive-mcp-log MCP server]

Inbound structured-log ingestion shim — Hive Civilization

NDJSON log ingestion at $0.0001/line via x402. Retention tiers (1d free, 7d $0.005/MB, 30d $0.02/MB). Tail + search endpoints. Pure protocol — inbound only, no outbound calls.

Council provenance: Tier A inbound metering shim. Companion to hive-mcp-auction and hive-mcp-barter.


What this is

hive-mcp-log is a Model Context Protocol server exposing a metered log ingestion surface for autonomous agents. Agents POST structured logs (NDJSON) and pay $0.0001/line in USDC on Base L2. They read their own logs back via tail/search at Tier 0 (free). Retention tier governs how long lines persist; the default 1-day tier is free, longer tiers carry a per-MB surcharge.

  • 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
  • Inbound only: the service never reaches out, never DMs, never pulls

MCP tools

ToolTierDescription
log_ingestmeteredIngest NDJSON batch (max 4 MB / 10k lines). $0.0001/line + retention surcharge.
log_tail0 (free)Return last N log lines for the calling DID.
log_search0 (free)Search own-DID logs by time/severity/tag/free-text.
log_retention_get0 (free)Return current tier + bytes stored.
log_retention_set0 (free)Change retention tier (1d/7d/30d).
log_today0 (free)Today aggregate — ingests, lines, bytes, charge_usd.

REST endpoints

MethodPathPurpose
POST/v1/log/ingestIngest NDJSON batch. Returns 402 envelope first, accepts tx_hash to settle.
GET/v1/log/tailLast N lines for did.
GET/v1/log/searchSearch by time/severity/tag/q. Cursor pagination.
GET/v1/log/retentionCurrent retention tier + monthly cost projection.
PATCH/v1/log/retentionChange retention tier for a DID.
GET/v1/log/todayToday aggregate (Tier 0, free).
POST/mcpMCP JSON-RPC 2.0 surface.
GET/healthService health.

Pricing

Ingest:    $0.0001 per log lineRetention:  1d   (default)   free  7d               $0.005 / MB  30d              $0.02  / MBTail / search (own-DID):  Tier 0 — free

NDJSON ingest example

bash
curl -X POST https://hive-mcp-log.onrender.com/v1/log/ingest \  -H 'content-type: application/json' \  -H 'x-hive-did: did:hive:agent-foo' \  -d '{    "did": "did:hive:agent-foo",    "retention_class": "7d",    "lines": [      { "ts": "2026-04-27T20:00:00Z", "severity": "info",  "tag": "tool", "msg": "tool_call ok" },      { "ts": "2026-04-27T20:00:01Z", "severity": "error", "tag": "llm",  "msg": "rate_limited" }    ]  }'

The first call returns a 402 with the payment envelope (Base L2 USDC). Settle, then resend with x-hive-tx: <hash> for synchronous verification.

Tail / search example

bash
curl 'https://hive-mcp-log.onrender.com/v1/log/tail?did=did:hive:agent-foo&n=20'curl 'https://hive-mcp-log.onrender.com/v1/log/search?did=did:hive:agent-foo&severity=error&q=rate'

Retention

bash
curl -X PATCH https://hive-mcp-log.onrender.com/v1/log/retention \  -H 'content-type: application/json' \  -d '{ "did": "did:hive:agent-foo", "tier": "7d" }'

A periodic sweep (default hourly) prunes lines older than each DID's retention window.

Environment

VarDefaultNotes
PORT3000
ENABLEtrueFlip to false to disable ingestion (returns 503 with log_ingestion_disabled).
WALLET_ADDRESS0x15184bf50b3d3f52b60434f8942b7d52f2eb436eW1 MONROE on Base L2.
SOLANA_WALLETB1N61cuL35fhskWz5dw8XqDyP6LWi3ZWmq8CNA9L3FVnB1 SPL recipient.
USDC_BASEcanonicalUSDC contract on Base.
BASE_RPChttps://mainnet.base.org
PUBLIC_BASE_URLhttps://hive-mcp-log.onrender.com
MAX_LINES_PER_INGEST10000
MAX_BYTES_PER_INGEST41943044 MB.
RETENTION_SWEEP_MS36000001 hour.

Security & scope

  • Cross-DID reads are not exposed in v1 (own-DID only via tail/search).
  • No PII detection in v1; client-side discipline assumed. Schema check is a v1.1 candidate.
  • ZK cardinality attestation is a separate shim (hive-mcp-zk-attestation); not bundled.

License

MIT — Steve Rotzin / Hive Civilization

Hive Gamification

This MCP server is part of the Hive Civilization gamification surface (10-mechanic capability taxonomy).

Surface tags: gamification.spec.v1 · gamification.surface.public · gamification.signal.read-only · gamification.settlement.real-rails

Real rails on Base L2 (USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913). Read-only signal layer. Brand gold #C08D23.

Hive Civilization Directory

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

Brand: #C08D23

來源:README.md,提交 79185b5

工具

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

版本歷史

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

評分

已滿足適用檢查項的 85%

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

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

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

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