
VMware AVI
io.github.zw008由 GitHub 账号 zw008 发布v1.8.8更新于 Oct 28, 2026
VMware AVI (NSX ALB) load balancer plus AKO Kubernetes ops — 29 MCP tools.
概览
面向 VMware AVI(NSX ALB)负载均衡与 AKO Kubernetes 运维的 MCP 服务器,提供 28 个工具,覆盖虚拟服务、资源池、证书与 AKO 诊断。
- 可以做什么
- 列出虚拟服务、查看状态并启用或停用
- 发现负载均衡资源池、列出成员及健康状态,并对单个成员摘流或恢复流量
- 列出 SSL 证书并检查到期时间,读取虚拟服务分析与请求错误日志
- 列出 Service Engine 并检查其健康状态
- 查看 AKO Pod 状态、日志、版本并重启,查看、对比或升级 AKO Helm 配置
- 校验 Ingress 注解、映射 Ingress 到虚拟服务、诊断缺失的虚拟服务,并对比或强制 K8s 与 Controller 同步
- 适用场景
- 适合平台或网络工程师借助 AI 助手排查 AVI/NSX ALB 负载均衡与基于 AKO 的 Kubernetes Ingress 问题:维护窗口内摘除资源池成员、审计证书到期,或查明某个 Ingress 为何没有生成虚拟服务。
- 运行要求
- 需要本地 Python 环境(用 uv tool install 或 pip install 安装 vmware-avi 包),并以 mcp 子命令启动。需要 ~/.vmware-avi/config.yaml 配置 AVI Controller 主机、用户名、租户与 API 版本,并在 ~/.vmware-avi/.env 中以 {CONTROLLER_NAME_UPPER}_PASSWORD 形式提供控制器密码。AKO 相关功能需要 kubeconfig 与 kubectl 访问权限,并需能访问 Controller 网络。
安装
在 SourceWeft 中
- 打开 控制台中的 VMware AVI,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
VMware AVI
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 | 中文
AVI (NSX Advanced Load Balancer) management and AKO Kubernetes operations tool — 28 tools across 10 categories.
Dual mode: Traditional AVI Controller management + AKO K8s operations in one skill.
Companion skills handle everything else:
[PyPI] [Python] [License: MIT] [ClawHub]
Upgrading to 2.0
2.0 renames all 28 MCP tools so every name starts with a verb (e.g. ako_amko_status → get_ako_amko_status, ako_clusters → list_ako_clusters, ako_config_diff → diff_ako_config). 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 — 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 Install
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:
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
Configuration
Step 1: Create Config Directory
Step 2: Edit config.yaml
Step 3: Set Passwords
Create ~/.vmware-avi/.env:
Password environment variable naming convention:
Step 4: Verify
CLI Usage
Virtual Service Management
Pool Member Drain / Restore
SSL Certificate Expiry Check
Analytics and Error Logs
Service Engine Health
AKO Troubleshooting
AKO Helm Config Management
The AKO Helm release is discovered automatically (official installs use
helm install --generate-name, so the release is not named ako). Upgrades pull
the official Broadcom OCI chart
oci://projects.packages.broadcom.com/ako/helm-charts/ako with --reuse-values.
Ingress Diagnostics
Sync Diagnostics
Multi-cluster AKO
MCP Server
The MCP server exposes all 28 tools via the Model Context Protocol. Works with any MCP-compatible client.
After uv tool install vmware-avi, start the MCP server with one command (v1.5.15+):
Claude Desktop Config
Add to 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-avi mcpform above (no network needed), or setUV_NATIVE_TLS=true.
MCP Tools (28)
Common Workflows
1. Maintenance Window -- Drain a Pool Member
When taking a backend server offline for patching:
- List pool members and health status
- Disable the target server (graceful drain)
- Monitor analytics to confirm active connections are draining
- Perform maintenance on the server
- Re-enable the server
- Verify health status is green
2. AKO Ingress Not Creating VS
When a developer reports their Ingress is not producing a Virtual Service:
- Verify AKO is running
- Validate Ingress annotations
- Check sync status between K8s and Controller
- If annotations are wrong, diagnose the specific Ingress
- If sync drift is detected, review the diff and force resync if needed
3. SSL Certificate Expiry Audit
Expired certificates cause outages. Run periodic checks:
- Check all certificates expiring within 30 days
- Review which VS uses each expiring certificate (output includes VS mapping)
- Plan renewal with the certificate team
- After renewal, verify the new certificate is in place
Troubleshooting
"Controller unreachable" error
- Run
vmware-avi doctorto verify connectivity - Check if the controller address and port are correct in
~/.vmware-avi/config.yaml - For self-signed certs: set
verify_ssl: falsein config.yaml (lab environments only)
AKO Pod in CrashLoopBackOff
- Check logs:
vmware-avi ako logs --tail 50 - Common causes: wrong controller IP in values.yaml, network policy blocking AKO to Controller, expired credentials
- Fix config:
vmware-avi ako config showto inspect, thenvmware-avi ako config upgradewith corrected values (release auto-discovered; pulls the official Broadcom OCI chart)
Ingress created but no VS on Controller
- Validate annotations:
vmware-avi ako ingress check <namespace> - Check AKO logs for rejection reason:
vmware-avi ako logs --since 5m - Run sync diff:
vmware-avi ako sync diffto see if the object is stuck
Pool member shows "down" after enable
Health monitor may still be failing. The member is enabled but unhealthy. Check the actual health status on the Controller side. Fix the backend service first, then the health status will auto-recover.
SSL expiry check shows 0 certificates
Verify the controller connection has tenant-level access. Certificates are tenant-scoped in AVI. The configured user may only see certs in their tenant.
AKO sync force has no effect
Force resync triggers AKO to re-reconcile all K8s objects. If the drift persists, the issue is likely in the K8s resource definition itself (bad annotation, missing secret). Use vmware-avi ako ingress diagnose to pinpoint the root cause.
Safety Features
Security Details
- Source Code: github.com/vmware-skills/VMware-AVI
- Config File Contents:
config.yamlstores controller addresses, usernames, and AKO settings. No passwords or tokens. All secrets stored exclusively in.env - Webhook Data Scope: Disabled by default. No third-party data transmission
- TLS Verification: Enabled by default. Disable only for self-signed certificate environments
- Prompt Injection Protection:
_sanitize()truncation + control character cleanup on all AVI API responses - Least Privilege: Use a dedicated AVI service account with minimal permissions. AKO operations require only namespace-scoped kubeconfig access
Companion Skills
Version Compatibility
Official Broadcom References
- SDKs: https://developer.broadcom.com/sdks — VCF Python SDK
- REST APIs: https://developer.broadcom.com/xapis — AVI Controller REST API
- CLI Tools: https://developer.broadcom.com/tools — VCF PowerCLI 9.1
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-avi 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. - The audit log records each caller as
token:<name>. Calls run side by side: each holds its own session to a Controller (or Kubernetes context), up toVMWARE_MCP_POOL_SIZE(default 2) sessions per target. Each Controller session is a login on the Controller; a call waits at most 300 s for a free 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-avi/references/setup-guide.md ("Serving MCP over HTTPS", "Limiting which tools are offered").
License
MIT
来源:README.md,提交 33318c2
工具
0版本历史
1- v1.8.8最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。