accessibility-agents icon indicating copy to clipboard operation
accessibility-agents copied to clipboard

one line install throws an error.

Open stickbear2015 opened this issue 8 months ago • 10 comments

steps to reproduce

  • checkout latest repo data with git pull --all -v
  • run ./install.ps1 | iex as that's really what the command in the readme's actually doing.

expected results

install should go off without an error

actual results

see output below ---begin output log--- accessibility-agents> ./install.ps1 | iex

A11y Agent Team Installer
Built by Taylor Arndt

Where would you like to install?

  1. Project - Install to .claude\ in the current directory
    (recommended, check into version control)

  2. Global - Install to ~.claude\
    (available in all your projects)

Choose [1/2]: 2

Installing globally to: C:\Users\spopp.claude

Copying agents...
+ a11y-tool-builder
+ accessibility-lead
+ accessibility-regression-detector
+ accessibility-statement
+ actions-manager
+ alt-text-headings
+ analytics
+ aria-specialist
+ ci-accessibility
+ cognitive-accessibility
+ compliance-mapping
+ contrast-master
+ contributions-hub
+ cross-document-analyzer
+ cross-page-analyzer
+ daily-briefing
+ data-visualization-accessibility
+ design-system-auditor
+ desktop-a11y-specialist
+ desktop-a11y-testing-coach
+ developer-hub
+ document-accessibility-wizard
+ document-csv-reporter
+ document-inventory
+ email-accessibility
+ epub-accessibility
+ epub-scan-config
+ excel-accessibility
+ forms-specialist
+ github-hub
+ i18n-accessibility
+ insiders-a11y-tracker
+ issue-tracker
+ keyboard-navigator
+ lighthouse-bridge
+ link-checker
+ live-region-controller
+ markdown-a11y-assistant
+ markdown-csv-reporter
+ markdown-fixer
+ markdown-scanner
+ media-accessibility
+ mobile-accessibility
+ modal-specialist
+ nexus
+ notifications-manager
+ nvda-addon-specialist
+ office-remediator
+ office-scan-config
+ pdf-accessibility
+ pdf-remediator
+ pdf-scan-config
+ performance-accessibility
+ playwright-scanner
+ playwright-verifier
+ powerpoint-accessibility
+ pr-review
+ projects-manager
+ python-specialist
+ release-manager
+ repo-admin
+ repo-manager
+ scanner-bridge
+ screen-reader-lab
+ security-dashboard
+ tables-data-specialist
+ team-manager
+ template-builder
+ testing-coach
+ text-quality-reviewer
+ wcag-aaa
+ wcag-guide
+ wcag3-preview
+ web-accessibility-wizard
+ web-component-specialist
+ web-csv-reporter
+ web-issue-fixer
+ wiki-manager
+ word-accessibility
+ wxpython-specialist
Install Copilot agents? [y/N]: y

Would you also like to install GitHub Copilot agents?
This adds accessibility agents for Copilot Chat in VS Code/GitHub.

Storing Copilot agents centrally...
+ a11y-tool-builder
+ accessibility-lead
+ accessibility-regression-detector
+ accessibility-statement
+ actions-manager
+ alt-text-headings
+ analytics
+ aria-specialist
+ ci-accessibility
+ cognitive-accessibility
+ compliance-mapping
+ contrast-master
+ contributions-hub
+ cross-document-analyzer
+ cross-page-analyzer
+ daily-briefing
+ data-visualization-accessibility
+ design-system-auditor
+ desktop-a11y-specialist
+ desktop-a11y-testing-coach
+ developer-hub
+ document-accessibility-wizard
+ document-csv-reporter
+ document-inventory
+ email-accessibility
+ epub-accessibility
+ epub-scan-config
+ excel-accessibility
+ forms-specialist
+ github-hub
+ i18n-accessibility
+ insiders-a11y-tracker
+ issue-tracker
+ keyboard-navigator
+ lighthouse-bridge
+ link-checker
+ live-region-controller
+ markdown-a11y-assistant
+ markdown-csv-reporter
+ markdown-fixer
+ markdown-scanner
+ media-accessibility
+ mobile-accessibility
+ modal-specialist
+ nexus
+ notifications-manager
+ nvda-addon-specialist
+ office-remediator
+ office-scan-config
+ pdf-accessibility
+ pdf-remediator
+ pdf-scan-config
+ performance-accessibility
+ playwright-scanner
+ playwright-verifier
+ powerpoint-accessibility
+ pr-review
+ projects-manager
+ python-specialist
+ release-manager
+ repo-admin
+ repo-manager
+ scanner-bridge
+ screen-reader-lab
+ security-dashboard
+ tables-data-specialist
+ team-manager
+ template-builder
+ testing-coach
+ text-quality-reviewer
+ wcag-aaa
+ wcag-guide
+ wcag3-preview
+ web-accessibility-wizard
+ web-component-specialist
+ web-csv-reporter
+ web-issue-fixer
+ wiki-manager
+ word-accessibility
+ wxpython-specialist

