用途:对 VMware vCenter/ESXi 进行只读监控,覆盖清单、告警、事件、主机健康、虚拟机信息与快照列表等场景,适合运维人员日常巡检与故障排查。
主要能力:提供 33 个只读工具,包括健康与监控、VM 信息与快照列表、定时扫描与通知、安全特性等。内置五份只读调查报告(get_cluster_health_summary、get_cross_vcenter_attention、investigate_vm、investigate_host、investigate_datastore),可聚合关联结果并生成离线 HTML 快照。支持 MCP 协议,可与 Claude Code、Cursor、Codex、Gemini CLI、Trae 等 30 多个 AI 代理集成。
使用方式:可通过 PyPI 安装(uv tool install vmware-monitor),也支持离线/气隙安装。配置使用 ~/.vmware-monitor/config.yaml 与 .env 文件,密码建议放在 .env 中。常用命令如 vmware-monitor health alarms --target prod-vcenter、vmware-monitor health events --hours 24 --severity warning、vmware-monitor inventory hosts、vmware-monitor attention、vmware-monitor investigate vm <name>、vmware-monitor daemon start 等。MCP 服务器可通过 vmware-monitor mcp 启动,支持 stdio 与 HTTPS 传输。
限制:代码库中不存在关机、删除、创建、重配置、快照创建/恢复/删除、克隆或迁移等操作,这是代码层面的缺失而非提示约束。只读保证依赖测试套件运行,且无法识别运行时拼接的方法名;建议使用 vCenter 内置只读角色账户。工具会本地写入配置文件、审计日志、HTML 快照等,daemon 启动后还会写入 daemon.pid、scan.log 并发送 webhook。2.0 版本重命名了 23 个 MCP 工具,旧名称规则在 vmware-policy ≥ 1.18 下仍可用。