
VMware AIops
io.github.zw008由 GitHub 帳號 zw008 發布v1.8.10更新於 Oct 24, 2026
AI-powered VMware vCenter/ESXi VM lifecycle and deployment with 31 MCP tools.
概覽
提供 31 個工具的 MCP 伺服器,讓助理管理 VMware vCenter/ESXi 的虛擬機生命週期、部署、客體作業、叢集、資料存放區與網路。
- 可以做什麼
- 開關虛擬機電源、設定 TTL 自動刪除、清理環境並建立快照
- 從 OVA、範本、連結複製、ISO 或批次 YAML 規格部署,並將虛擬機轉為範本
- 在客體作業系統內執行命令,上傳或下載客體檔案
- 規劃多步驟變更並支援回復,建立或刪除叢集、設定 HA/DRS 及增減主機
- 瀏覽資料存放區檔案、掃描映像,管理 dvSwitch 連接埠群組與 VMkernel 介面卡
- 查看目前使用的帳戶及其是否具備各工具所需權限
- 適用情境
- 適合讓助理操作 vSphere 實驗或測試環境:從範本或 OVA 部署虛擬機、在客體系統內執行安裝命令、依排程清理環境。README 建議正式環境監控改用唯讀的搭配技能。
- 執行需求
- 需在本機安裝 Python 3.10+ 的 vmware-aiops 套件(pip 或 uv),以 vmware-aiops mcp 啟動。需要 config.yaml 列出 vCenter/ESXi 目標,透過 VMWARE_AIOPS_CONFIG 指定,並在 .env 中依 VMWARE_{TARGET_NAME_UPPER}_PASSWORD 命名提供各目標密碼。需能連線 vCenter/ESXi 網路,帳戶需具備 vSphere 角色。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 VMware AIops,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
VMware AIops
For a read-only check of this skill with your model and agent host, use the shared model-fit self-test in the marketplace root.
Author: Wei Zhou, VMware by Broadcom — [email protected] This is a community-driven project by a VMware engineer, not an official VMware product. For official VMware developer tools see developer.broadcom.com.
English | 中文
AI-powered VMware vCenter/ESXi VM lifecycle and deployment tool — 61 tools.
Companion skills handle everything else:
Need read-only monitoring only? Use VMware-Monitor — zero destructive code in the codebase.
[ClawHub] [Skills.sh] [Claude Code Marketplace] [License: MIT]
Upgrading to 2.0
2.0 renames 38 of its MCP tools so every name starts with a verb (e.g. cluster_add_host → add_cluster_host, cluster_configure → configure_cluster, cluster_create → create_cluster). The full old → new table is in
RELEASE_NOTES.md. Nothing else changes: same tools, parameters,
safety gates and CLI commands. If an agent prompt, script or ~/.vmware/rules.yaml names a tool, update it (but not the action words in saved plan
files — cluster_add_host, storage_rescan and the like are plan actions, not tool names, and keep their spelling) — though deny
rules written with the old names keep working with vmware-policy ≥ 1.18 (vmware-audit policy lists any rule the
renames widened), and vmware-pilot ≥ 1.13 translates old names in saved workflows.
If an install older than 2.0 shares that rules.yaml, give it vmware-policy ≥ 1.18.2 too: it matches each rule
against both the old and the new name, so one file serves both.
⚡ Quick Investigation Reports (read-only)
Triage → investigate → act, all in one conversation. Five opinionated read-only reports aggregate and correlate server-side and hand back a high-signal result (never raw inventory), so you can decide where to look before changing anything. Each renders a self-contained offline HTML snapshot with --html (no external assets; drill-down detail collapses in native <details>, zero JavaScript). All delegate to the vmware-monitor library using AIops's own vCenter connection.
Via MCP these are the tools get_cluster_health_summary, get_cross_vcenter_attention, investigate_vm, investigate_host, investigate_datastore. (Requires vmware-monitor installed.)
Quick Install (Recommended)
Works with Claude Code, Cursor, Codex, Gemini CLI, Trae, and 30+ AI agents:
PyPI Install (No GitHub Access Required)
Offline / Air-Gapped Install (from source)
This project uses the modern PEP 517 build system (hatchling), so there is no
setup.py by design — that is expected, not a missing file. If you cloned the
source and hit ERROR: File "setup.py" or "setup.cfg" not found ... editable mode currently requires a setuptools-based build, your pip is older than 21.3 and
cannot do an editable (-e) install with a non-setuptools backend. Editable
mode is a developer convenience, not needed to run the tool — do one of:
For a truly air-gapped host, build the wheels on a connected machine and copy them over — the target then needs no network:
Why this over other VMware MCP servers
Most open-source VMware MCP servers (e.g. bright8192/esxi-mcp-server,
giuliolibrando/vmware-vsphere-mcp-server) are single-vCenter VM wrappers:
list/power/snapshot a VM, basic monitoring, a confirm=True flag. They explicitly
do not cover networking, storage, Kubernetes, ops analytics, load balancing, or
compliance — and "logging is documented" is not an audit trail.
This is one skill in an 11-package family that covers the whole estate and runs every tool through a governed harness:
If you only ever power-cycle VMs in one vCenter, a single-file server is fine. If you run a real (regulated, NSX-segmented, multi-domain) VMware estate and need an AI operator an auditor can sign off on, that's what this family is for — see docs/compliance-ready.md.
Capabilities Overview
What This Skill Does
CLI vs MCP: Which Mode to Use
Rule of thumb: Use CLI for cost efficiency and small models. Use MCP for structured automation with large models.
Architecture
Version Compatibility
pyVmomi auto-negotiates the API version during SOAP handshake — no manual configuration needed. The same codebase manages 7.0 / 8.0 / 9.0 / 9.1 environments seamlessly.
Official Broadcom References
- SDKs: https://developer.broadcom.com/sdks — VCF Python SDK (recommended for VCF 9+, bundles pyVmomi + vSAN SDK), vSphere Automation SDK for Python (REST APIs)
- REST APIs: https://developer.broadcom.com/xapis — vSphere Automation API, VCF API, SDDC Manager API
- CLI Tools: https://developer.broadcom.com/tools — PowerCLI 9.1, ESXCLI, OVF Tool
Common Workflows
Deploy a Lab Environment
- Browse datastore for OVA images →
vmware-aiops datastore browse <ds> --pattern "*.ova" - Deploy VM from OVA →
vmware-aiops deploy ova ./image.ova --name lab-vm --datastore ds1 - Install software inside VM →
vmware-aiops vm guest-exec lab-vm --cmd /bin/bash --args "-c 'apt-get install -y nginx'" --user root - Create baseline snapshot →
vmware-aiops vm snapshot-create lab-vm --name baseline - Set TTL for auto-cleanup →
vmware-aiops vm set-ttl lab-vm --minutes 480
Batch Clone for Testing
- Create plan:
create_vm_planwith multiple clone + reconfigure steps - Review plan with user (shows affected VMs, irreversible warnings)
- Apply:
apply_vm_planexecutes sequentially, stops on failure - If failed:
rollback_vm_planreverses executed steps - Set TTL on all clones for auto-cleanup
Migrate VM to Another Host
- Check VM info via
vmware-monitor→ verify power state and current host - Migrate:
vmware-aiops vm migrate my-vm --to-host esxi-02 - Verify migration completed
VM Lifecycle
Guest Operations require VMware Tools running inside the guest OS, and the guest account is always named explicitly —
--useron the CLI,usernameover MCP. There is no default, so no call runs as root without choosing root.run_vm_guest_command_with_output(MCP only; the CLI has no equivalent) auto-detects Linux/Windows shell and captures stdout/stderr.
Plan → Apply (Multi-step Operations)
For complex operations involving 2+ steps or 2+ VMs, use the plan/apply workflow instead of executing individually:
Plans stored in ~/.vmware-aiops/plans/, auto-deleted on success, auto-cleaned after 24h.
VM Deployment & Provisioning
Cluster Management
remove-hostrequires the host to be in maintenance mode first; the host is moved out of the cluster into the datacenter's host folder as a standalone host.
Alarm Management
Blast radius: vSphere has no per-alarm clear API.
alarm resetusesAlarmManager.ClearTriggeredAlarms, which clears all triggered alarms matching the named alarm's entity type (host/VM/all) and current status (red/yellow) — not just the named one. The named alarm is looked up first (typos fail fast), and the output'sscopefield reports exactly what was cleared. Cleared alarms re-trigger automatically if their underlying condition persists.
Datastore Browser
Scheduled Scanning & Notifications
Safety Features
vCenter vs ESXi Comparison
Inventory, alarms, events, sensors, host services, and scanning are now in vmware-monitor.
What protects you
The table above lists two different surfaces and it is worth being blunt about which protections apply to which, because getting this wrong is worse than having no protection at all — a guardrail you believe in is one you stop compensating for.
On the CLI, a destructive command asks twice and takes no bypass flag, and
--dry-run previews every write except deploy iso, deploy mark-template,
vm cancel-ttl and vm guest-download. That defends a mistyped command typed by a
human. It does not defend against an agent, which satisfies both prompts with
yes |.
Over MCP, every tool annotated destructive, plus migrate_vm and the network/DRS
authoring tools — 23 of the 43 write tools, including
power_off_vm, migrate_vm, delete_cluster, the snapshot, guest, TTL, Clean
Slate and plan tools, and reset_vcenter_alarm — takes one argument, confirm, whose default is a
no-write preview: a bare call returns its blast radius and changes nothing.
confirm=True re-measures and is refused, with a teaching error audited as a
failure, if the preview found a blocker (a VM without running VMware Tools, a
target host in maintenance mode, a cluster that still has hosts, a missing or
duplicated snapshot) or could not read something. delete_vm also takes the
preview's acknowledge_with echoed back, and is refused if the VM changed
since, is powered on or suspended. The other 20 write tools — creates, clones,
deploys, power-on, reconfigure, snapshot create, host add, template and ISO operations,
guest download, plan creation, alarm acknowledge — act on the first call. A confirmation is not authorization, which is
why the VMWARE_READ_ONLY switch stays removed (it was enforced on the MCP path
only, and any agent with a shell walked around it via the CLI). What the preview
buys is narrower: an agent does not destroy something it has not looked at.
What actually decides whether a write lands is the vCenter/ESXi service
account. Give the skill an account with the privileges the work needs and no
more; vCenter refuses the rest itself, on every surface, with no way around it
from inside this skill. To run an agent read-only, give it a read-only vCenter
role — one decision, enforced where it is made. Every call is then recorded in
~/.vmware/audit.db before the caller sees a result, which is how you find out
what happened. Optional deny rules in ~/.vmware/rules.yaml, checked before
every MCP call, can refuse operations — for example, writes to targets labelled
environment: production. The shipped baseline denies nothing, and the rules
run inside the same process: a guardrail on top of RBAC, not a replacement.
run_vm_guest_command is the one to think hardest about. It runs a caller-supplied
command inside the guest OS with the credentials handed to it — its username
is required (no default account); nothing bounds what the command may be. The guest account is
a separate authorization boundary from the vCenter one — a read-only vCenter
role does not constrain what this tool does inside a VM. The skill stores no
guest credentials: over MCP they are tool arguments the agent sees (the audit row
redacts the password). Pass a least-privilege guest account, and do not hand the
agent guest credentials it does not need. upload_vm_guest_file reads any local file
the server process can read.
The full inventory of which tools are gated and which are not is in references/capabilities.md, where the numbers are checked against the live tool registry by the test suite rather than maintained by hand.
Troubleshooting
"VM not found" error
VM names are case-sensitive in vSphere. Use exact name from vmware-monitor inventory vms.
Guest exec returns empty output
Use run_vm_guest_command_with_output instead of run_vm_guest_command — it auto-captures stdout/stderr. Basic run_vm_guest_command only returns exit code.
Deploy OVA times out
Large OVA files (>10GB) may exceed the default 120s timeout. The upload happens via HTTP NFC lease — ensure network between the machine running vmware-aiops and ESXi is stable.
Plan apply fails mid-way
Run vmware-aiops plan list to see failed plan status. Ask user if they want to rollback with rollback_vm_plan. Irreversible steps (delete_vm) are skipped during rollback.
Connection refused / SSL error
- Verify target is reachable:
vmware-aiops doctor - For self-signed certs: set
verify_ssl: falsein config.yaml (lab environments only)
doctor reports "no vSphere role", or every command fails with "session is not authenticated"
The account logs in but has no vSphere role, so vCenter gives it no session (AIops#47). Assign it a role (Read-Only or higher) on the vCenter root folder: Administration > Access Control > Global Permissions. Changing the password will not help. vmware-aiops doctor reports this case by name, and attention counts such a target as unread (overall at least WARN).
Supported AI Platforms
Platform Comparison
MCP Server Integrations
The vmware-aiops MCP server works with any MCP-compatible agent or tool. Ready-to-use configuration templates are in examples/mcp-configs/.
Xiaoguai (小怪) — a self-hostable, audit-first agent platform (Rust, single binary + embedded SQLite) from the same maintainer. It runs the vmware-aiops MCP server as one of its toolboxes; being both an MCP consumer and an MCP server, its HMAC-chained audit log and human-on-the-loop approval gates line up with this skill's own audit + confirm design. See its MCP integration guide.
Fully local operation (no cloud API required):
Installation
Step 0: Prerequisites
Step 1: Clone & Install Python Backend
All platforms share the same Python backend.
Step 2: Configure
Set passwords via .env file (recommended):
Security note: Prefer
.envfile over command-lineexportto avoid passwords appearing in shell history. The.envfile should havechmod 600(owner-only read/write).
Password environment variable naming convention:
Security Best Practices
- NEVER hardcode passwords in scripts or config files
- NEVER pass passwords as command-line arguments (visible in
ps) - ALWAYS use
~/.vmware-aiops/.envwithchmod 600 - ALWAYS configure connections via
config.yaml— credentials are loaded from.envautomatically - Config File Contents:
config.yamlstores target hostnames, ports, and a reference to the.envfile. It does not contain passwords or tokens. All secrets are stored exclusively in.env - TLS: Enabled by default. Disable only for ESXi hosts with self-signed certificates in isolated lab environments
- Webhook: Disabled by default. When enabled, the daemon posts to your own configured URL only — no third-party service — every critical issue (alarms, events, ESXi log lines matching critical/panic/corrupt, targets it could not connect to) and every alarm/event warning — host-log warnings stay in the scan log, and
inforows are never sent. Payloads carry the full issue text (entity names, alarm names, event messages, ESXi log excerpts, connection errors), which can include host names, IP addresses, and user names; they carry no credentials from your config or.env - Least Privilege: Use a dedicated vCenter service account with minimal permissions. For monitoring-only use cases, prefer the read-only VMware-Monitor
- Prompt Injection Protection: All vSphere-sourced content is truncated, stripped of control characters, and wrapped in boundary markers before output
- Code Review: We recommend reviewing the source code and commit history before deploying in production
- Production Safety: For production environments, use the read-only VMware-Monitor instead. AI agents can misinterpret context and execute unintended destructive operations — real-world incidents have shown that AI-driven infrastructure tools without proper isolation can delete production databases and entire environments. VMware-Monitor eliminates this risk at the code level: no destructive functions exist in its codebase
Step 3: Connect Your AI Tool
Choose one (or more) of the following:
Option A: Claude Code
Method 1: Skills.sh or ClawHub (recommended)
Either installer places the skill in Claude Code's skills directory for you:
Method 2: Manual skill install
For tool access (not just skill context), also register the MCP server:
Restart Claude Code, then:
Submit to Official Marketplace
This plugin can also be submitted to the Anthropic official plugin directory for public discovery.
Option B: Gemini CLI
For tool access (not just context), register the MCP server in ~/.gemini/settings.json:
Then start Gemini CLI:
Option C: OpenAI Codex CLI
Then start Codex CLI:
Option D: Aider (supports local models)
Option E: Continue CLI (supports local models)
Configure ~/.continue/config.yaml for local model:
Then:
Option F: Trae IDE
Copy the rules file to your project's .trae/rules/ directory:
Trae IDE's Builder Mode reads .trae/rules/ Markdown files at startup.
Note: You can also install Claude Code extension in Trae IDE and use
.claude/skills/format directly.
Option G: Kimi Code CLI
Option H: MCP Server (Glama / Claude Desktop)
The MCP server exposes VMware operations as tools via the Model Context Protocol. Works with any MCP-compatible client (Claude Desktop, Cursor, etc.).
After uv tool install vmware-aiops, start the MCP server with one command (v1.5.15+):
Claude Desktop config (claude_desktop_config.json):
Alternative: uvx (no install) or legacy entry point
Behind a corporate TLS proxy? uvx may fail with
invalid peer certificate: UnknownIssuer. Use the recommendedvmware-aiops mcpform above (no network needed), or setUV_NATIVE_TLS=true.
Option I: Standalone CLI (no AI)
Update / Upgrade
Already installed? Re-run the install command for your channel to get the latest version:
Check your current version: vmware-aiops --version
Chinese Cloud Models
For users in China who prefer domestic cloud APIs or have limited access to overseas services.
DeepSeek
Cost-effective, strong coding capability.
Persistent config ~/.aider.conf.yml:
Qwen (Alibaba Cloud)
Alibaba Cloud's coding model, free tier available.
Or via OpenAI-compatible endpoint:
Doubao (ByteDance)
With Continue CLI
Configure ~/.continue/config.yaml:
Local Models (Aider + Ollama)
For fully offline operation — no cloud API, no internet, full privacy.
Aider + Ollama + local Qwen/DeepSeek is ideal for air-gapped environments.
Step 1: Install Ollama
Step 2: Pull a model
Hardware: 32B → ~20GB VRAM (or 32GB RAM for CPU). 7B → 8GB RAM.
Step 3: Run with Aider
Persistent config ~/.aider.conf.yml:
Local Architecture
Tip: Local models are fully offline — perfect for air-gapped environments or strict data compliance.
CLI Reference
Configuration
See config.example.yaml for all options.
Project Structure
API Coverage
Built on pyVmomi (vSphere Web Services API / SOAP).
Related Projects
Troubleshooting & Contributing
If you encounter any errors or issues, please send the error message, logs, or screenshots to [email protected]. Contributions are welcome — feel free to join us in maintaining and improving this project!
Remote access (HTTPS) and limiting tools
By default vmware-aiops mcp speaks stdio to one local client and offers every tool. Two options change that
(vmware-policy ≥ 1.21.0).
Serve over HTTPS so clients on other machines can connect. Every caller needs a bearer token:
Connect a client (Claude Code shown; any MCP client that supports streamable HTTP and custom headers works):
- The server will not start without a token, refuses Host/Origin values outside
--public-name, and checks before it binds that unauthenticated requests get 401. Use a certificate your clients trust for those names. - Behind a TLS-terminating reverse proxy on the same machine use
--transport http --host 127.0.0.1 --public-name mcp.example.comand pass theAuthorizationheader through. - Behind a load balancer or gateway on another machine, keep
--transport https(a self-signed certificate is fine), list in--public-namethe host name the balancer sends asHost, and have it forwardAuthorization. Its health probe can useGET /healthz, which needs no token and returns only{"status": "ok"}(vmware-policy ≥ 1.23.0). - Send
traceparentorX-Request-IDwith each request to have it stored on the audit row;vmware-audit log --correlation-id IDthen finds the calls behind one platform request. - Tools that read or write files on this server (here: guest file upload/download, OVA and deployment-spec files) never touch its configuration, tokens, audit log or
TLS key, and over the network they are off unless
VMWARE_MCP_FILE_ROOTnames a directory for them (vmware-policy ≥ 1.23.1). - The audit log records each caller as
token:<name>. Calls run side by side, with up toVMWARE_MCP_POOL_SIZE(default 2) sessions per target; each session is a login on the target, and a call waits at most 300 s for one. - Everyone who can reach the endpoint acts with this server's account. Tokens identify callers; they grant nothing on the platform. Run one endpoint per privilege level.
- Several people or roles on one endpoint: run
vmware-audit roles enableonce, then give each token a role (vmware-audit token create NAME --role reader, or a role inroles.yamlnaming tools and targets; vmware-policy ≥ 1.24.0). A role limits what the token may call on this endpoint; it cannot grant more than the account has. See vmware-policy's README, "Roles for network callers".
Offer only read tools, plus the writes you choose:
Tools not offered do not appear in the client's tool list. A bad value or an unknown write tool stops the server (exit 2). This limits what clients are offered; it is not authorization, so the account itself should be least-privilege.
Details: skills/vmware-aiops/references/setup-guide.md ("Serving MCP over HTTPS", "Limiting which tools are offered").
License
MIT
來源:README.md,提交 ec4df3e
工具
0版本歷史
1- v1.8.10最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分