[found] VS Code
Copied 80 agents, 128 prompts, 9 instructions

To copy Copilot agents into a specific project:
powershell -File "C:\Users\spopp.a11y-agent-team\a11y-copilot-init.ps1"

Install Copilot CLI agents? [y/N]: y

Would you also like to install Copilot CLI agents?
This adds agents to ~/.copilot/ for 'copilot' CLI use.
(For VS Code Copilot Chat extension, the --copilot option above is used)

Installing Copilot CLI agents...
~ a11y-tool-builder.agent.md (skipped - exists)
~ accessibility-lead.agent.md (skipped - exists)
~ accessibility-regression-detector.agent.md (skipped - exists)
~ accessibility-statement.agent.md (skipped - exists)
~ actions-manager.agent.md (skipped - exists)
~ alt-text-headings.agent.md (skipped - exists)
~ analytics.agent.md (skipped - exists)
~ aria-specialist.agent.md (skipped - exists)
~ ci-accessibility.agent.md (skipped - exists)
~ cognitive-accessibility.agent.md (skipped - exists)
~ compliance-mapping.agent.md (skipped - exists)
~ contrast-master.agent.md (skipped - exists)
~ contributions-hub.agent.md (skipped - exists)
~ cross-document-analyzer.agent.md (skipped - exists)
~ cross-page-analyzer.agent.md (skipped - exists)
~ daily-briefing.agent.md (skipped - exists)
~ data-visualization-accessibility.agent.md (skipped - exists)
~ design-system-auditor.agent.md (skipped - exists)
~ desktop-a11y-specialist.agent.md (skipped - exists)
~ desktop-a11y-testing-coach.agent.md (skipped - exists)
~ developer-hub.agent.md (skipped - exists)
~ document-accessibility-wizard.agent.md (skipped - exists)
~ document-csv-reporter.agent.md (skipped - exists)
~ document-inventory.agent.md (skipped - exists)
~ email-accessibility.agent.md (skipped - exists)
~ epub-accessibility.agent.md (skipped - exists)
~ epub-scan-config.agent.md (skipped - exists)
~ excel-accessibility.agent.md (skipped - exists)
~ forms-specialist.agent.md (skipped - exists)
~ github-hub.agent.md (skipped - exists)
~ i18n-accessibility.agent.md (skipped - exists)
~ insiders-a11y-tracker.agent.md (skipped - exists)
~ issue-tracker.agent.md (skipped - exists)
~ keyboard-navigator.agent.md (skipped - exists)
~ lighthouse-bridge.agent.md (skipped - exists)
~ link-checker.agent.md (skipped - exists)
~ live-region-controller.agent.md (skipped - exists)
~ markdown-a11y-assistant.agent.md (skipped - exists)
~ markdown-csv-reporter.agent.md (skipped - exists)
~ markdown-fixer.agent.md (skipped - exists)
~ markdown-scanner.agent.md (skipped - exists)
~ media-accessibility.agent.md (skipped - exists)
~ mobile-accessibility.agent.md (skipped - exists)
~ modal-specialist.agent.md (skipped - exists)
~ nexus.agent.md (skipped - exists)
~ notifications-manager.agent.md (skipped - exists)
~ nvda-addon-specialist.agent.md (skipped - exists)
~ office-remediator.agent.md (skipped - exists)
~ office-scan-config.agent.md (skipped - exists)
~ pdf-accessibility.agent.md (skipped - exists)
~ pdf-remediator.agent.md (skipped - exists)
~ pdf-scan-config.agent.md (skipped - exists)
~ performance-accessibility.agent.md (skipped - exists)
~ playwright-scanner.agent.md (skipped - exists)
~ playwright-verifier.agent.md (skipped - exists)
~ powerpoint-accessibility.agent.md (skipped - exists)
~ pr-review.agent.md (skipped - exists)
~ projects-manager.agent.md (skipped - exists)
~ python-specialist.agent.md (skipped - exists)
~ release-manager.agent.md (skipped - exists)
~ repo-admin.agent.md (skipped - exists)
~ repo-manager.agent.md (skipped - exists)
~ scanner-bridge.agent.md (skipped - exists)
~ screen-reader-lab.agent.md (skipped - exists)
~ security-dashboard.agent.md (skipped - exists)
~ tables-data-specialist.agent.md (skipped - exists)
~ team-manager.agent.md (skipped - exists)
~ template-builder.agent.md (skipped - exists)
~ testing-coach.agent.md (skipped - exists)
~ text-quality-reviewer.agent.md (skipped - exists)
~ wcag-aaa.agent.md (skipped - exists)
~ wcag-guide.agent.md (skipped - exists)
~ wcag3-preview.agent.md (skipped - exists)
~ web-accessibility-wizard.agent.md (skipped - exists)
~ web-component-specialist.agent.md (skipped - exists)
~ web-csv-reporter.agent.md (skipped - exists)
~ web-issue-fixer.agent.md (skipped - exists)
~ wiki-manager.agent.md (skipped - exists)
~ word-accessibility.agent.md (skipped - exists)
~ wxpython-specialist.agent.md (skipped - exists)
~ accessibility-rules/ (skipped - exists)
~ ci-integration/ (skipped - exists)
~ cognitive-accessibility/ (skipped - exists)
~ data-visualization-accessibility/ (skipped - exists)
~ design-system/ (skipped - exists)
~ document-scanning/ (skipped - exists)
~ email-accessibility/ (skipped - exists)
~ framework-accessibility/ (skipped - exists)
~ github-a11y-scanner/ (skipped - exists)
~ github-analytics-scoring/ (skipped - exists)
~ github-scanning/ (skipped - exists)
~ github-workflow-standards/ (skipped - exists)
~ help-url-reference/ (skipped - exists)
~ legal-compliance-mapping/ (skipped - exists)
~ lighthouse-scanner/ (skipped - exists)
~ markdown-accessibility/ (skipped - exists)
~ media-accessibility/ (skipped - exists)
~ mobile-accessibility/ (skipped - exists)
~ office-remediation/ (skipped - exists)
~ playwright-testing/ (skipped - exists)
~ python-development/ (skipped - exists)
~ report-generation/ (skipped - exists)
~ testing-strategy/ (skipped - exists)
~ web-scanning/ (skipped - exists)
~ web-severity-scoring/ (skipped - exists)

Copilot CLI agents installed.
Verify with: copilot /agent
Install Gemini CLI support? [y/N]: y

Would you also like to install Gemini CLI support?
This installs accessibility skills as a Gemini CLI extension
so Gemini automatically applies WCAG AA rules to all UI code.

Installing Gemini CLI extension...
+ gemini-extension.json
+ GEMINI.md
+ skills\ (98 new, 0 skipped)
+ hooks\ (6 files)

Gemini CLI will now enforce WCAG AA rules on all UI code.
Run: gemini "Build a login form" -- accessibility skills apply automatically.

Installing enforcement hooks...
+ Hook 1: a11y-team-eval.sh (UserPromptSubmit - proactive web detection)
+ Hook 2: a11y-enforce-edit.sh (PreToolUse - blocks UI edits without review)
+ Hook 3: a11y-mark-reviewed.sh (PostToolUse - unlocks after review)
+ All 3 hooks registered in settings.json

Would you like to set up the MCP server for document and PDF scanning?
This copies the open-source server to a stable location, can install npm
dependencies, and can add the VS Code MCP entry for local use.
Set up MCP server? [y/N]: y

MCP server copied to: C:\Users\spopp.a11y-agent-team\mcp-server
MCP copy method: copy-item

Choose your MCP setup focus:

  1. Baseline scanning - document and PDF scanning only
  2. Browser testing - baseline plus Playwright browser tools
  3. PDF-heavy workflow - baseline plus deep PDF and form tools
  4. Everything - install every MCP capability we support
  5. Custom - choose capabilities one by one

