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 分