# zw008/VMware-VKS [Health: Active]

**Category:** ☁️ Cloud Platforms  
**Repository:** https://github.com/zw008/VMware-VKS  
**GitHub Stars:** 6  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/zw008-vmware-vks

## Description
VMware Tanzu / vSphere Kubernetes Service — Supervisor cluster, Namespace, and TKC (Tanzu Kubernetes Cluster) lifecycle management. 20 tools with dry-run mode, kubeconfig export, and double-confirmation for namespace/TKC deletion.

## Tools
Capabilities this server exposes over MCP:

- **check_vks_compatibility** — vCenter version check + WCP status
- **get_supervisor_upgrade_risk** — vCenter 9.1.0/9.1.1 pre-upgrade advisory scope; VUMDB schema remains unmeasured; links to the official checker
- **get_supervisor_status** — Supervisor cluster status and K8s API endpoint
- **list_supervisor_storage_policies** — vCenter storage policies (policy ID, name, description)
- **list_namespaces** — All vSphere Namespaces with status
- **get_namespace** — Namespace detail (quotas, storage, roles)
- **create_namespace** — Create Namespace; previews by default (`confirm=True` applies)
- **update_namespace** — Modify quotas and storage policy
- **delete_namespace** — Delete with TKC guard (rejects if clusters exist)
- **list_vm_classes** — Available VM classes for TKC sizing
- **list_tkc_clusters** — TanzuKubernetesCluster list with status
- **get_tkc_cluster** — Cluster detail: every worker pool, known total replicas, health, conditions
- **get_tkc_available_versions** — Supported K8s versions on Supervisor
- **create_tkc_cluster** — Create TKC; previews the YAML plan by default (`confirm=True` applies)
- **scale_tkc_cluster** — Scale worker node count
- **upgrade_tkc_cluster** — Upgrade K8s version
- **delete_tkc_cluster** — Delete with workload guard
- **issue_supervisor_kubeconfig** — Supervisor kubeconfig — credential (bearer token); inline or owner-only file
- **issue_tkc_kubeconfig** — TKC kubeconfig — credential (bearer token); inline or owner-only file
- **get_harbor_info** — Embedded Harbor registry info (id, cluster, version, URL, health, storage used)
- **list_namespace_storage_usage** — PVC list and capacity stats
- **list_vm_service_snapshots** — VirtualMachineSnapshot objects in a vSphere Namespace
- **list_vm_service_groups** — VirtualMachineGroup objects and their boot order in a Namespace
- **list_vm_service_network_interfaces** — Network interfaces (multi-NIC) of one VM Service VirtualMachine
- **get_access_info** — Which account the server uses and whether it holds each tool's vSphere privileges on the root folder. Kubernetes calls are authorized by the namespace's own permissions, which it does not check

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "vmware-vks": {
    "command": "uvx",
    "args": ["--from","vmware-vks","vmware-vks"],
    "env": {
      "VMWARE_VKS_VCENTER01_PASSWORD": ""
    }
  }
}
```

**Requires environment variables:** `VMWARE_VKS_VCENTER01_PASSWORD` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What zw008/VMware-VKS does

zw008/VMware-VKS provides MCP tools and a command-line interface for VMware vSphere Kubernetes Service management. Its scope includes the Supervisor cluster, vSphere Namespaces, and Tanzu Kubernetes Clusters (TKCs). It can inspect compatibility, WCP status, Supervisor endpoints, storage policies, namespace configuration, cluster health, Kubernetes versions, VM classes, Harbor registry details, and namespace storage usage.

The management functions include creating and updating namespaces, creating and resizing TKCs, upgrading Kubernetes versions, and removing namespaces or clusters. Credential-oriented tools issue Supervisor or TKC kubeconfig data containing bearer-token credentials. Additional read operations expose Kubernetes VM Service snapshots, groups, and the network interfaces of a VM Service VirtualMachine.

## How it works

The CLI and MCP tools operate against a configured vCenter target. Supervisor-related operations use vCenter and Workload Management information, while Kubernetes calls are authorized using the permissions assigned to the relevant namespace. The access-information tool reports the account used by the server and whether it has the vSphere privileges associated with each tool at the root-folder level.

Several changes use a preview-first workflow. Namespace creation and TKC creation return a proposed operation unless confirmation is supplied; the CLI exposes the same pattern through commands such as `--apply`. Namespace deletion refuses to proceed when TKCs remain in the namespace, and TKC deletion includes a workload guard. These controls are intended to make destructive or consequential operations explicit before they are applied.

The Supervisor upgrade-risk check is an advisory for upgrades involving vCenter 8.0 Update 3 or 9.0.0–9.0.2 to 9.1.0 or 9.1.1. It does not measure the VUMDB schema or establish upgrade clearance, so its report should be used alongside Broadcom’s checker or remediation guidance and normal vCenter and Supervisor backups.

## Setup and configuration

Install the package with Python 3.10 or newer:

```bash
uv tool install vmware-vks
```

Create the configuration directory and copy the example configuration:

```bash
mkdir -p ~/.vmware-vks
cp config.example.yaml ~/.vmware-vks/config.yaml
```

Edit the YAML file with the vCenter host and username. Passwords are supplied through an environment variable named for each configured target. For a target called `vcenter01`, the example uses:

```bash
echo "VMWARE_VKS_VCENTER01_PASSWORD=your_password" > ~/.vmware-vks/.env
chmod 600 ~/.vmware-vks/.env
```

Run `vmware-vks check` to validate the setup. The target environment requires vSphere 8.0 or newer, Workload Management with WCP enabled on at least one compute cluster, and a VKS-eligible license such as vSphere Kubernetes Service Enterprise Plus or VMware Cloud Foundation.

For offline installation, build wheels on a connected machine with `pip wheel . -w dist` or `uv build`, transfer them to the isolated host, and install with `pip install --no-index --find-links dist vmware-vks`. A regular `pip install .` is supported from a source checkout.

## Tools and capabilities

- Check vCenter compatibility and WCP status, Supervisor state, Kubernetes API endpoint, storage policies, and upgrade-risk conditions.
- List, inspect, create, update, and delete vSphere Namespaces, including quotas, storage policies, roles, and status.
- List VM classes and supported Kubernetes versions for TKC sizing and deployment planning.
- List, inspect, create, scale, upgrade, and delete Tanzu Kubernetes Clusters.
- Issue Supervisor and TKC kubeconfig credentials inline or write them to owner-only files.
- Inspect embedded Harbor registry identity, version, URL, health, and storage consumption.
- Review namespace PVC usage and VM Service snapshots, groups, boot order, and multi-NIC details.
- Check the configured account and its vSphere privileges for the exposed tools.

## Limitations and notes

The project is community-driven and authored by a VMware engineer; it is not an official VMware product. Kubernetes calls rely on the namespace’s own permissions, which the access-information check does not evaluate. The upgrade-risk report is advisory and cannot inspect the VUMDB schema or confirm that an upgrade is safe. Kubeconfig tools issue bearer-token credentials, so inline output should be handled as sensitive data; file output uses owner-only permissions.

The package renamed its kubeconfig tools to `issue_supervisor_kubeconfig` and `issue_tkc_kubeconfig`. VM Service tools use the names `list_vm_service_snapshots`, `list_vm_service_groups`, and `list_vm_service_network_interfaces` to distinguish them from vSphere VM tools in related VMware MCP skills.

_Full upstream README: https://allmcps.com/mcp/zw008-vmware-vks/readme_