Choose [1/2/3/4/5]: 4

MCP capability plan: Everything
- Baseline scanning installs the MCP server plus core npm dependencies
- Browser testing needs Playwright, axe-core, and Chromium
- Browser scans run against live pages and can take longer to install
- PDF form conversion needs the optional pdf-lib package
- Deep PDF validation needs Java 11+ and veraPDF
- Baseline PDF scanning still works even if deep validation is not ready
- Python is not required for MCP runtime
- macOS is supported by the shell installer; Linux is not part of the guided installer target

Node.js and npm are available.
Install MCP server npm dependencies now? [Y/n]: y

Installing MCP server dependencies...
Invoke-Expression: Cannot bind argument to parameter 'Command' because it is an empty string.
Invoke-Expression: The term 'added' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
mcp-server> ---end output log---

notes

all prereqs per readme.md in the root of the source tree have been met. even a clean removal this error happens with install.ps1 I even tried using the full oneline install command from readme.md with the same results.

stickbear2015 avatar Mar 28 '26 03:03 stickbear2015

Fixed in commit e5f7286 on release/4.6.0.

Root cause: When running install.ps1 via irm url | iex, npm/npx stdout output (e.g. added 50 packages in 2s) leaked into the PowerShell pipeline. Invoke-Expression then tried to evaluate these strings as PowerShell commands, causing:

  • Invoke-Expression: The term 'added' is not recognized as a name of a cmdlet...
  • Invoke-Expression: Cannot bind argument to parameter 'Command' because it is an empty string

Fix applied:

  • Suppressed stdout on all 4 npm/npx calls with 2>&1 | Out-Null
  • Added 0 checks with explicit throw so try/catch blocks properly fire on npm failures (native commands don't throw exceptions in PowerShell by default)

Affected calls: npm install --omit=dev, npm install pdf-lib, npm install playwright @axe-core/playwright, npx playwright install chromium

Note: update.ps1 already handled this correctly via --silent 2>$null | Out-Null.

accesswatch avatar Mar 28 '26 03:03 accesswatch

this issue is partially fixed, it looks like we need to tool further down the install stack, because this happens ---output begin---

Java was not found, and winget is available.
Install Java 21 JRE now with winget? [y/N]: y
Invoke-Expression: Cannot bind argument to parameter 'Command' because it is an empty string.
Invoke-Expression: Missing expression after unary operator ---end output--- note that the winget command fires as java does install in a separate window successfully with no error but of course winget won't report it because of the above error.

stickbear2015 avatar Mar 28 '26 03:03 stickbear2015

Comprehensive fix deployed in v4.5.0

Hey @stickbear2015 - thanks for the continued testing! The root cause has been fully resolved across all three PowerShell scripts.

Root Cause

The 2>$null pattern only redirects stderr (stream 2). When scripts run via irm <url> | iex, any stdout from native commands (git, winget, choco) leaks into the Invoke-Expression pipeline, which then tries to evaluate output strings like HEAD is now at abc1234... as PowerShell commands.

Fix Applied

All native commands now use 2>&1 | Out-Null which merges stderr into stdout and pipes both to null. Error handling uses 0 checks instead of relying on stream output.

Files Changed (8 total fixes)

install.ps1 (4 fixes):

  • git clone during initial repo setup
  • winget install Node.js LTS
  • winget install Eclipse Temurin JRE 21
  • choco install verapdf

update.ps1 (3 fixes):

  • git fetch origin main
  • git reset --hard origin/main
  • git clone during fresh cache setup

uninstall.ps1 (1 fix):

  • git clone for temporary repo access

Commit: 8c77b73 Tag: v4.5.0 (updated) Branch: main + release/4.6.0

Please re-test with a fresh irm | iex run and let us know if any further issues appear. Closing once confirmed.

accesswatch avatar Mar 28 '26 04:03 accesswatch

hey, @accesswatch Thanks for continuing to work with me and to catch all the edge cases. :-) I may need to now split this into another issue, but at the end of the install script, this happens. Start it locally with:
cd \ C:\Users.a11y-agent-team\mcp-server\
npm start

