ally

v1.0.2
io.github.forbiddenlink/ally Checked 3 days ago Published 3 days ago

Accessibility MCP server: ARIA patterns, WCAG guidelines, design tokens and scan results.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_component_patterns

Analyze existing ARIA patterns in React/Vue components to ensure consistent accessibility fixes

ParameterTypeDescription
componentstringSpecific component name to analyze
directorystringDirectory to analyze (defaults to current directory)

get_design_tokens

Extract design tokens (colors, spacing) from CSS/SCSS/Tailwind config for WCAG-compliant fixes

ParameterTypeDescription
directorystringDirectory to search for design tokens

get_fix_history

Retrieve previously applied accessibility fixes to maintain consistency

ParameterTypeDescription
issueTypestringFilter by issue type (e.g., 'image-alt', 'button-name')

get_scan_summary

Get a summary of current accessibility issues from the latest scan

get_wcag_guideline

Get full WCAG success criterion details for a violation

ParameterTypeDescription
criterionId *stringWCAG criterion like '1.1.1' or violation id like 'image-alt'

suggest_aria_pattern

Suggest ARIA pattern for a component type

ParameterTypeDescription
componentType *stringe.g., 'modal', 'tabs', 'menu', 'accordion'

check_color_contrast

Calculate WCAG contrast ratio and APCA Lc value between two colors and check compliance

ParameterTypeDescription
background *stringBackground color (hex, rgb, or named)
foreground *stringForeground color (hex, rgb, or named)
fontSizenumberFont size in pixels (optional, for AA/AAA thresholds)
isBoldbooleanWhether text is bold (optional)

scan_accessibility

Run an accessibility scan with ally (axe-core). Use this instead of guessing WCAG issues. Pass a local path or a running URL.

ParameterTypeDescription
pathstringDirectory or file to scan (default: current directory)
standardstringWCAG standard tag such as wcag22aa
urlstringRunning page URL to scan instead of files

fix_accessibility

Apply ally high-confidence accessibility fixes from the latest scan. Prefer dryRun first.

ParameterTypeDescription
autobooleanApply fixes without prompting (ignored when dryRun is true)
dryRunbooleanPreview fixes without writing files (default true)