VMware-Storage is a community-driven project initiated by VMware engineer Wei Zhou (Broadcom), and is not an official VMware product. This skill packages vSphere storage management capabilities into a lightweight MCP toolset for datastores, iSCSI, vSAN, and read-only Fibre Channel/multipathing diagnostics.
[Purpose and Positioning] VMware-Storage was split off from vmware-aiops, with the goal of reducing context burden and being compatible with local models. vmware-aiops has 60 MCP tools, which is too heavy for local 7B-14B large models; after the split, this skill retains only 14 tools, which can comfortably fit into the context window of small models, and lets storage administrators get only the functionality they need, while also supporting running under a vCenter service account with read-only storage permissions to achieve least privilege. It can be used in combination with other skills (such as vmware-monitor and vmware-aiops).
[Main Capabilities] Provides 14 MCP tools, covering the following areas:
- Datastore management: list all datastores, browse datastores, scan datastores for deployable images (such as ISO).
- iSCSI management: enable iSCSI adapters, add iSCSI targets (automatically triggers a storage rescan), view iSCSI status.
- vSAN operations: check vSAN cluster health, check vSAN capacity.
- Fibre Channel and multipathing diagnostics (read-only): list FC adapters and WWPNs, list storage device paths, view path differences by datastore or cluster. Path status is presented as reported by vSphere, and standby status will not be marked as abnormal; hosts that cannot be read will be listed in hosts_not_read and will not be falsely reported as missing devices.
[Usage] Installation: uv tool install vmware-storage After installation (v1.5.15+), start the MCP server with a single command. AI agents can add the corresponding server configuration to their MCP configuration. In a TLS proxy environment, uvx may fail due to certificate issues; it is recommended to use the vmware-storage mcp form (no network required), or set UV_NATIVE_TLS=true.
[Common Workflow Examples]
- Set up iSCSI storage on a host:
- Enable the iSCSI adapter: vmware-storage iscsi enable esxi-01
- Add a target: vmware-storage iscsi add-target esxi-01 10.0.0.100 (the add-target command automatically rescans storage)
- Verify: vmware-storage iscsi status esxi-01 Use --dry-run to preview any write command.
- Find deployable images across datastores:
- List all datastores: vmware-storage datastore list
- Scan images: vmware-storage datastore scan-images datastore01
- Browse by pattern: vmware-storage datastore browse datastore01 --pattern "*.iso"
- vSAN health assessment:
- Check health: vmware-storage vsan health Cluster-Prod
- Check capacity: vmware-storage vsan capacity Cluster-Prod
- When problems are found, you can combine with vmware-monitor to view alarms and events.
- Check Fibre Channel paths:
- View failed or disabled paths behind a datastore: vmware-storage paths devices --datastore ds-fc-01
- View cases where the same shared device has inconsistent or missing path counts on different hosts: vmware-storage paths devices --cluster Cluster-Prod --only-differences
- Provide WWPNs to the SAN team: vmware-storage paths fc-adapters --cluster Cluster-Prod
[2.0 Upgrade Notes] Version 2.0 renamed 10 of the 14 tools so that each tool name starts with a verb (for example fc_adapter_list → list_fc_adapters, storage_device_paths → list_storage_device_paths, storage_iscsi_add_target → add_iscsi_target). The complete old-to-new name mapping table is in RELEASE_NOTES.md. The parameters of three tools have also changed: browse_datastore and scan_datastore_images use datastore_name (formerly ds_name, now consistent with vmware-aiops's browse_datastore); list_all_datastores adds an optional parameter limit (consistent with vmware-monitor). Everything else is unchanged: the same tools, safety gates, and CLI commands (the CLI still accepts datastore names the same way as before). If tool names are referenced in agent prompts, scripts, or ~/.vmware/rules.yaml, they need to be updated; however, deny rules written with the old names still work under vmware-policy ≥ 1.18 (vmware-audit policy will list all rules broadened by the rename), and vmware-pilot ≥ 1.13 will convert old names in saved workflows. If an installation below 2.0 shares this rules.yaml, also use vmware-policy ≥ 1.18.2: it matches both old and new names, so a single file is compatible with both.
[Offline/Isolated Installation] The project uses the PEP 517 build system (hatchling), so the absence of setup.py is by design, not a missing file. If, after cloning the source, you encounter "ERROR: File 'setup.py' or 'setup.cfg' not found ... editable mode currently requires a setuptools-based build", it means the pip version is below 21.3 and cannot perform an editable install with a non-setuptools backend. Editable mode is a developer convenience and is not required to run the tools; for truly isolated hosts, build a wheel on a networked machine and copy it over, with no network required on the targetside.
[Auto-Remediation Mode (PoC)] The patterns/ directory contains L5 auto-remediation candidate patterns from the Enterprise Harness Engineering framework. The first PoC pattern, patterns/iscsi-target-stale-rescan.yaml, describes iSCSI HBA rescan as a low-risk, reversible, repeatable operation. The pattern schema is documentation only; runtime execution is not yet wired in, so this is a reference design, not production-grade auto-remediation.
[Version Compatibility]
- Python: 3.10+ (since v1.5.27, previously 3.11+), tested on 3.10/3.11/3.12.
- SDK: Broadcom developer SDK, including the VCF Python SDK and the vSAN Management SDK (bundled in pyVmomi).
- REST API: vSAN Management API, VCF API.
- CLI tools: PowerCLI 9.1, ESXCLI.
[Use Cases] Suitable for storage administrators and AI agent workflows that need to manage vSphere storage locally or in lightweight environments with least privilege, especially for local small-model scenarios, iSCSI configuration, vSAN health checks, datastore image scanning, and Fibre Channel path diagnostics.
[Limitations]
- Community project, not an official VMware product.
- Auto-remediation mode is not yet wired into runtime execution; it is a reference design only.
- The Fibre Channel portion is read-only diagnostics.
- Note the tool renaming in version 2.0; older scripts or prompts may need updating.