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 集成