Hive Sla Monitor

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

Service level agreement monitoring for the Hive agent fleet

已驗證Streamable HTTP可網頁執行金融安全與監控

概覽

AI 產生的概覽

遠端 MCP 伺服器,可登錄公開健康檢查端點,並回報觀測到的正常運作時間、p95 延遲與 SLA 違約紀錄。

可以做什麼
登錄與取消登錄需要定時探測的公開健康檢查端點,可設定目標正常運作時間與 p95 延遲目標(登錄依探測次數計費)。讀取某個已登錄監控在滾動視窗內的觀測正常運作時間與 p95 延遲。讀取滾動視窗未達標時寫入的近期違約紀錄。探測為唯讀 HTTP,每 60 秒一次,逾時 8 秒;2xx 與 3xx 視為正常,5xx 與逾時視為異常。
適用情境
當希望助理持續關注公開端點的可用性與延遲,並呈現 SLA 違約情況時使用,例如代理機群或帶有可用性承諾的服務集合。它只提供觀測資料,不結算也不承保任何索賠。
執行需求
遠端 Streamable-HTTP 端點;未宣告需要本機執行環境或帳號。付費呼叫需要 Base L2 上的 USDC 付款證明,透過 X-Payment 標頭提交,或換取存取權杖後放入 X-Hive-Access。被登錄的端點必須能透過 HTTP 公開存取。
安裝前請注意
多項操作需要付費:登錄依探測次數計費,狀態讀取與違約歷史讀取皆收費,付款為 Base L2 上的 USDC 並送至指定收款地址。付款證明與鏈上交易綁定,同一交易雜湊只能兌換一次。登錄端點會將其 URL 告知該服務,並觸發持續的對外探測。違約資料僅為觀測性質,並附帶免責聲明。

安裝

在 SourceWeft 中

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

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

交給代理程式安裝

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

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

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

其他 MCP 客戶端

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

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

README

hive-mcp-sla-monitor

[srotzin/hive-mcp-sla-monitor MCP server]

SLA observation broker for the A2A network. Agents register a public health endpoint with target uptime and p95 latency; the shim probes it on a 60s schedule (read-only HTTP, 8s timeout) and records the result. When a rolling window misses the targets, a breach record is written. Reading breach records is paid. Inbound only. ENABLE=true by default.

Brand color: #C08D23 (Pantone 1245 C, Hive Civilization gold).

Observation only

Hive does not underwrite or settle SLA claims. This is observational data only. The shim does not hold custody, does not pay claims, and does not indemnify counterparties. The disclaimer rides every paid response and every breach record.

Surface

LayerEndpointDescription
MCPPOST /mcpJSON-RPC 2.0, Streamable-HTTP, protocol 2024-11-05.
DiscoveryGET /.well-known/mcp.jsonTool list and transport metadata.
RESTPOST /v1/sla/registerRegister an endpoint. 402 if no proof.
RESTGET /v1/sla/status/{id}Read observed uptime and p95. 402 if no proof.
RESTGET /v1/sla/breaches?monitor_id=…Read recent breach records. 402 if no proof.
RESTGET /v1/sla/todayUTC-day ledger snapshot. Free.
HealthGET /healthLiveness, pricing, recipient address.
RootGET /HTML for browsers, JSON for agents (Accept-header sniff).

Tools

NameTierCostDescription
sla_register1$0.01/probeRegister a public endpoint for probing.
sla_status1$0.01Read observed uptime and p95 over the rolling window.
sla_breach_history2$0.10Read recent breach records. Disclaimer rides every record.
sla_unregister0freeDeactivate a monitor.

Probe semantics

The scheduler scans active monitors every 60 seconds and issues a GET with an 8-second timeout. 2xx and 3xx count as up; 5xx and timeouts count as down. Probe rows are stored at /tmp/sla.db along with the monitor record and any breach records.

The breach evaluator runs after each probe. It looks at the rolling window (default 60 minutes), computes observed uptime and observed p95 latency, and records a breach if either target is missed. Repeated breaches inside half the window are de-bounced so a single bad window does not fan out.

The service caps active monitors at 100 (SLA_MAX_MONITORS) to keep probe fan-out deterministic.

x402 envelope

Every paid endpoint returns a 402 envelope on first hit:

json
{  "error": "payment_required",  "x402_version": 1,  "disclaimer": "Hive does not underwrite or settle SLA claims. This is observational data only.",  "payment": {    "nonce": "…",    "amount_usd": 0.01,    "accept_min_usd": 0.007,    "accepts": [{      "chain": "base",      "asset": "USDC",      "contract": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",      "decimals": 6,      "recipient": "0x15184bf50b3d3f52b60434f8942b7d52f2eb436e",      "scheme": "exact"    }],    "tier": 1,    "product": "sla_register",    "floor_pct": 0.7  }}

Submit the proof inline via X-Payment header on the retry, or POST it to mint an access token used in X-Hive-Access.

Pricing inherits the hivemorph barter floor pattern: the envelope advertises both amount_usd (asking) and accept_min_usd (floor). A client may submit a proof whose on-chain paid amount is anywhere in [floor, asking] and the shim accepts it.

Settlement

USDC on Base L2 (0x833589fcd6edb6e08f4c7c32d4f71b54bda02913) to the recipient address above. Verification reads Transfer logs on the receipt against the configured Base RPC. Real chain reads, no mocks. A single tx_hash may only be redeemed once.

Environment

VariableDefaultNotes
PORT3000HTTP port.
ENABLEtrueWhen false, only /health and / respond.
WALLET_ADDRESS0x1518…436eUSDC recipient.
SLA_REGISTER_PRICE_USDC0.01Per registration.
SLA_BREACH_PRICE_USDC0.10Per breach-history read.
SLA_STATUS_PRICE_USDC0.01Per status read.
SLA_PROBE_INTERVAL_MS60000Probe loop interval.
SLA_PROBE_TIMEOUT_MS8000Per-probe HTTP timeout.
SLA_MAX_MONITORS100Active monitor cap.
BASE_RPC_URLhttps://mainnet.base.orgBase L2 JSON-RPC.
SLA_DB_PATH/tmp/sla.dbSQLite path.

Run

bash
npm installnpm start# → http://localhost:3000/health

License

MIT. Author: Steve Rotzin [email protected].

Hive Civilization Directory

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

Brand: #C08D23

來源:README.md,提交 db1bd16

工具

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

版本歷史

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

評分

已滿足適用檢查項的 85%

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

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

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

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