MCP endpoint: http://127.0.0.1:3100/mcp Health check: http://127.0.0.1:3100/health

PDF Deep Validation Readiness:
[x] Java detected: openjdk version "21.0.10" 2026-01-20 LTS [ ] veraPDF not detected
PARTIAL: Java is ready, but veraPDF still needs to be installed.

MCP Optional Capability Readiness:
Node.js runtime (18+): [x] READY (v25) npm CLI:[x] READY MCP core dependencies: [ ] NOT READY
Python 3 helper (installer only): [~] NOT REQUIRED ON WINDOWS Baseline PDF scan (scan_pdf_document): [ ] NOT READY
Deep PDF validation (Java 11+): [x] READY (v21)
Deep PDF validation (veraPDF):[ ] NOT READY Local MCP health smoke test: [ ] SKIPPED Playwright package: [x] READY
Chromium browser bundle: [x] READY
PDF form conversion (pdf-lib):[x] READY
Baseline scanning needs Node.js 18+, npm, and MCP server dependencies in the MCP directory. Python is not required for MCP runtime on Windows. Smoke test detail: Baseline MCP prerequisites are not fully installed yet.

note that I ran npm start from C:\Users.a11y-agent-team\mcp-server\ by entering cd /Users/.a11y-agent-team/mcp-server/ and visiting http://127.0.0.1:3100/health and this was returned { "status": "ok", "name": "a11y-agent-team", "version": "4.0.0", "mode": "stateful" }

Is this the expected behavior? or is their still something broken in the ps1 pipeline somewhere? If it's expected, I can shift this to another issue for resolution or contact you privately for assistance in making my ssystem behave itself. :-)

stickbear2015 avatar Mar 28 '26 14:03 stickbear2015

Fix deployed: MCP readiness check false negatives (463fb0f)

Thanks for the detailed output, Shane. Root cause identified and fixed.

What was wrong

Test-NodeModuleAvailable used node -e "import('...')..." | Out-Null then checked 0. When native commands produce no stdout and are piped to Out-Null, PowerShell can leave 0 stale -- so the check returned false even though the packages were fully installed.

This caused the cascade you saw:

  • Core dependencies: NOT READY (false negative)
  • Baseline PDF scan: NOT READY (depends on core check)
  • Health smoke test: SKIPPED (depends on baseline check)

What changed

  1. Test-NodeModuleAvailable -- replaced the node -e import() pattern with a simple Test-Path against node_modules/[package]/package.json. No Node.js dependency for the check itself; deterministic and immune to PowerShell pipeline quirks.

  2. Test-PlaywrightChromiumReady -- changed | Out-Null to = ... 2>&1 so 0 is reliably captured.

How to verify

Re-run the installer (irm ... | iex) or pull the latest install.ps1 from main. The readiness check should now correctly show READY for all installed dependencies.

Fix is on main, release/4.6.0, and the v4.5.0 tag.

accesswatch avatar Mar 28 '26 15:03 accesswatch

hey @accesswatch The only thing now reporting not ready in the install script is this: Deep PDF validation (veraPDF): [ ] NOT READY but visiting http://127.0.0.1:3100/health after running npm start from /users/spopp/.a11y-team/mcp-server returns {"status":"ok","name":"a11y-agent-team","version":"4.0.0","mode":"stateful"} So is Deep PDF validation (veraPDF): [ ] NOT READY actually a false positive? Or is the PS1 actually literally not able to find something I need to install manually?

stickbear2015 avatar Mar 28 '26 19:03 stickbear2015

Reopening to address @stickbear2015's last question about Deep PDF validation (veraPDF): [ ] NOT READY.

Short answer: this is a real false negative, not a missing install -- veraPDF is installed but the readiness check can't see it.

Root cause

The readiness check uses Get-Command verapdf -ErrorAction SilentlyContinue (see scripts/Installer.Common.ps1). When veraPDF is installed via choco install verapdf inside an irm ... | iex session, the Windows PATH environment variable is updated in the registry but the current PowerShell session does not pick up the change. So Get-Command returns nothing even though veraPDF is fully installed.

