Ceph AIops

io.github.AIops-toolsPublished by GitHub account AIops-toolsv0.14.0Updated Oct 30, 2026

Governed Ceph mgr ops: HEALTH_WARN RCA, OSD/PG/pool/RBD/CephFS/RGW, 37 tools.

Overview

AI-generated overview

Governed Ceph cluster operations over the ceph-mgr Dashboard API: health root-cause analysis plus 37 audited read, write and undo tools.

What you can do
  • Analyze cluster health and status, decoding active HEALTH_WARN/ERR checks into meaning, likely cause and next action
  • Inspect OSDs, placement groups, pools, RBD images, CephFS, RGW, monitors, managers, slow ops and capacity forecasts
  • Change OSD weights and in/out state, cluster flags, pool quota, pg_num, autoscale and size, and recovery throttling
  • Create and delete pools, RBD images and snapshots, and trigger scrubs or deep scrubs
  • List and apply recorded undo descriptors for reversible writes
When to use it
Useful when an operator wants an assistant to diagnose a degraded Ceph cluster and carry out routine or destructive maintenance through one audited interface, with dry-run and confirmation on high-risk deletes. It suits teams running stock ceph-mgr with the dashboard module rather than a vendor-managed platform.
Requirements
Runs locally as a Python package (uv tool install or pipx) and starts over stdio. Needs a reachable ceph-mgr Dashboard REST API on HTTPS port 8443 with a username and password, configured via the init wizard. The encrypted secret store is unlocked with CEPH_AIOPS_MASTER_PASSWORD or an interactive prompt; uvx must be on PATH for the plugin installs.
Before you install
It performs real writes, including high-risk deletes such as osd_purge, pool_delete and rbd_image_delete; there is no read-only switch or approval gate, so restrict the Dashboard account role instead. Every call is logged to a local audit database. The master password variable is readable by other processes and shell history. Write operations and multi-node rebalance have not been tested against a live cluster.

Installation

In SourceWeft

  1. Open Ceph AIops in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

Ceph AIops

Audit availability: Real writes require a committed pending audit 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.

Disclaimer: Community-maintained open-source project. Not affiliated with, endorsed by, or sponsored by the Ceph project or any storage vendor. Product and trademark names belong to their owners. MIT licensed.

Governed AI-ops for Ceph — talks to a vanilla ceph-mgr Dashboard REST API (HTTPS :8443, username + password exchanged for a short-lived JWT at POST /api/auth) with a built-in governance harness: unified audit log, token/runaway budget guard, undo-token recording, and descriptive risk tiers. Works against stock ceph-mgr — cephadm, hypervisor-bundled Ceph, or MicroCeph — with no croit and no Kubernetes dependency. Self-contained: no external skill-family dependency.

What it does

The flagship analysis, plus the guarded reads and writes around it:

  • cluster_health — HEALTH_WARN/ERR root-cause analysis. Instead of echoing raw check codes (PG_DEGRADED, OSD_NEARFULL, SLOW_OPS, MON_DOWN, LARGE_OMAP_OBJECTS, …), it turns each active check into plain language: what it means, the likely cause, and the suggested next action. This is the differentiator vs the hobby Ceph MCPs that just proxy ceph -s.
  • Governed destructive ops. The operations operators actually fear — osd_purge, pool_delete, set_pool_size, rbd_image_delete — carry dry-run + double-confirm and a high risk tier; reversible tuning (osd_reweight, throttle_recovery, cluster_flag_set, pool quota/pg_num/ autoscale) records an undo descriptor capturing the prior state.

What this tool does, and does not, decide

It delivers Ceph 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 account you connect it with: give it a ceph-mgr Dashboard account with a read-only role and the writes fail at the mgr — 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 ~/.ceph-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.

What works

  • CLI (ceph-aiops ...): init, overview, health detail/health status, osd tree/df/reweight/out/purge, secret set/list/rm/migrate/rotate-password, doctor, mcp. osd out and osd purge require --dry-run + double confirm.
  • MCP server (ceph-aiops mcp or ceph-aiops-mcp): the full 37 tools (17 read, 18 write, 2 undo), every one wrapped with the bundled @governed_tool harness. The CLI is a convenience subset; the MCP surface is the whole tool.
  • Encrypted credentials: the Dashboard password lives in an encrypted store ~/.ceph-aiops/secrets.enc (Fernet + scrypt) — never plaintext on disk. Unlock with a master password from CEPH_AIOPS_MASTER_PASSWORD (MCP/CI) or an interactive prompt (CLI).
  • Reversibility: reversible writes capture the prior state and record an inverse undo descriptor (e.g. osd_reweight → prior weight, set_pool_quota → prior quota, throttle_recovery → prior backfill/recovery settings).
  • Safety: destructive ops (osd_purge, osd_mark_out, pool_delete, set_pool_size, rbd_image_delete, rbd_snapshot_delete) are high risk with dry_run and CLI double confirmation.

