Endpoint AIops

io.github.AIops-tools由 GitHub 帳號 AIops-tools 發布v0.13.0更新於 Oct 30, 2026

Governed managed-endpoint ops — login-storm & drift analysis, 13 MCP tools with audit/budget/undo.

概覽

AI 產生的概覽

針對受管終端機群的治理型 AI 維運 MCP 伺服器:登入風暴與漂移分析,加上具稽核的受控讀寫操作。

可以做什麼
  • 檢視機群清單與健康狀態:總覽、終端清單與詳情、健康評分
  • 分析工作階段:列出登入工作階段並偵測登入風暴,排序拖慢登入的終端與使用者
  • 檢查漂移與修補:漂移報告、修補狀態、修補合規性,可依機群多數推導基準
  • 修復終端:指派設定檔或重新開機,並標示風險等級
  • 檢視與套用復原:列出已記錄的反向操作並執行
  • 部分分析工具可注入記錄做離線分析
適用情境
適合透過管理伺服器 REST API 管理集中控管終端(精簡型電腦、VDI 裝置)的情境,讓助理診斷登入風暴、找出修補或設定漂移,並執行可稽核的修復動作。若需要每次操作都有紀錄、可逆寫入可復原,就值得加入。
執行需求
以本機 Python 套件透過 stdio 執行(uv tool install 或 pipx)。需要可連線的終端管理伺服器、以 endpoint-aiops init 設定的目標,以及存放在本機加密儲存區的管理主控台帳號或 API 金鑰。主密碼來自 ENDPOINT_AIOPS_MASTER_PASSWORD 或互動式輸入;以外掛方式安裝時 PATH 需有 uvx。
安裝前請注意
13 個工具中有 3 個寫入操作:指派設定檔(高風險)、重新開機(中風險,無復原)、套用復原。沒有唯讀開關或核准關卡,寫入僅受所連帳號權限限制,因此唯讀角色才是真正的防護。主密碼用於解鎖已存憑證,匯出後同一個 shell 啟動的其他程序可讀取。稽核紀錄與密鑰保存在本機家目錄下。所有方言都未在真實管理伺服器上驗證,路徑與驗證可能失敗。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

Endpoint 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 any endpoint-management vendor. Product and trademark names belong to their owners. MIT licensed.

Governed AI-ops for managed-endpoint fleets — thin clients, VDI endpoints, and other centrally-managed devices — with a built-in governance harness: unified audit log, token/runaway budget guard, undo-token recording, and descriptive risk tiers. Vendor-neutral: it talks to an endpoint-management server's REST API (Bearer auth) through a configurable dialect — see Dialects. Self-contained: no dependencies beyond httpx and the MCP SDK. The test suite is mock-based; the endpoint-management REST paths have not yet been exercised against a live management server — see docs/VERIFICATION.md.

What it does

Two signature analyses, plus the guarded reads and writes around them:

  • Login-storm analysis — during a "everyone logs in at 9am" incident, detect the storm (bursts of concurrent logins in a sliding window) and rank the endpoints/users dragging login and boot times. Every flag is reported with its number, not a black-box verdict.
  • Patch / config drift — find endpoints that have drifted from the fleet (outdated patch level, stray agent version, divergent OS build or config profile). With no declared baseline it derives one by fleet majority, so it works before a gold image exists.

What works

  • CLI (endpoint-aiops ...): init, overview, endpoint list/get/assign-profile/reboot, session list/storm, drift report/patch, secret set/list/rm/migrate/rotate-password, doctor, mcp.
  • MCP server (endpoint-aiops mcp or endpoint-aiops-mcp): 13 tools (10 read, 3 write), every one wrapped with the bundled @governed_tool harness.
  • Encrypted credentials: the management-server API key lives in an encrypted store ~/.endpoint-aiops/secrets.enc (Fernet + scrypt) — never plaintext on disk. Unlock with a master password from ENDPOINT_AIOPS_MASTER_PASSWORD (MCP/CI) or an interactive prompt (CLI).
  • Reversibility: endpoint_assign_profile (high risk) captures the prior profile and records an inverse "reassign the prior profile" undo descriptor. endpoint_reboot (medium risk) captures the prior online state for the audit record but declares no undo (a reboot has no safe inverse).
  • Safety: state-changing CLI ops (endpoint assign-profile, endpoint reboot) require double confirmation and support --dry-run.

Capability matrix (13 MCP tools)

CategoryToolsCountR/W
Overviewoverview1read
Inventoryendpoint_list, endpoint_get, endpoint_health_score3read
Sessionssession_list, login_storm_analysis2read
Driftdrift_report, patch_status, patch_compliance3read
Remediationendpoint_assign_profile1write (high)
endpoint_reboot1write (medium)
Undoundo_list1read
undo_apply1write (medium)

The analysis tools (login_storm_analysis, drift_report, patch_status, patch_compliance, endpoint_health_score) accept injected records for pure/offline analysis; endpoint_health_score and patch_compliance are injected-only, the others also pull live from a configured target.

What this tool does, and does not, decide

It delivers managed-endpoint 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 management-console account or API token scoped to a read-only role 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 ~/.endpoint-aiops/audit.db, and reversible 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 write. It is a label, not a gate.

Running a smaller / local model? See agent-guardrails.md — it lists the guardrails this tool now enforces for you (so you don't spend prompt budget restating them) and gives a ready-made system prompt for what's left.

Payload conventions

  • Absent is not empty. A field the management server did not report comes back as null, never as "" — the key is always present, so a missing patch level cannot be mistaken for a blank one.
  • Capped lists announce themselves. Any list a limit can cut short is a truncation envelope: {"items": [...], "returned": N, "limit": L, "truncated": bool}, with truncated measured rather than inferred. Companion totals (driftedCount, behindCount, nonCompliantCount, stormCount, the health summary) are always the full, uncapped figures.

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 endpoint-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 endpoint-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/endpoint-aiopsopenclaw skills info endpoint-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 endpoint-aiops          # or: pipx install endpoint-aiopsendpoint-aiops init                     # wizard: add a target + store its API key (encrypted)endpoint-aiops doctor                   # verify config, secrets, connectivityendpoint-aiops overview                 # one-shot fleet healthendpoint-aiops session storm            # detect a login storm + slow contributorsendpoint-aiops drift report             # endpoints drifted from the fleet baseline

Run as an MCP server (stdio):

bash
export ENDPOINT_AIOPS_MASTER_PASSWORD=...   # unlock secrets non-interactivelyendpoint-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 ~/.endpoint-aiops/audit.db (relocatable via ENDPOINT_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 ENDPOINT_RUNAWAY_MAX=0; optional hard ceilings via ENDPOINT_MAX_TOOL_CALLS / ENDPOINT_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.

Scope

This is the IT-endpoint member of the AIops-tools family (governed AI-ops with audit + budget + undo + risk tiers). For OT / industrial edge (Modbus, OPC-UA, PROFINET, …) see the separate industrial-aiops line.

Dialects — which server are you actually pointing at?

A dialect is the management server's API shape: resource paths, response field names, the transport defaults (port + API base path), and how to authenticate. Set it per target in config.yaml; endpoint-aiops init asks for it and prints which one it configured.

DialectTransportAuthStatus
generic (default)/api/v2.0 on 443static Bearer API keyNeutral placeholder — not a real vendor API. Useful only once you describe your server's paths in a dialect: block.
igel-ums/umsapi/v3 on 8443HTTP Basic login → JSESSIONID cookieDocumented-but-unverified dialect for IGEL UMS (IMI). This is not a claim that IGEL is supported — see Status.
yaml
targets:  - name: ums1    host: ums.example.local    dialect: igel-ums        # IMI paths, port 8443, /umsapi/v3, Basic-login auth    username: ums-admin      # UMS account; the password lives in secrets.enc    scheme: https            # or 'http' for a reverse-proxied server    verify_ssl: false        # self-signed lab UMS only

The generic default is not an IGEL configuration and never was: IGEL serves IMI at /umsapi/v3 on 8443, so a target left on the generic shape 404s on its first probe. That mismatch is why the preset exists.

Where a server genuinely has no such resource, the dialect says so rather than guessing a URL — IMI exposes no login/boot session resource, so session_list and login_storm_analysis on an igel-ums target return a teaching error naming the absent resource instead of calling an invented path.

A dialect selects the auth scheme too, not just paths — IMI rejects the static Bearer token the generic dialect sends, so it logs in with HTTP Basic at POST /umsapi/v3/login and carries the returned JSESSIONID cookie (once per connection, then cached). Because the scheme comes from the dialect, a credentials failure and a wrong-dialect failure are reported differently: a 401 names the scheme presented and, when the server sends a WWW-Authenticate challenge, the scheme it actually wants — so a dialect mismatch does not send you off rotating a perfectly good key.

⚠️ Note for IGEL specifically: a UMS account with too few permissions receives empty lists rather than a 403. endpoint-aiops doctor authenticates as a step separate from its reachability probe and warns when a successful login returns no endpoints, because "no devices" and "not allowed to see the devices" are otherwise indistinguishable.

Status

The test suite is mock-based. No dialect in this package has been exercised against a real management server, so this package does not claim support for any specific product — including IGEL.

  • generic is a placeholder shape, not a vendor API.
  • igel-ums is a documented-but-unverified dialect. Its paths and field aliases are modelled from IGEL's published IMI documentation; its auth scheme is documented in the IMI manual and matches what three independent real-world IMI clients do. Neither has been run against an appliance by this project — IGEL UMS has no free edition, so it cannot be verified on the maintainer's hardware.

Both are recorded as UNKNOWN-pending-live in docs/VERIFICATION.md, which ranks what a live run is most likely to find wrong and defines the checklist it must cover. If you have a UMS and run that checklist, the results are very welcome as an issue. Missing a capability or a server dialect? Open an issue or PR — contributions welcome.

來源:README.md,提交 4bb7b79

工具

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

版本歷史

4
  1. v0.13.0最新Oct 30, 2026
  2. v0.12.0Oct 15, 2026
  3. v0.11.0Oct 15, 2026
  4. v0.10.3Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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