SuperAPIAI Directory

VMware-VKS

github.com · AI developer platforms

VMware Tanzu / vSphere Kubernetes Service: Supervisor cluster, namespace and Tanzu Kubernetes Cluster lifecycle, with dry-run mode and kubeconfig export.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

Purpose

VMware-VKS provides management capabilities for vSphere with Tanzu (VKS) in both MCP Skill and CLI forms, covering lifecycle management of Supervisor clusters, vSphere namespaces, and TanzuKubernetesCluster. It is a community-driven project, authored by Wei Zhou (wei-wz.zhou@broadcom.com) of VMware by Broadcom, and is not an official VMware product; for official developer tools, see developer.broadcom.com. The project belongs to the VMware MCP Skills family, where each skill covers an independent domain and can be installed separately as needed.

Main Capabilities

  • Provides 23 MCP tools that can be integrated into an AI agent's MCP configuration.
  • Manages lifecycle operations for Supervisor clusters, namespaces, and TKC clusters, including creation, viewing, and scaling.
  • Supports dry-run mode and kubeconfig export (the exported kubeconfig is written as a file readable only by the owner, rather than printing the token directly).
  • Common workflows include: deploying a new TKC cluster, scaling worker nodes for load testing, namespace resource management, and more.
  • Version 2.0 renames three VM Service tools: list_vm_snapshots → list_vm_service_snapshots, list_vm_groups → list_vm_service_groups, list_vm_network_interfaces → list_vm_service_network_interfaces. The reason is a naming conflict: in family 2.0, vmware-aiops and vmware-monitor also call their vSphere VM snapshot tool list_vm_snapshots, whereas this tool lists Kubernetes VM Service (vm-operator) objects. If existing agent prompts, scripts, or saved workflows still call vmware-aiops or vmware-monitor with list_vm_snapshots, they will now hit the vSphere tool instead of this tool and need to be updated. Deny rules scoped to VKS that are named list_vm_snapshots will now also match the aiops/monitor tools (vmware-policy ≥ 1.18 matches both names; vmware-audit policy lists such rules). Parameters, safety gates, and CLI commands are unchanged. If pre-2.0 installations share the same rules.yaml, vmware-policy ≥ 1.18.2 should also be provided for them, because it matches each rule by both the old and new names, so a single file can serve both.

Usage

Environment requirements:

  • Python 3.10+ (required for uv tool install)
  • vSphere 8.0+ (Workload Management / Supervisor API requires vSphere 8.x)
  • Workload Management enabled (WCP enabled on at least one compute cluster)
  • Licensing: vSphere Kubernetes Service (Enterprise Plus or VMware Cloud Foundation)

After installation, run vmware-vks check to verify that all requirements are met.

Installation (uv): after installation, the MCP server can be started with a single command (v1.5.15+). Then add the corresponding configuration to the AI agent's MCP configuration. If behind an enterprise TLS proxy, uvx may report invalid peer certificate: UnknownIssuer; it is recommended to use the vmware-vks mcp form (no network required), or set UV_NATIVE_TLS=true.

Offline / air-gapped installation (from source): the project uses a modern PEP 517 build system (hatchling), so by design there is no setup.py, which is expected. 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 pip is older than 21.3 and cannot perform an editable (-e) install with a non-setuptools backend. Editable mode is only a development convenience and is not required to run the tool. For a truly air-gapped host, you can build a wheel on a networked machine and copy it over, so the target machine needs no network.

Common workflow examples (from the official description):

Deploy a new TKC cluster:

  1. Check compatibility → vmware-vks check
  2. List available K8s versions → vmware-vks tkc versions -n dev
  3. Create a namespace (if needed) → vmware-vks namespace create dev --cluster domain-c1 --storage-policy <policy-id> --cpu 16000 --memory 32768 --apply(the policy ID can be obtained via vmware-vks supervisor storage-policies retrieve)
  4. Create a TKC cluster → vmware-vks tkc create dev-cluster -n dev --version v1.28.4+vmware.1 --control-plane 1 --workers 3 --vm-class best-effort-large --apply
  5. Retrieve kubeconfig (credentials, only when cluster access is needed) → vmware-vks kubeconfig get dev-cluster -n dev -o ./kubeconfig

Scale Workers for load testing:

  • View current status → vmware-vks tkc get dev-cluster -n dev
  • Scale up → vmware-vks tkc scale dev-cluster -n dev --workers 6
  • Monitor progress → vmware-vks tkc get dev-cluster -n dev(observe phase)
  • Scale back down after testing.

Namespace resource management:

  • List namespaces → vmware-vks namespace list
  • Check usage → vmware-vks storage -n dev
  • Update quota → vmware-vks namespace update dev --cpu 32000 --memory 65536

Applicable Scenarios

For operations and platform engineering teams that need to uniformly manage the lifecycle of Supervisors, namespaces, and TKC clusters in a vSphere 8.x environment through an AI agent or command line. Suitable for daily operations tasks such as cluster deployment, load testing scale-up/scale-down, and namespace quota adjustments.

Limitations and Precautions

  • Depends on vSphere 8.x and enabled Workload Management; if not enabled, "VKS not compatible" will be reported in vCenter's Workload Management.
  • REST tools return 401: the namespace, storage-policy, and Supervisor-status tools authenticate to the vSphere Automation REST API via POST /api/session to obtain a session id, rather than a pyVmomi SOAP session key; 401 will automatically refresh once, and if it persists, check whether a proxy between you and vCenter is stripping the vmware-api-session-id header. Insufficient permissions (missing Workload Management permissions) result in 403 rather than 401.
  • Namespace creation reports "storage policy not found": first use vmware-vks supervisor storage-policies to list policies, then pass the value in the Policy ID column (not the display name) as --storage-policy.
  • TKC cluster stuck in Creating: check Supervisor events in vCenter. Common causes: insufficient ESXi host resources, NSX-T network issues, or the target datastore not being available to that storage policy.
  • kubeconfig retrieval fails: the machine running vmware-vks must be able to reach the Supervisor API endpoint; check firewall rules for port 6443.
  • Scaling has no effect: before scaling, confirm the cluster is in the Running phase; clusters in the Creating or Updating phase will reject scaling operations.
  • Namespace deletion is rejected: the namespace deletion guard prevents deletion when TKC clusters exist within it; you must first delete all TKC clusters in that namespace and then retry.
  • Version compatibility and related resources: for the SDK, see developer.broadcom.com/sdks (VCF 9+ is a unified SDK); for the REST API, see developer.broadcom.com/xapis (the Workload Management endpoint of the vSphere Automation API); for CLI tools, see developer.broadcom.com/tools (kubectl-vsphere, PowerCLI 9.1).
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools