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 分