
ally
io.github.forbiddenlink/ally
Accessibility MCP server: ARIA patterns, WCAG guidelines, design tokens and scan results.
Documentation
ally
Accessibility CLI that scans for WCAG issues with axe-core, scores each by impact, and applies pattern-based fixes. It also provides an MCP server.
Key features
Real-time auto-fix. ally watch src/ --fix-on-save applies fixes as you save, only when confidence is at least 90%.
$ ally watch src/ --fix-on-save
ā Auto-fix: ON (confidence ā„ 90%)
š Button.tsx changed
ā Auto-applied 2 fixes
⢠<button> ā <button aria-label="Submit">
⢠<img> ā <img alt="Logo">
Impact scoring. Each violation gets a 0-100 impact score, a plain-language reason, and the user groups it affects, so you know what to fix first.
$ ally scan ./src
[!!!] CRITICAL Impact: 96/100 (WCAG A)
Links must have discernible text
š„ Affects: Screen reader users, Voice control users
File: Button.tsx:14
Install
npm install -g ally-a11y
ally init # set up ally in your project
explain and fix can use GitHub Copilot CLI for AI-powered analysis (optional):
npm install -g @github/copilot-cli
copilot auth login
Requires Node.js 20.17+.
Commands
# Scanning
ally scan ./src # Scan for violations with impact scores
ally watch --fix-on-save # Auto-fix issues as you save files
ally crawl <url> # Multi-page website scanning
ally scan-storybook # Scan Storybook components
ally tree <url> # View accessibility tree
# Fixing & learning
ally fix # Interactive fix approval (40 patterns)
ally explain # WCAG explanations + Copilot integration
ally learn <violation> # Educational deep-dive on violations
ally triage # Prioritize violations interactively
# Reporting & progress
ally report # Generate reports (MD/HTML/JSON/SARIF/CSV)
ally history # View progress over time with trends
ally stats # Accessibility progress dashboard
ally badge # Generate score badges
ally pr-check # Post results to GitHub PRs
# Design systems
ally audit-palette # Audit color palette for contrast
# Setup & diagnostics
ally init # Initialize ally in your project
ally doctor # Diagnose configuration issues
ally health # Quick accessibility health check
ally completion # Shell tab completion
Options and examples for every command are in docs/COMMANDS.md.
Install from the MCP Registry
The ally MCP server is listed in the official MCP Registry as io.github.forbiddenlink/ally (npm package ally-mcp-server), so MCP clients that read the registry can discover and install it. To run it directly:
npx -y ally-mcp-server
Documentation
- Command reference
- GitHub Action and the workflow guide
- Configuration, MCP server, performance and baselines
- How ally compares to axe-cli, pa11y and Lighthouse
- WCAG coverage
- Architecture
Accessible CLI
Set NO_COLOR=1 (or ALLY_NO_COLOR=1) to disable colors.
FAQ
Does ally work with all frameworks? Ally scans static HTML output, so it works with React, Vue, Angular, Svelte, plain HTML, and any other framework that generates HTML.
Do I need GitHub Copilot CLI? Basic scanning works without it. The explain and fix commands use it for AI-powered analysis.
Is my data sent anywhere? All scanning happens locally using axe-core. Only when using Copilot CLI features does data go to GitHub's API.
Can I use this in CI/CD? Yes. There is a GitHub Action, and the CLI has a --ci mode.
Does it support WCAG 2.0, 2.1, 2.2? Use the --standard flag to choose the level (A, AA, AAA) and version (2.0, 2.1, 2.2).
Contributing
See CONTRIBUTING.md. Security issues: SECURITY.md.
License
MIT Ā© Elizabeth Stein
Acknowledgments
- Built with axe-core
- Optional AI explanations through GitHub Copilot CLI
- Uses Puppeteer for browser automation, with optional Playwright support for Firefox and WebKit
ally-mcp-servernpm install ally-mcp-server