Repository navigation
Releases
v1.26.0 (2026-11-19) — Compatible MCP result contracts
- Failed MCP calls add
structuredContent.vmware_errorwith stringerrorand nullablehint, retaining legacy text and structured business fields. SDK ToolError frames use the same view; success/preview values, Python tool returns, cancellation and audit/Policy behavior remain unchanged. - Export
page_envelopeandnext_offsetfor offset-capable tools. Keep the six existing list fields; add explicit offset/continuation metadata without inventing pagination on non-offset tools. - Dependent skill migrations follow this library release. VDI/PrivateAI retain their legacy truncated semantics and add only next_offset in this stage.
中文:失败帧新增统一错误视图,保留旧文本、业务字段、成功/预览结果与安全机制;提供公共分页 helper。先发布共享库再迁移组件,VDI/PrivateAI 本阶段保留旧 truncated 语义并增加 next_offset。
v1.25.0
v1.25.0 (2026-11-10) — Enforce VM resize limits from backend state
Implement CPU/memory percentage limits for the updated AIops backend using actual current sizing and configuration-version binding; malformed limits or required missing evidence fail closed. Isolate audit failure signals and credential redaction while preserving shared state and import aliases. Generic caller parameters do not establish a resize percentage; initial creation/clone tasks and other products are outside this scope; post-deployment resizing through this backend remains checked.
Validation: existing suites, complete CLI/MCP surface comparison, structural guard checks and security scanning; exact results are retained in the private release record. Live 9.1/Supervisor, PAIS, NSX and Horizon validation is not established by synthetic tests.
中文:本轮修复和重构范围见上述说明;保留既有 Policy、审计及确认门。合成测试不代表 9.1/Supervisor、PAIS、NSX 或 Horizon 正向真机验证。
v1.24.4 — audit error minimization and undo-store recovery
-
Update public author/project contact metadata to
zhouwei008@gmail.com. -
vmware-audit log --last,export --limitandundo-list --lastreject zero/negative bounds before store access. This prevents false-empty output and SQLite negative-limit exports that read every row. -
Raised MCP tool exceptions still audit as errors, but the row now stores only the scrubbed message and exception class. It no longer persists a traceback containing internal paths or caller data (HLD §8.2).
-
Undo storage retries initialization after a directory or database failure. Each lost inverse produces a parameter-free stderr warning; a successful platform operation still succeeds. Undo queries and status updates report storage errors explicitly instead of appearing empty, and the CLI renders those failures without a traceback.
v1.24.3 — a version-floor 404 no longer mentions an id
version_remedyno longer says "The id you passed is not the problem". It reached calls that take no id
(vmware-arialist_findingsandpromql_queryon an 8.x appliance), telling the agent about an argument it never
sent. It now says "Nothing you passed is the problem — the endpoint does not exist on this version", two
characters shorter, so a skill's 300-character error cap still keeps "Upgrade, or point at a 9.0+ appliance".
Found in the 2026-10-24 local conversation round.
v1.24.2 — failed calls are isError frames
- A call
@vmware_toolaudits as failed is now a failed MCP frame (isError: true). Measured 2026-10-18 with a
live gate over the family (handbookscripts/lib/tool_failures_set_iserror.py): about 270 of 349 tool calls in
13 of 14 skills (all but vmware-aiops) answered a failure —report_tool_failure+"Error: ...", or the{"error": ...}envelope — with
isError: false. The audit row saiderror, the frame said success. A client that reads only the frame took
those failures for successes; Pilot--dispatchalready caught the{"error": ...}envelope itself, but read
the string-shaped failures (mostly AVI's) as successes, including a failed undo during rollback. Only
vmware-aiops marked its own frames. - How: the decorator's own verdict marks the in-flight MCP request (outermost
@vmware_toolcall only — an inner
tool's failure that the outer tool recovered from does not count; a tool not wrapped in@vmware_toolis never
marked), andserve.configureinstalls atools/call
handler, for every transport including stdio, that re-wraps a marked result withisError: true. Content and
structuredContentare byte-identical; only the flag changes. Prose is still never read: a string is a failure
only when the tool declared it withreport_tool_failure, the rule the audit row already follows. New module
vmware_policy.frame. - Skills need no change: every family server starts through
run_server. Installs that resolve the newest Policy
(uvx,pip,uv tool install) get it with this release; the family's locked venvs get it on relock. - What counts is the audit row's rule (
_returned_failure): a top-level truthyerror, a one-row
[{"error": ...}],outcome: "failed"(so a Pilotrun_workflow/approvewhose workflow failed is anisError
frame), orreport_tool_failure. Known limit: a successful call that reports some other object's failure under
a top-levelerrorkey is now also anisErrorframe; no such tool was found, but the family has not been
surveyed for one. A marked frame skips the SDK's server-side output-schema re-check (FastMCP already validated
the result).
v1.24.1 — the audit row names the target a call used
- When a tool that acts on one target is called without its target argument, the audited parameters now also
carryresolved_target: the target the connection used, from the skill's role resolver (HLD §18). The
parameters the caller sent are recorded unchanged ("target": null). Before,vmware-audit logcould not say
which system such a call read. - "Acts on one target" follows the role check's scope rules: the tool takes the skill's target argument (AVI:
controller), or the skill's untargeted tools act on its default, and the skill has not tagged the tool as
reading every target or none. Tools such as Monitor'scross_vcenter_attentionor AVI's AKO tools get no
resolved_target. - Audit only:
guard(), the per-target breakers and the CLI see exactly the same target as before. - Needs a working resolver in the skill. Aria, Log-Insight, NSX, NSX-Security and VDI raised on every call before
their fixes, so until those releases their rows are recorded as before.
v1.24.0 — roles for network callers (HLD §18)
Several people or agents can share one HTTPS endpoint with different jobs. Existing tokens keep working as before
(as admin) until an operator runs vmware-audit roles enable; token create --role refuses until then. Two
things apply from this release either way: audit rows have a role column (empty until roles are enabled), and in
a server on a network transport a call with no authenticated caller is refused (a thread a tool started without
copying the caller's context, an internal path).
- Roles. Built-in
reader(read tools, every skill and target) andadmin(everything the server offers);
custom roles in$OPS_HOME/roles.yamlname, per skill,tools: read | "*",allow_write,allow_escapeand
targets, plusapprove: none | any | othersfor vmware-pilot. Every key is required and "all" is"*", so a
truncated file refuses a role instead of widening it; the file must be owner-only and owned by the server's user.
A role narrows what the server's account is used for; it never grants more than the account has. - Tokens with roles live in
<token file>.v2(name:sha256:role): an older vmware-policy on the same host can
neither read nor rewrite them.roles enablemoves every legacy token there (asadmin, or--assign NAME=ROLE)
and empties the legacy file, so older servers refuse every request rather than run unchecked. After that,
token createneeds--role. New:token set-role,token list --long,roles enable | list | check.
The v2 file must belong to the server's user and sit in a directory others cannot write. Re-runningroles enablefinishes a run that stopped between its two writes, and refuses legacy lines an oldervmware-audit
wrote after opt-in rather than making themadmin.roles checksays what it cannot check (tool names per
skill, composite reach): servers check those per call and name the tool when they refuse. - Enforced on every call in
@vmware_tool, before argument checks and deny rules: the tool, the target it
resolves to (a tool that reads every target needs targets"*"), and for a composite tool every tool it can run
(readertoo). Refusals are audited asdeniedwithrule=role:<name>and count toward the per-caller runaway
budget. A role that cannot be used is explained in the server's log; the caller is told to runroles check. - Escape tools (credentials, guest code, raw API paths, host files while
VMWARE_MCP_FILE_ROOTis set) need
allow_escape;readernever has them. - Per caller:
tools/listshows only what the role may call (not tools that read every target, for a
target-limited role); server instructions list target addresses toadminonly. A role change, and achmod
of the token or role file, applies from the token's next request. - Skills declare what policy cannot infer (
vmware_policy.roles.declare_role_metadata): escape tools, what
composite tools reach, how a missing target resolves. A skill that has not declared admitsadminonly. - Deny rules accept
roles:next toclients:. Token and role changes are audit rows (surfacecli), and a
server writes aroles_reloadrow with the file's SHA-256 and roles each timeroles.yamlchanges under it. - Host-path tools may not touch
<token file>.v2, its lock and temp files, orroles.yaml, wherever the token file
is. With roles enabled, a server whose tool registry cannot be read refuses to start. - A
PolicyDeniedraised inside a tool (vmware-pilot'sapprove, by role) is audited with its rule. token liststill prints one name per line;--longadds role and file.
v1.23.1 — tools may not touch this server's own control files (HLD §18 step 0)
- Security fix. Tools that read or write a path on the server host (guest file download/upload, OVA and
deployment-spec reads, kubeconfig output, bundle manifests) could reach this server's own files. Over HTTPS any
token holder could overwrite$OPS_HOME/mcp-tokensorrules.yaml, or upload a skill's.envinto a VM.
vmware_policy.hostpaths.check_host_pathnow refuses any path that resolves (~,..and symlinks included)
into$OPS_HOME, a~/.vmware-*skill directory, the directory of aVMWARE_*_CONFIGfile, or the token file and
TLS certificate/key a running server was started with.@vmware_toolchecks the family's host-path parameters
(local_path,ova_path,spec_path,manifest_path,output_path) before a tool runs, and each skill also
checks where it opens the file, so CLI, plans and workflows are covered. - Over a network transport, host files are off unless the operator opts in. Protecting the control files is not
enough when a token holder could still write~/.ssh/authorized_keysor the installed packages, or read other
secrets. Network callers may use host paths only insideVMWARE_MCP_FILE_ROOT(a directory the operator sets);
unset, every host path is refused. stdio and the CLI keep the control-file protection only. - Names are compared ignoring case (the default macOS filesystem would otherwise let
~/.VMWAREthrough) and by file
identity;/devand/procpaths are always refused. VMWARE_MCP_FILE_ROOTmust be an absolute path that is neither/nor the home directory or one of its parents —
the server refuses to start otherwise — and it is matched by exact name plus file identity. The network rule is
process-wide once a server is configured for a network transport, so a thread a tool starts cannot fall back to
the stdio rule.- Keep
OPS_HOMEa dedicated directory: everything inside it is off limits to these tools.
v1.23.0 — load-balancer health check, request correlation, role-less accounts
GET/HEAD /healthzwithout a token on the network transports, for a load balancer's probe. It answers
{"status": "ok"}and nothing else (no version, targets or tools), accepts anyHost(balancers probe by IP),
and every other path still requires the token.- Audit rows carry the caller's correlation id. The trace-id of a W3C
traceparentheader, else
X-Request-ID, elseX-Correlation-ID, reduced to[A-Za-z0-9._:-]and 128 characters, in a new
correlation_idcolumn (existing databases migrate in place; older rows, stdio and CLI read'').
vmware-audit log --correlation-id IDfilters by it, so a platform trace can be joined to this server's rows. - Role-less vSphere accounts (AIops#47).
vmware_policy.access.login_has_no_session(si)is True only when a login
succeeded, vCenter shows no session for it, and a container view on the root folder is refused
(NotAuthenticated / NoPermission) — so an account scoped to one folder, or holding only namespace permissions, is
never refused.no_role_message(target, cli)is the shared teaching error the vSphere skills raise at connect time.get_access_info's reason for a missing session now
names the role.
v1.22.0 — session pools and access self-diagnosis (HLD §16 D-13(2), §17 D-17)
- Session pools.
vmware_policy.pool.SessionPoolkeeps up toVMWARE_MCP_POOL_SIZE(default 2) sessions per
target. Over a network transport each call holds its own session per target for its whole body; tools return
plain data, so nothing reads the session after the call. A call that already holds a session never waits for
another target — it gets a temporary extra session instead — so multi-target calls cannot deadlock; a call that
waits more than 300 s gets an error naming the target. Outside a call (CLI, stdio) one cached session per target,
as before, kept apart from the pooled ones so it is never handed to a call. Sessions are compared by identity: pyVmomi ServiceInstances all compare equal. run_server(..., pooled=True). A skill whose connections come from a pool declares it; its calls on one
target then run side by side up to the pool size, and calls naming no target are no longer serialized. Skills
that do not declare it keep the 1.21.0 per-target gate.vmware_policy.access.vsphere_access_infofor each vSphere skill'sget_access_infotool: the target's
account, what a tool needs (from the skill's requirements table) and whether the current session holds it on the
root folder.not_granted_at_rootis not reported as no access; a failed lookup isundetermined, and a
summary with any undetermined tool says so rather than "granted". A table entry ofNonemarks a tool decided by a permission
vSphere cannot report here (e.g. a Supervisor namespace role): alwaysundetermined. If the target refuses the batch
(ESXi does not define vCenter-only privileges), each privilege is asked on its own, so only the ones it cannot
check becomeundetermined; if even System.View cannot be asked (a dead link), it stops there. Names that come from the platform (account, role, object) are sanitized;
unknown_tool_message(tool, requirements)lets a skill refuse a misspelled tool name before it connects.- Every offloaded call now runs in a call scope. A returned iterator is drained inside it.
- The per-skill config loader (
mtime_cached_loader) checks and reloads under a lock, so concurrent first calls
load once and cannot store a stale value.