Model Ledger

io.github.block由 GitHub 帳號 block 發布v0.7.13更新於 Oct 27, 2026

Model inventory and governance: trace deployed models and their dependencies as an append-only log

發布方自己的服務:model.tools — Zero-Auth Agent Utilities

概覽

AI 產生的概覽

Model Ledger 的本機 MCP 伺服器,讓助理追蹤已部署模型、其相依關係圖與變更歷史。

可以做什麼
  • 追蹤跨平台的模型及其相依關係,回答停用某項後會影響哪些模型
  • 檢視僅追加的事件日誌與快照,取得完整歷史與特定時間點重建
  • 把探索到的模型、啟發式規則與 ETL 組織成由具型別連接埠節點構成的連通圖
  • 對照 SR 11-7/SR 26-2、EU AI Act、NIST AI RMF 等合規設定進行驗證
  • README 提到八個工具的代理介面,但清單未列出個別工具
適用情境
適合模型分散部署於多個平台的組織,希望助理回答影響範圍問題(例如哪些模型使用某個特徵),或回顧隨時間發生的變化。
執行需求
以本機 stdio 程序在桌面執行,從 PyPI 安裝 model-ledger 並加上 mcp 附加套件,透過 uvx 或 model-ledger mcp 指令啟動。提供示範模式;實際使用需設定後端(記憶體、SQLite、JSON、Snowflake 或遠端 HTTP),使用連接器時還需平台憑證。
安裝前請注意
連接器可讀取 SQL、REST、GitHub 與內部平台,README 說明憑證置於內部套件層,需謹慎保管。帳本以不可變事件記錄變更,寫入幾乎無法撤銷。清單未宣告任何驗證或環境變數。

安裝

在 SourceWeft 中

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

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

model-ledger

git for models — know what models you have deployed, where they run, what they depend on, and what changed.

[CI] [License] [Python] [PyPI] [Downloads] [Docs]

📖 Documentation · Quickstart · Concepts · Governance


model-ledger is a model inventory for any organization with deployed models. It discovers models, heuristic rules, and ETL across your platforms, maps the dependency graph automatically, and records every change as an immutable event. Unlike registries tied to a single platform (MLflow, SageMaker, W&B), it spans all of them — as one connected graph — and it's built to be driven by AI agents through a native MCP server.

Benchmarked at production scale: full inventory reconstruction over a ledger of 28.8k models and 212k events runs in under a second (CHANGELOG, v0.7.4).

Install

bash
pip install model-ledger

The graph builds itself

Every model is a DataNode with typed input and output ports. When an output port name matches an input port name, connect() creates the dependency edge — no hand-wiring.

python
from model_ledger import Ledger, DataNode
ledger = Ledger()
ledger.add([    DataNode("segmentation", platform="etl",      outputs=["customer_segments"]),    DataNode("fraud_scorer", platform="ml",       inputs=["customer_segments"], outputs=["risk_scores"]),    DataNode("fraud_alerts", platform="alerting", inputs=["risk_scores"]),])ledger.connect()
ledger.trace("fraud_alerts")# ['segmentation', 'fraud_scorer', 'fraud_alerts']

Every mutation is recorded as an immutable Snapshot — an append-only event log that gives you full history and point-in-time reconstruction, because nothing is overwritten.

Talk to your inventory

The MCP server is a first-class surface — point Claude (or any MCP agent) at it:

bash
pip install "model-ledger[mcp]"claude mcp add model-ledger -- model-ledger mcp --demo

You: if we deprecate customer_features, what breaks?

Claude: 3 models consume it directly, 2 more transitively.

Documentation

Everything lives at block.github.io/model-ledger — and it can't drift, because the API reference is generated from source and every example runs in CI:

  • Quickstart — install to your first dependency trace in 60 seconds
  • Concepts — DataNode, Snapshot, and Composite, in three ideas
  • Agents (MCP) — the eight-tool agent surface, with a worked transcript
  • Connectors — discover from SQL, REST, GitHub, or your own platform
  • Backends — in-memory, SQLite, JSON, Snowflake, or remote HTTP
  • Governance — how the primitives map to SR 11‑7/SR 26‑2, the EU AI Act, and NIST AI RMF
  • API reference — generated from the source

Architecture

mermaid
flowchart LR    subgraph Sources        C1[SQL / REST / GitHub / Prefect<br/>connectors]    end    subgraph Core        L[Ledger<br/>append-only event log,<br/>point-in-time reconstruction]        G[Dependency graph]        V[Compliance profiles<br/>SR 11-7/SR 26-2 · EU AI Act · NIST AI RMF]    end    subgraph Surfaces        S1[Python SDK]        S2[CLI]        S3[REST API]        S4[MCP server · 8 tools]    end    B1[(in-memory · SQLite · JSON ·<br/>Snowflake · remote HTTP)]    C1 --> L    L --> G    L --> V    L --- B1    S1 --> L    S2 --> L    S3 --> L    S4 --> L

For organizations

The OSS core handles discovery, graph building, change tracking, storage, the agent protocol, and compliance validation — the SR 11‑7/SR 26‑2, EU AI Act Annex IV, and NIST AI RMF profiles ship in model_ledger.validate. Your internal package provides only the thin layer on top: connector configs, custom connectors for internal platforms, and credentials. Thin config, not reimplemented logic.

Contributing

See CONTRIBUTING.md. All commits require DCO sign-off.

Security

See SECURITY.md for how to report vulnerabilities privately.

License

Apache-2.0. See LICENSE.

Created and maintained by Vignesh Narayanaswamy at Block.

來源:README.md,提交 93be51a

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.7.13最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

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

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

其他 Model 整合