SuperAPIAI Directory

CICD-AIops

github.com · Other AI tools

CICD-AIops is a governed AI operations tool for self-hosted GitLab and self-hosted Gitea. Through an MCP server, CLI, and plugin form, it lets AI agents directly call the GitLab REST API v4 and the Gitea API v1 to answer questions about pipeline failure causes, Runner anomalies, artifact storage consumption, stale work, and more, and to perform write operations such as retry, cancel, pause, delete, and protect under audit, budget, risk classification, and revocation record mechanisms.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

CICD-AIops is aimed at teams that operate their own CI/CD platforms. The target environments are GitLab instances or Gitea servers deployed on their own hardware, in labs, or behind a VPN, rather than SaaS integrations. It connects directly to the GitLab REST API v4 and the Gitea API v1, with credentials stored encrypted.

Purpose and Positioning The tool is used to answer and handle CI/CD operations questions, such as "why did the pipeline fail", "which Runner is stuck", "where did the 40 GB of artifact storage go", and "which work is stale", and it can perform operations such as retry, cancel, pause, delete, and protect within a governance framework. It is not responsible for Kubernetes deployment status; that scenario should use k8s-aiops. The tool's boundary ends at the CI/CD server API, covering pipelines, jobs, Runners, artifacts, and repository hygiene.

Main Capabilities It provides 26 governed tools, of which 20 are read operations and 6 are write operations. The four flagship analyses are all transparent heuristics, with thresholds given as named parameters and each flag accompanied by concrete values:

  • pipeline_failure_rca: pulls recent failed pipelines and the tail of failed job logs, classifies failures as test-failure, dependency-network, runner-timeout, oom, or script-error, and gives matching evidence, causes, and recommended actions.
  • runner_health_rca: identifies offline, stale, and paused Runners (by contact-time threshold), finds jobs queued beyond the threshold, and analyzes saturation by tag (queued jobs versus online Runners).
  • artifact_storage_bloat_analysis: ranks projects by repository and artifact byte counts, finds artifacts that have expired but are still retained, estimates reclaimable bytes, and can be used directly with delete_artifacts --dry-run.
  • stale_work_audit: finds merge/pull requests idle for more than N days, branches with no commits for more than N days, and protection gaps (default branch unprotected, force push allowed).

Usage It can be installed as a Claude Code plugin, where a single installation provides both the skill and the MCP server; it can also be installed as an OpenClaw plugin from ClawHub, after which the OpenClaw gateway must be restarted, and the MCP serviceThe tool is obtained via uv and pinned to that release version, so uvx must be in PATH. It can also be used as a CLI or standalone MCP server, or the same server can be launched via the CLI entry point with cicd-aiops mcp. Credentials are configured via cicd-aiops init, written to ~/.cicd-aiops/config.yaml, and tokens are stored encrypted by target name. All write operations support --dry-run and double confirmation, and go through the same governance path as MCP tools, so CLI writes are audited as well.

Governance mechanisms Every MCP tool call and CLI write passes through the built-in governance layer, which records but does not authorize: auditing writes parameters, result summaries, status, duration, risk tier, and the approver/reason provided by the operator to ~/.cicd-aiops/audit.db (relocatable via CICD_AIOPS_HOME); runaway protection triggers a circuit breaker on repeated calls in a tight loop, can be disabled with CICD_RUNAWAY_MAX=0, and hard limits can be set via CICD_MAX_TOOL_CALLS / CICD_MAX_TOOL_SECONDS; the undo mechanism replays reversible inverse operations for reversible writes (such as pause_runner and resume_runner, update_branch_protection replaying prior settings), while irreversible writes record priorState; risk tiers are descriptive labels on audit rows only and do not constitute a gate; all write operations support dry_run=True / --dry-run preview without calling the server; server-returned text is normalized for injection safety, and path parameters are percent-encoded. Tokens are stored in ~/.cicd-aiops/secrets.enc, encrypted with Fernet, with the key derived from the master password via scrypt; non-interactive/MCP scenarios require setting CICD_AIOPS_MASTER_PASSWORD, and tokens are managed via cicd-aiops secret set|list|remove|migrate; TLS verification is enabled by default.

Use cases and limitations Suitable for day-to-day CI/CD operations, troubleshooting, Runner health checks, artifact storage cleanup, and repository hygiene audits for self-hosted GitLab and self-hosted Gitea. The tool does not determine whether a write operation is permitted;permissions are determined by the agent's judgment or the permissions of the connected token; there is no read-only switch, policy file, or approval gate to configure. GitLab.com and Gitea Cloud SaaS accounts are out of scope. The current validation status is modeling based on public API documentation and testing against simulated HTTP responses; there are no end-to-end runs against real servers yet, and cicd-aiops doctor is the fastest way to check on a real machine. MCP clients launch the server with a minimal environment, so required environment variables must be set in the env block rather than in shell profile files. When a platform lacks a given interface, the platform registry throws an instructional error indicating the available resources. The project is MIT licensed and is not affiliated with GitLab Inc. or the Gitea project.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools