
VMware VDI (Horizon)
io.github.vmware-skills由 GitHub 帳號 vmware-skills 發布v2.4.1更新於 Oct 25, 2026
VMware/Omnissa Horizon VDI ops: pools, sessions, machines, images — 27 MCP tools.
概覽
面向 VMware/Omnissa Horizon VDI 維運的 MCP 伺服器與命令列工具,可檢視桌面集區、工作階段、機器、映像與事件,並執行受控的日常維運操作。
- 可以做什麼
- 檢視健康狀態、工作階段、機器與 Horizon 事件,並讀取工作階段併發數與各桌面集區使用率統計
- 列出並檢視桌面集區、RDS 農場、已發佈應用程式集區、授權、即時複製映像與 AD 使用者
- 啟用或停用桌面集區,新增或移除授權
- 對工作階段與機器執行操作:登出、中斷連線、傳送訊息、重設、進入維護模式或移除
- 追蹤與取消工作,並向桌面集區推送新的黃金映像
- 適用情境
- 適合 Horizon 8.x 或 Omnissa Horizon 的 VDI 服務台與日常維運:找出卡在故障桌面上的使用者、登出使用者、排查桌面集區無法佈建的原因,或在夜間向集區推送修補映像。
- 執行需求
- 以 Python 套件形式在本機透過 stdio 執行(uvx 或已安裝的命令列腳本)。需要 Horizon Connection Server 主機、管理員使用者名稱、AD 網域與密碼,透過 init 精靈設定,設定檔路徑由 VMWARE_VDI_CONFIG 指定(預設 ~/.vmware-vdi/config.yaml)。需要能連線至 Connection Server 的網路,預設啟用 TLS 驗證。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 VMware VDI (Horizon),將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
VMware VDI (Horizon)
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.
AI-powered intelligent operations for VMware / Omnissa Horizon VDI — manage desktop pools, RDS farms, published apps, user sessions, desktop machines, entitlements, instant-clone images, and Horizon events/health/statistics through the Horizon 8 Connection Server REST API. Ships as both an MCP server (for AI agents) and a CLI (for help-desk and scripting). Part of the VMware skill family.
Disclaimer: Community-maintained open-source project, not affiliated with, endorsed by, or sponsored by VMware, Inc., Broadcom Inc., or Omnissa, LLC. "VMware", "Horizon", and "Omnissa" are trademarks of their respective owners. Source is publicly auditable under the MIT license.
Status: v1.0.0 (beta). REST endpoints are verified against the official Horizon Server API; GET-response field projections are defensive and pending validation against a live Connection Server (a field-name mismatch yields empty results, not a crash — see the beta note).
Upgrading to 2.0
2.0 renames all 27 MCP tools so every name starts with a verb (e.g. ad_user_search → search_ad_users, app_pool_list → list_app_pools, entitlement_add → add_entitlement). 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.
Why vmware-vdi
Every other VMware family skill stops at the vСenter VM. A Horizon desktop pool sits on those VMs —
so vmware-aiops can reset the backing VM, but it cannot see a user session, log a user off, disable a
pool, or push a golden image. vmware-vdi fills exactly that day-2 VDI gap — "who is stuck on a broken
desktop", "log this user off so their profile unlocks", "why is this pool not provisioning", "push the
patched image to Finance tonight" — with the family's governed-ops harness: every write is audited,
previews its blast radius, and is authorized by the Horizon account's own RBAC role.
Capabilities — 27 MCP tools (16 read / 11 write)
Reads are strictly non-destructive. Writes preview their blast radius, double-confirm at the CLI, and
are audit-logged to ~/.vmware/audit.db. push_desktop_pool_image recreates every desktop in a pool — the
highest single-call blast radius in the family — and its preview states affected-desktop and
in-session counts before any confirm, together with occupancy: determined when those counts
can be believed, unknown when sessions exist that cannot be attributed to any pool or farm. An
unknown occupancy refuses the confirm rather than reporting an unverified zero; overriding it
needs --acknowledge-unknown-occupancy and is recorded in the audit row. A machine that names no
desktop pool also makes the desktop count a lower bound ("at least N"); that refuses the confirm
with no override.
On MCP, every gated write takes confirm (default false). A call without it returns blast_radius —
the object's identity, counts, identifiers up to 20, blockers and unmeasured — and changes nothing;
the acting response carries the same dict. An agent should show it to the user and pass confirm=true
only after they agree. When something the blast radius depends on could not be read — a machine's
state, a session's user, a task's type or state, a pool's enabled flag, a pool's current entitlements —
confirm=true is refused with a message naming what to check.
Quick start
vmware-vdi init prompts for the Connection Server host, admin username, AD domain, and password; writes
~/.vmware-vdi/config.yaml + a 0600 .env (password obfuscated); tests the login; and on success
discovers your pools, machines, and sessions with the next commands to try.
Example workflows
Help-desk — a user's desktop is stuck
Patch night — push a new golden image
MCP server
Using the installed vmware-vdi mcp console script (not uvx) avoids a PyPI re-resolve on every launch —
important behind enterprise TLS proxies.
Supported versions
- VMware Horizon 8.x (primary) — Connection Server REST API
/rest/v1. - Latest Omnissa Horizon (2406 / 2412+) — same
/rest/v1lineage.
Security
- Authorization = Horizon RBAC. The skill does not gate read vs write; point a target at a read-only Horizon admin role and every write is refused at the Connection Server, un-bypassably.
- Credentials live only in
~/.vmware-vdi/.env(0600, obfuscatedb64:at rest); config files hold host/username/domain only. InjectVMWARE_VDI_<TARGET>_PASSWORDfrom a secret manager for real secrecy. - TLS verification on by default. All Connection-Server text is
sanitize()d against prompt injection. - No outbound calls except to the configured Connection Server — no webhooks, no telemetry.
See SECURITY.md and skills/vmware-vdi/references/setup-guide.md.
Beta note
REST endpoints are verified against the official Horizon Server API operation index. GET-response
field names (and a few write bodies) are defensive (.get() with fallbacks) and pending validation
against a live Connection Server. On a field-name mismatch a list reads empty rather than crashing.
First real-Horizon use should run vmware-vdi init and confirm the session/machine/pool projections;
please file an issue with raw *_get output if a projection
looks empty. Quality: 32 regression tests, ruff clean, bandit 0, tool endpoints pinned to a verified spec.
Companion skills
Part of the VMware skill family — install the modules you need:
- vmware-aiops — the vCenter VMs backing the desktops (power, snapshot, clone, migrate)
- vmware-monitor — read-only vSphere monitoring
- vmware-nsx-security — desktop network microsegmentation
- vmware-aria · vmware-nsx · vmware-storage · vmware-vks · vmware-avi · vmware-harden
Remote access (HTTPS) and limiting tools
By default vmware-vdi 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, with or without a target: each target keeps up toVMWARE_MCP_POOL_SIZEsessions (default 2), and each session is a login on the target. A call that finds them all busy 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-vdi/references/setup-guide.md ("Serving MCP over HTTPS", "Limiting which tools are offered").
License
MIT — see LICENSE.
來源:README.md,提交 0c49764
工具
0版本歷史
9- v2.4.1最新Oct 18, 2026
- v2.4.0Oct 16, 2026
- v2.3.0Oct 15, 2026
- v2.2.0Oct 15, 2026
- v2.1.0Oct 15, 2026
- v2.0.0Oct 14, 2026
- v1.3.0Sep 20, 2026
- v1.2.0Sep 19, 2026
- v1.1.1Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分