You can confirm this yourself: open a new terminal and run verapdf --version. It should resolve correctly.

Proposed fix

After the choco install verapdf call in install.ps1, refresh the session PATH before running the readiness check:

$env:Path = [System.Environment]::GetEnvironmentVariable('Path', 'Machine') + ';' + [System.Environment]::GetEnvironmentVariable('Path', 'User')

This is the same pattern used by refreshenv (the Chocolatey helper) but without the extra dependency. I will open a targeted fix for this.

For now: your veraPDF installation is fine. You can ignore the NOT READY flag in the current session -- it will show correctly after opening a new terminal and the MCP server's deep PDF validation will work as expected.

accesswatch avatar Mar 30 '26 14:03 accesswatch

Fixed in 94f8262 on release/4.6.0.

Root cause: after choco install verapdf (or winget install Java) the session PATH is stale, so Get-Command verapdf returns null even though the binary is on disk. The installer then incorrectly falls into the "not installed" branch and its Invoke-Expression of npm output triggers the binding error you saw.

Changes:

  • scripts/Installer.Common.ps1 and install.ps1 now probe $env:ChocolateyInstall\bin\verapdf.bat as a fallback when Get-Command verapdf finds nothing -- $env:ChocolateyInstall is set by Chocolatey itself, so this short-circuits cleanly when Choco is not installed at all
  • Session PATH is refreshed immediately after winget install Java and choco install verapdf so subsequent detection calls in the same run see the new binaries
  • "Restart your terminal" messages removed since the in-session refresh handles it

accesswatch avatar Mar 30 '26 14:03 accesswatch

hey @accesswatch, I actually think there's an issue, actually, I know there's an issue, because running the command you provided me from powershell (or CMD) , returns spopp> verapdf --version
verapdf: The term 'verapdf' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
spopp> I get a similar response but the cmd line version of it when I try it from cmd, and it fails. note: in reviewing the install.ps1 file, I don't think chocolati is actually installed by anything in the ps1 script because in my case it finds winget and doesn't care about chocolati anymore at that point and moves on so anything relating to choco doesn't get handled. Actually, in further reviewing instal.ps1 that's exactly what it's doing, it sees winget and forgo's anything relating to chocolati, it doesn't even try to install anything that relies on it, I checked winget for fun to see if verapdf was in winget's repo's, and winget search verapdf says it's not their so this one deffinitly needs chocolati.

stickbear2015 avatar Mar 30 '26 16:03 stickbear2015

hello @accesswatch so I installed chocolati for another reason, and this may help this particular part of the install script. ``
veraPDF is not installed. That is okay.
Baseline PDF scanning works without it.
For deeper PDF/UA validation later, install Java 11+ and veraPDF.

Install veraPDF now with Chocolatey? [y/N]: y
! Chocolatey veraPDF install failed. You can retry manually with:
choco install verapdf

Windows options:
Java runtime via winget: winget install --exact --id EclipseAdoptium.Temurin.21.JRE
veraPDF via Chocolatey: choco install verapdf
veraPDF manual install: https://docs.verapdf.org/install/
macOS: brew install verapdf note: I attempted choco install verapdf with this as the result. accessibility-agents> choco install verapdf
Chocolatey v2.7.1
Installing the following packages:
verapdf
By installing, you accept licenses for the packages.
verapdf not installed. The package was not found with the source(s) listed.
Source(s): 'https://community.chocolatey.org/api/v2/'
NOTE: When you specify explicit sources, it overrides default sources.
If the package version is a prerelease and you didn't specify --pre,
the package may not be found.
Please see https://docs.chocolatey.org/en-us/troubleshooting for more
assistance.

Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures

  • verapdf - verapdf not installed. The package was not found with the source(s) listed.
    Source(s): 'https://community.chocolatey.org/api/v2/'
    NOTE: When you specify explicit sources, it overrides default sources.
    If the package version is a prerelease and you didn't specify --pre,
    the package may not be found.
    Please see https://docs.chocolatey.org/en-us/troubleshooting for more
    assistance `` I hope that helps.

stickbear2015 avatar Apr 04 '26 14:04 stickbear2015