Model Context Protocol server that serves the A11y Context accessibility-pattern corpus (WCAG 2.2 AA patterns, Foundations rules) to AI coding agents.
Three well-named, read-only tools with strong descriptions (194 - 250 chars each) and complete Zod schemas. All parameters are typed and described. Tool names follow verb_noun pattern (list_, get_). Descriptions explain WHAT, WHEN, and dependencies clearly. Stack enum with default is well-designed. However, output schemas are not documented in the source, LLMs cannot see what fields to expect from responses. Error handling exists (toErrorResult with scrubRoots) but recovery guidance is not visible in tool descriptions. No tool annotations (readOnlyHint, idempotentHint) despite all three being read-only. Telemetry wrapping is present but adds complexity without visible benefit to the agent.
Get the cross-cutting Foundations rules for a stack — accessibility requirements not tied to a single component: focus states, landmarks, headings, contrast, page structure, use of color. Retrieve these on every UI task, not just page-level work: each rule carries a `scope` (utility, style, component, layout, page) that determines whether it applies to the current change. Optionally pass `scope` to return only rules matching one or more of those buckets.
Get the full accessibility specification for one pattern by `id` (ids come from list_patterns). Returns the pattern's sections: `must_haves` (non-negotiable WCAG 2.2 AA requirements — implement all of them), `donts` (anti-patterns — never produce), `golden_pattern` (a reference implementation to model), and `customizable` (allowed variations). Call this for each pattern you selected before writing UI code.
List the accessible UI component patterns available for a stack. Call this FIRST whenever you are about to build or modify any UI, to choose which patterns apply. Each entry has an `id`, `summary`, `tags`, `aliases`, and a `selection_excerpt` (its `use_when` / `do_not_use_when` bullets) — use the selection_excerpt to decide which patterns match the components in your task, then call get_pattern for each. Optionally narrow with `tags` or a free-text `query`.
Output schemas not documented. LLMs cannot see what fields list_patterns, get_pattern, and get_foundations return. This forces agents to guess structure and risks extraction errors.
No tool annotations despite all three tools being read-only and idempotent. Adding readOnlyHint and idempotentHint would signal to agents that these calls are safe to retry and have no side effects.
Error recovery guidance missing from tool descriptions. Descriptions do not explain what to do if a pattern ID is invalid, a stack is unsupported, or a scope bucket is unrecognized.
Pagination not visible in list_patterns. If the pattern catalog grows large, agents need limit/offset or cursor support to avoid context explosion. Current schema does not show pagination parameters or response structure.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 67 | 2026-07-28+ | v2 |
Optional scope parameter in get_foundations lacks enum constraint. Description mentions 'utility, style, component, layout, page' for web/react but does not enforce these as an enum, allowing LLMs to pass invalid scope values.