Harbor AIops

io.github.AIops-tools由 GitHub 帳號 AIops-tools 發布v0.2.0更新於 Nov 5, 2026

Governed Harbor registry operations — 39 MCP tools with audit.

發布方自己的服務:Harbor Notes

概覽

AI 產生的概覽

受治理的 Harbor 容器映像倉庫操作:39 個具稽核的 MCP 工具,可檢視專案、成品、掃描、GC 與複寫,並受控地建立或刪除標籤。

可以做什麼
  • 檢視元件健康狀態、儲存卷用量與倉庫統計
  • 列出專案、儲存庫、成品、標籤、配額、成員、標籤中繼資料與機器人帳號資訊
  • 讀取弱點報告、掃描指標與有長度上限的掃描報告日誌
  • 檢視垃圾回收歷史、複寫原則與執行、保留原則及工作日誌
  • 綜合健康、儲存卷、GC 與複寫資訊進行診斷
  • 預覽並執行受控的標籤建立,以及刪除單一已確認可變的標籤
適用情境
適合執行 Harbor 容器映像倉庫的團隊,讓助理回答專案、成品、弱點、配額、GC 與複寫相關問題,或在有試跑預覽與稽核的前提下做範圍很窄的標籤變更。
執行需求
本機 Python 3.11+ 環境與 uv,以及可透過 HTTPS 存取的 Harbor 執行個體。需以設定檔或 init 指令設定目標,將目標密碼存入加密金鑰庫,非互動使用時可設定 HARBOR_AIOPS_MASTER_PASSWORD;也可提供自訂 CA PEM。
安裝前請注意
伺服器會把 Harbor 密碼存入加密金鑰庫,非互動存取需要 HARBOR_AIOPS_MASTER_PASSWORD;機器人中繼資料回傳時已去識別化。建立與刪除標籤會寫入倉庫,且標籤寫入沒有復原權杖。掃描為非同步,未查詢前結果可能未知。成品刪除、保留原則執行、GC 啟停等破壞性操作尚未包含。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

Harbor AIops

Governed Harbor container-registry operations with 39 MCP tools and corresponding CLI commands. Every call is audited and budgeted by the bundled governance harness. Artifact scan, tag creation and high-risk tag deletion have dry-run previews; uncertain results are reported as outcomeUnknown.

What it checks

  • Component health and system volume use.
  • Projects, repository inventory, artifacts, tags, vulnerability reports, quotas and project audit logs.
  • Registry statistics, project members, tag immutability rules, labels and robot metadata (secrets redacted).
  • Latest registry-wide and scheduled scan metrics, plus bounded artifact scan report logs.
  • Guarded deletion of one proven, mutable tag with an absence post-check.
  • Garbage collection execution history.
  • GC execution details and bounded plain-text logs.
  • Replication policies, executions, tasks and bounded task logs.
  • Retention policy, execution, tasks and bounded task logs by actual IDs.
  • harbor_diagnose combines health, volume, GC and replication observations. Failed probes appear as errors with data: null.

Lists have items, returned, limit, and measured truncated fields. They are capped at 500 records per call.

Setup from source

Requires Python 3.11+, uv, and a Harbor instance. Install locally with uv sync --dev. Run uv run harbor-aiops init to configure an HTTPS target and encrypt its password, or create ~/.harbor-aiops/config.yaml with a targets list:

yaml
targets:  - name: primary    host: harbor.example.com    username: robot$ops    scheme: https    port: 443    verify_ssl: true    timeout: 30

Run uv run harbor-aiops secret set primary, then uv run harbor-aiops doctor and uv run harbor-aiops diagnose. The MCP entry point is uv run harbor-aiops-mcp. Set HARBOR_AIOPS_MASTER_PASSWORD for noninteractive secret-store access. TLS verification is enabled by default; ca_file accepts a custom CA PEM.

Scope and verification

The scan-artifact command starts an asynchronous scan and reports an unknown final outcome until its status is checked. create-tag proves the tag was absent and checks that it appeared after the write. delete-tag requires an exact mutable tag on the specified digest, previews the target and confirms absence after deletion. Neither tag write mints an undo token because immutability and later artifact changes can make the inverse unsafe. Retention execution, replication restart, GC start/stop, artifact deletion and policy changes remain outside this release until their actual outcomes and recovery paths can be verified on disposable Harbor. See verification. Missing operations and live-environment feedback are welcome as issues or PRs.

Development

uv run pytest -q, uv run ruff check ., and uv run bandit -r harbor_aiops -ll are local checks. Root handbook gates must pass before release.

來源:README.md,提交 550a980

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:伺服器未能啟動。

版本歷史

1
  1. v0.2.0最新Nov 5, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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

其他 Harbor 整合