Skip to main content

mas-automation-cli

AI-powered test automation CLI for NetScaler Console (MAS/ADM) functional test cases.

Connects to StarWars (Citrix internal test case database), Claude AI (script generation), and a live MAS + VPX lab environment — automating the entire discover → generate → execute → report cycle.


Install

# With AI support (recommended)
pip install "mas-automation-cli[ai]"

# Standard (no AI generation)
pip install mas-automation-cli

Requires Python 3.8+. For AI features, also set one of:

  • ANTHROPIC_API_KEY — Anthropic direct API
  • ANTHROPIC_VERTEX_PROJECT_ID — Google Cloud Vertex AI (contact your team admin for project details)

Quick start

# 1. First-time setup: MAS/VPX/SDK credentials + AI provider
mas-cli init

# 2. Verify everything is reachable (run every session)
mas-cli health-check

# 3. Preview what automate will do — safe, no files written
mas-cli automate 111.3 --dry-run

# 4. Generate + execute all missing test cases for a folder
mas-cli automate 111.3

What mas-cli automate does

mas-cli automate <folder> runs a 7-step pipeline:

Step What happens
Preflight Checks AI + StarWars MCP + Atlassian — blocks if any required service is down
1. Infra config Interactive setup (skipped if already configured)
2. Validate infra Pings MAS, VPX, SDK
3. Agent + StarWars Fetches all TC IDs for the folder (automated + pending)
3.5. Folder cleanup Moves stale legacy scripts to BACKUP/ — runs even in dry-run
4. Analyze Counts total / automated / broken / pending vs StarWars ground truth
5. Generate Fetches procedures from StarWars → Claude generates Python test scripts
6. Execute Runs all tests via asterix.py against live MAS lab
7. Summary StarWars coverage breakdown + pass/fail counts

Example summary output:

  --- StarWars (Source of Truth) ---
  Total TCs in folder:       899
    Automated in StarWars:   790  (have scripts in some system)
    Not automated anywhere:  109  (first-time automation targets)

  --- Coverage ---
  Before this run:           112/899  (12%)
  After  this run:           901/899  (100%)
  Added by mas-cli:          +789 script(s)

Commands

Command Description
mas-cli init First-time setup: MAS/VPX/SDK + AI credentials
mas-cli health-check 9-point tiered health check (5 core + 3 required + 1 advisory)
mas-cli automate <prefix> Full AI pipeline: cleanup → StarWars → generate → execute → report
mas-cli automate <prefix> --dry-run Preview only — cleanup runs, no files written
mas-cli automate <prefix> --skip-generate Skip AI generation, run existing scripts + show coverage
mas-cli automate <prefix> --skip-execute Generate scripts only, skip test execution
mas-cli test <id> Run one test or all tests matching a prefix
mas-cli suite <name> Run an entire STF suite
mas-cli list-tests List all tests registered in the suite
mas-cli config-show Show current config (passwords masked)

Health check tiers

mas-cli health-check
Tier Checks Blocks if down
CORE (5) Framework, config, SDK, helper modules, OpenSSL mas-cli test
REQUIRED (3) AI (Claude API), StarWars MCP, Atlassian MCP mas-cli automate
ADVISORY (1) citrix-documentation MCP Nothing — [WARN] only

Requirements

  • Python 3.8+
  • Access to a NetScaler MAS lab environment
  • Test case MCP server reachable — requires Citrix internal network / VPN (contact your team for server details)
  • Claude AI: Anthropic API key or Vertex AI credentials


License

Copyright 2026 NetScaler Team

Metadata

Release files for mas-automation-cli 1.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mas-automation-cli 1.3.2
File Size Uploaded Provenance Actions
mas_automation_cli-1.3.2.tar.gz 36.9 kB Without provenance Details for mas_automation_cli-1.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mas-automation-cli 1.3.2
File Interpreter ABI Platform Actions
mas_automation_cli-1.3.2-py3-none-any.whl Python 3 none any Details for mas_automation_cli-1.3.2-py3-none-any.whl

Total release size: 79.2 kB

Release files / mas_automation_cli-1.3.2.tar.gz

Download URL mas_automation_cli-1.3.2.tar.gz
Size 36.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5e0f279bb95be793c878578e32c918f5b26f879be3890d53bfa49930e97386e9
BLAKE2b-256 checksum
How to use checksums
f9b4d28129c1da9f19081a5999f02395b325f74f7bd7422b2d287f5a56235ce4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / mas_automation_cli-1.3.2-py3-none-any.whl

Download URL mas_automation_cli-1.3.2-py3-none-any.whl
Size 42.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6d538ab520d2473a44524a27dee5b431f4940674347d275ebb9df736cccacbb
BLAKE2b-256 checksum
How to use checksums
98f62ed5ccf6af32d79703ee583a24f1298c1bc9d51c15d44e8d6e8db6ef5478
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for mas-automation-cli 1.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page