Skip to content

Releases

v1.26.0 (2026-11-19) — Compatible MCP result contracts

Choose a tag to compare

@zw008 zw008 released this 19 Nov 03:14
57091e6
  • Failed MCP calls add structuredContent.vmware_error with string error and nullable hint, 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_envelope and next_offset for 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

Choose a tag to compare

@zw008 zw008 released this 10 Nov 16:14
0c6a505

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

Choose a tag to compare

@zw008 zw008 released this 08 Nov 13:54
83ad67f
  • Update public author/project contact metadata to zhouwei008@gmail.com.

  • vmware-audit log --last, export --limit and undo-list --last reject 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

Choose a tag to compare

@zw008 zw008 released this 24 Oct 13:03
853be73
  • version_remedy no longer says "The id you passed is not the problem". It reached calls that take no id
    (vmware-aria list_findings and promql_query on 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

Choose a tag to compare

@zw008 zw008 released this 18 Oct 03:44
  • A call @vmware_tool audits as failed is now a failed MCP frame (isError: true). Measured 2026-10-18 with a
    live gate over the family (handbook scripts/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 said error, the frame said success. A client that reads only the frame took
    those failures for successes; Pilot --dispatch already 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_tool call only — an inner
    tool's failure that the outer tool recovered from does not count; a tool not wrapped in @vmware_tool is never
    marked), and serve.configure installs a tools/call
    handler, for every transport including stdio, that re-wraps a marked result with isError: true. Content and
    structuredContent are byte-identical; only the flag changes. Prose is still never read: a string is a failure
    only when the tool declared it with report_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 truthy error, a one-row
    [{"error": ...}], outcome: "failed" (so a Pilot run_workflow/approve whose workflow failed is an isError
    frame), or report_tool_failure. Known limit: a successful call that reports some other object's failure under
    a top-level error key is now also an isError frame; 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

Choose a tag to compare

@zw008 zw008 released this 18 Oct 01:37
  • When a tool that acts on one target is called without its target argument, the audited parameters now also
    carry resolved_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 log could 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's cross_vcenter_attention or 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)

Choose a tag to compare

@zw008 zw008 released this 16 Oct 07: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) and admin (everything the server offers);
    custom roles in $OPS_HOME/roles.yaml name, per skill, tools: read | "*", allow_write, allow_escape and
    targets, plus approve: none | any | others for 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 enable moves every legacy token there (as admin, or --assign NAME=ROLE)
    and empties the legacy file, so older servers refuse every request rather than run unchecked. After that,
    token create needs --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-running roles enable finishes a run that stopped between its two writes, and refuses legacy lines an older vmware-audit
    wrote after opt-in rather than making them admin. roles check says 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
    (reader too). Refusals are audited as denied with rule=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 run roles check.
  • Escape tools (credentials, guest code, raw API paths, host files while VMWARE_MCP_FILE_ROOT is set) need
    allow_escape; reader never has them.
  • Per caller: tools/list shows only what the role may call (not tools that read every target, for a
    target-limited role); server instructions list target addresses to admin only. A role change, and a chmod
    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 admits admin only.
  • Deny rules accept roles: next to clients:. Token and role changes are audit rows (surface cli), and a
    server writes a roles_reload row with the file's SHA-256 and roles each time roles.yaml changes under it.
  • Host-path tools may not touch <token file>.v2, its lock and temp files, or roles.yaml, wherever the token file
    is. With roles enabled, a server whose tool registry cannot be read refuses to start.
  • A PolicyDenied raised inside a tool (vmware-pilot's approve, by role) is audited with its rule.
  • token list still prints one name per line; --long adds role and file.

v1.23.1 — tools may not touch this server's own control files (HLD §18 step 0)

Choose a tag to compare

@zw008 zw008 released this 16 Oct 02:55
  • 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-tokens or rules.yaml, or upload a skill's .env into a VM.
    vmware_policy.hostpaths.check_host_path now refuses any path that resolves (~, .. and symlinks included)
    into $OPS_HOME, a ~/.vmware-* skill directory, the directory of a VMWARE_*_CONFIG file, or the token file and
    TLS certificate/key a running server was started with. @vmware_tool checks 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_keys or the installed packages, or read other
    secrets. Network callers may use host paths only inside VMWARE_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 ~/.VMWARE through) and by file
    identity; /dev and /proc paths are always refused.
  • VMWARE_MCP_FILE_ROOT must 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_HOME a dedicated directory: everything inside it is off limits to these tools.

v1.23.0 — load-balancer health check, request correlation, role-less accounts

Choose a tag to compare

@zw008 zw008 released this 16 Oct 00:10
  • GET/HEAD /healthz without 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 any Host (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 traceparent header, else
    X-Request-ID, else X-Correlation-ID, reduced to [A-Za-z0-9._:-] and 128 characters, in a new
    correlation_id column (existing databases migrate in place; older rows, stdio and CLI read '').
    vmware-audit log --correlation-id ID filters 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)

Choose a tag to compare

@zw008 zw008 released this 15 Oct 14:40
  • Session pools. vmware_policy.pool.SessionPool keeps up to VMWARE_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_info for each vSphere skill's get_access_info tool: 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_root is not reported as no access; a failed lookup is undetermined, and a
    summary with any undetermined tool says so rather than "granted". A table entry of None marks a tool decided by a permission
    vSphere cannot report here (e.g. a Supervisor namespace role): always undetermined. 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 become undetermined; 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.