Capability matrix (37 MCP tools)

GroupToolsCountR/W
Healthcluster_health (flagship RCA), cluster_status2read
OSDosd_tree, osd_df, osd_perf3read
cluster_flag_set (low, undo), osd_reweight (med, undo), osd_mark_in (med, undo)3write
osd_mark_out (high, dry-run), osd_purge (high, dry-run)2write
PGpg_summary, pg_dump_stuck, scrub_status3read
trigger_scrub (low), trigger_deep_scrub (low)2write
Poolpool_ls, pool_df2read
set_pool_quota (med, undo), set_pool_pg_num (med, undo), set_pool_autoscale (med, undo), pool_create (med)4write
set_pool_size (high, dry-run), pool_delete (high, dry-run)2write
RBDrbd_ls1read
rbd_image_create (med), rbd_snapshot_create (low)2write
rbd_image_delete (high, dry-run), rbd_snapshot_delete (high, dry-run)2write
CephFS / RGWcephfs_status, rgw_status2read
Cluster-opsmon_status, mgr_status, slow_ops, capacity_forecast4read
throttle_recovery (med, undo)1write
Undoundo_list, undo_apply2undo

Totals: 37 tools — 17 read, 18 write, 2 undo.

Quick start

As a Claude Code plugin

One install gives an agent both the skill and the MCP server:

/plugin marketplace add AIops-tools/marketplace/plugin install ceph-aiops@aiops-tools

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 ceph-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:

bash
openclaw plugins install clawhub:@zw008/ceph-aiopsopenclaw skills info ceph-aiops          # expect: Visible to model: yes

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

bash
uv tool install ceph-aiops          # or: pipx install ceph-aiopsceph-aiops init                     # wizard: add a mgr target + store the Dashboard password (encrypted)ceph-aiops doctor                   # JWT login + mgr-dashboard reachabilityceph-aiops overview                 # HEALTH status + active checks + OSD up/inceph-aiops health detail            # decode the active HEALTH_WARN/ERR checks (RCA)ceph-aiops osd df                   # per-OSD utilization, most-full first, near/backfill-full flags

Run as an MCP server (stdio):

bash
export CEPH_AIOPS_MASTER_PASSWORD=...   # unlock secrets non-interactivelyceph-aiops-mcp

Where that password then lives: an exported variable is readable by every process this shell starts and is recorded by shell history. On a shared or long-lived host, prefer the interactive prompt, or inject it from a secret manager for the life of the one command that needs it.

Governance

Every operation — MCP and CLI — passes through the bundled @governed_tool harness. 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 ~/.ceph-aiops/audit.db (relocatable via CEPH_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 CEPH_RUNAWAY_MAX=0; optional hard ceilings via CEPH_MAX_TOOL_CALLS / CEPH_MAX_TOOL_SECONDS.
  • Undo recording — reversible writes record an inverse descriptor built from the fetched before-state.
  • Risk tier — a descriptive label on the audit row derived from risk_level; it gates nothing.

Supported scope & limitations

  • Deployments: vanilla ceph-mgr with the dashboard module enabled — cephadm, hypervisor-bundled Ceph, or MicroCeph. No croit, no Kubernetes dependency.
  • Ceph has no ETag / pagination on the Dashboard API, so this tool exposes none — nothing is missing, the upstream API simply doesn't offer them.
  • Validation status: behaviour is exercised against mocked Dashboard responses by the test suite; multi-node rebalance and the write ops have not been run against a live cluster. The cheapest live check is a single-node MicroCeph (snap install microceph → bootstrap → loop-file OSDs) running ceph-aiops doctor; a 3-node Vagrant cluster exercises real rebalance behaviour. See docs/VERIFICATION.md for the full live-verification checklist.

Missing a capability?

RGW multisite, per-daemon config sprawl, NFS-Ganesha exports, orchestrator (cephadm) host management — not here yet. Open an issue or send a PR — feedback and contributions are welcome.

Source: README.md at commit bdd4967

Tools

0
SourceWeft started this package once in an isolated sandbox, without credentials, to list its tools. That failed: the server did not start.

Version history

5
  1. v0.14.0LatestOct 30, 2026
  2. v0.13.0Oct 15, 2026
  3. v0.12.0Oct 15, 2026
  4. v0.11.5Sep 17, 2026
  5. v0.11.4Sep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts