
CICD AIops
io.github.AIops-tools由 GitHub 帳號 AIops-tools 發布v0.14.0更新於 Oct 30, 2026
Governed self-managed GitLab + Gitea CI/CD ops: pipelines, runners, artifacts, RCA. 28 tools.
概覽
針對自架 GitLab 與 Gitea 的受稽核 CI/CD 維運:檢視流水線、Runner、製品與停滯工作,並可重試、取消、暫停或刪除。
- 可以做什麼
- 檢視流水線、作業與日誌尾段,以及專案和儲存統計
- 透過四項啟發式分析診斷失敗原因、Runner 健康、製品膨脹與停滯工作
- 管理 Runner、分支保護、合併請求、分支與發行
- 重試或取消流水線、刪除製品,皆支援試跑預覽
- 將每次呼叫寫入本機稽核資料庫,並為可逆寫入保存復原資料
- 適用情境
- 適合自行維運 GitLab 或 Gitea 執行個體的團隊,希望助理說明流水線為何失敗、哪個 Runner 卡住、製品儲存被誰佔用、哪些工作已停滯,並在留下可追溯紀錄的前提下採取行動。
- 執行需求
- 以 PyPI 套件形式在本機透過 stdio 執行(uv 或 pip);以外掛方式安裝時 PATH 需有 uvx。需要可連線的自架 GitLab 或 Gitea 基礎網址,以及每個目標一組存取權杖,透過初始化精靈設定。主密碼須在用戶端 env 區塊中以 CICD_AIOPS_MASTER_PASSWORD 提供;狀態目錄可用 CICD_AIOPS_HOME 指定。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 CICD AIops,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
CICD AIops
Audit availability: Real writes require a committed
pendingaudit row and stop before contacting the platform if storage is unavailable. Reads and previews may continue with a warning; new audit rows store outcome summaries rather than full responses.
Governed AI-ops for self-managed GitLab and self-hosted Gitea.
cicd-aiops is for the team running its own CI/CD forge — a GitLab instance
or a Gitea server on your hardware, in your lab, behind your VPN — who want an
AI agent that can answer "why did the pipeline fail?", "which runner is
wedged?", "where did 40 GB of artifact storage go?" and "what work went
stale?" and then act (retry, cancel, pause, delete, protect) only through
an audited, budgeted, risk-tiered, undo-recorded governance harness. It is not
a SaaS integration: it speaks the GitLab REST API v4 and the Gitea API v1
directly against your server, with credentials encrypted at rest.
Verification status: modelled from each project's public API docs and exercised against mocked HTTP responses; there is no recorded end-to-end run against a live server yet.
cicd-aiops doctoris the fastest live check — seedocs/VERIFICATION.md.
Routing: Do NOT use this for Kubernetes deploy state — use k8s-aiops. This tool ends at the CI/CD server's API (pipelines, runners, artifacts, repo hygiene).
What this tool does, and does not, decide
It delivers CI/CD operations — reads and writes — accurately and efficiently, and records every one of them. It does not decide whether a write is allowed to happen. That is the agent's judgement, or the permission of the token you connect it with: give it a GitLab/Gitea access token without write scope and the writes fail at the server — the place that actually owns the permission.
So there is no read-only switch, no policy file, no approval gate to configure.
The one thing the tool guarantees is that nothing is silent: every call, over
MCP and over the CLI alike, lands an audit row in ~/.cicd-aiops/audit.db,
and destructive writes still capture their before-state and record an inverse
where one exists.
Each tool declares a
risk_level, kept in agreement with its[READ]/[WRITE]documentation tag by a test, and carried into the audit row as a descriptive tier — so a reviewer can see at a glance that a row was a high-risk delete. It is a label, not a gate.
Running a smaller / local model? See agent-guardrails.md — it lists the guardrails this tool enforces for you (so you don't spend prompt budget restating them) and gives a ready-made system prompt for what's left.
Quick start
As a Claude Code plugin
One install gives an agent both the skill and the MCP server:
The MCP server is fetched with uv and pinned to the
package version this plugin declares, so an audit row can be traced back to the
code that wrote it. Credentials are still configured with cicd-aiops init — see below.
As an OpenClaw plugin
The same bundle is published on ClawHub, where one install delivers the skill and its MCP server together:
Restart the OpenClaw gateway afterwards so it loads the plugin. The MCP server is
fetched with uv, pinned to this exact release, so
uvx has to be on PATH — without it the skill still installs but reports
Visible to model: no. Credentials are configured exactly as below.
As a CLI or standalone MCP server
Then the interesting parts:
Every write has --dry-run and a double confirmation, and executes through
the same governed path the MCP tools use — so CLI writes are audited too.
Support scope
Where a platform lacks a surface, the platform registry raises a teaching error naming the resources that are available — the agent learns instead of hitting a mystery 404. GitLab.com / Gitea Cloud SaaS accounts are out of scope by design: this tool targets self-managed instances.
Flagship analyses (the reason this tool exists)
pipeline_failure_rca— pulls recent failed pipelines with failed-job trace tails and classifies each failure: test-failure / dependency-network / runner-timeout / oom / script-error, with the matched evidence, a cause, and an action per pipeline.runner_health_rca— offline/stale/paused runners (contact-age threshold), jobs queued past a threshold, and per-tag saturation (queued jobs vs online runners).artifact_storage_bloat_analysis— projects ranked by repo + artifact bytes, expired-but-kept artifacts, and a reclaimable-bytes estimate that feeds straight intodelete_artifacts --dry-run.stale_work_audit— merge/pull requests idle past N days, branches with no commits for N days, and protection gaps (unprotected default branch, force-push allowed).
All four are transparent heuristics: thresholds are named parameters and every flag carries its numbers.
Governance (built in, always on)
Every MCP tool and every CLI write runs through the vendored harness in
cicd_aiops/governance/. It records; it does not authorize (see above).
- Audit — every call (params, outcome summary, status, duration, risk tier, and any
operator-supplied approver/rationale) is logged to
~/.cicd-aiops/audit.db(relocatable viaCICD_AIOPS_HOME). The CLI writes the same row the MCP path does — there is no unaudited entry point. - Runaway guard — a safety backstop, not an authorization gate: the same
call hammered in a tight loop trips a circuit breaker so a stuck agent can't
burn unbounded calls/time. Disable with
CICD_RUNAWAY_MAX=0; optional hard ceilings viaCICD_MAX_TOOL_CALLS/CICD_MAX_TOOL_SECONDS. - Undo — reversible writes record a replayable inverse in
~/.cicd-aiops/undo.db, built from the fetched before-state:pause_runner⇄resume_runner, andupdate_branch_protectionreplays the prior settings. Irreversible writes (retry_pipeline,cancel_pipeline,delete_artifacts) recordpriorState(status / bytes+count) instead. - Risk tier — a descriptive label on the audit row derived from
risk_level(readslow; mutating writesmedium;delete_artifactshigh); it gates nothing. - Dry-run everywhere — every write takes
dry_run=True(MCP) /--dry-run(CLI) and previews without calling the server. - Sanitize — all server-returned text is folded through an injection-safe normaliser (bounded strings, capped depth) before an agent sees it; all path parameters are percent-encoded so an identifier can never rewrite a URL.
Secrets
Tokens live in ~/.cicd-aiops/secrets.enc — Fernet-encrypted, key derived
from a master password via scrypt. Never plaintext on disk. Set
CICD_AIOPS_MASTER_PASSWORD for non-interactive/MCP use, and manage with
cicd-aiops secret set|list|remove|migrate. TLS verification defaults ON
(the init wizard asks before turning it off for lab certs).
MCP server
26 governed tools (20 reads incl. the four flagship analyses, 6 writes).
Env-block caveat: MCP clients launch the server with a minimal environment — your shell profile is not sourced. Anything the server needs (
CICD_AIOPS_MASTER_PASSWORD,CICD_AIOPS_HOME, and any optionalCICD_AUDIT_APPROVED_BYaudit annotation) must be set in theenvblock above, not in~/.zshrc.
Alternatively: cicd-aiops mcp (same server, CLI entry point).
Configuration
~/.cicd-aiops/config.yaml (the wizard writes this):
The token for each target is stored encrypted under the target's name.
Relocate all state (config, audit, undo, secrets) with CICD_AIOPS_HOME.
Development
缺功能?
缺功能提 issue/PR 欢迎留言 — if a GitLab/Gitea surface you need is missing (runner administration on newer Gitea, per-job retry, scheduled pipelines, group-level rollups…), open an issue or PR at https://github.com/AIops-tools/CICD-AIops. The platform registry is designed so a new resource is one path-map entry, not a refactor.
License
MIT. GitLab is a trademark of GitLab Inc.; Gitea is a trademark of its project owners. This project is independent and not affiliated with either.
來源:README.md,提交 8e28bf0
工具
0版本歷史
4- v0.14.0最新Oct 30, 2026
- v0.13.0Oct 15, 2026
- v0.11.0Oct 15, 2026
- v0.10.3Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分