diff --git a/checks/vm-mcp.nix b/checks/vm-mcp.nix index a33d75d..cdd0a7b 100644 --- a/checks/vm-mcp.nix +++ b/checks/vm-mcp.nix @@ -519,8 +519,12 @@ testers.runNixOSTest ( timeout=180, ) ) - assert len(still_there["resources"]) == 5, still_there - assert len(still_there["resourceTemplates"]) == 3, still_there + # Every one of them, unnarrowed: `--toolsets` is a tool budget and + # must not take the host's context away with it. Counted against + # the full listing above rather than against a literal, so the next + # resource added cannot make this pass by being forgotten. + assert len(still_there["resources"]) == len(uris), still_there + assert len(still_there["resourceTemplates"]) == len(templates), still_there # And a tool outside the selection must be unreachable, not merely # unlisted, or the flag is cosmetic.