MotionSpec — web animation accessibility MCP

v1.2.12
io.github.MasterPlayspots/motionspec Checked 8 hours ago Published 29 days ago

Web animation accessibility MCP: GSAP, static CSS checks, prefers-reduced-motion, WCAG 2.2.2/2.3.3.

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

motion_catalog MotionSpec catalog & authoring rules

Returns the catalog of verified motion primitives (names, purpose, parameter schemas, defaults) plus the authoring rules for writing a MotionSpec. Call this FIRST, then write the spec yourself, check it with motion_validate and compile it with motion_compile. Free motion check: https://motionspec.dev/motion-check · paid Motion Report (9 USD, one-time): https://motionspec.dev/pricing?src=mcp-motion_catalog#p-report.

motion_validate Validate a MotionSpec (trust boundary)

Checks a MotionSpec against the schema, the primitive allow-list, parameter bounds and injection rules. Fail-closed: returns ok=false with precise errors. Returns {ok, errors, warnings, deprecations, catalogVersion}. IMPORTANT: warnings[] carries the WCAG 2.2.2 / reduced-motion findings and can be non-empty while ok=true — a spec that compiles is not automatically accessible. Use to pre-check a spec before compiling.

ParameterTypeDescription
spec *objectThe MotionSpec JSON object

motion_compile Compile a MotionSpec to GSAP/CSS

Validates (fail-closed) and deterministically compiles a MotionSpec into vanilla-GSAP JavaScript and CSS, with prefers-reduced-motion enabled by default and a performance-budget report. Same spec always yields identical code. Returns {ok:true, js, css, warnings, report, catalogVersion} or {ok:false, errors, catalogVersion}; css may be null when no CSS is emitted. Read warnings before shipping: explicitly disabling reduced-motion or loop pause controls can compile with accessibility warnings. Does not write files or execute the emitted code.

ParameterTypeDescription
spec *objectThe MotionSpec JSON object
specNamestringOptional name used in the artifact header

motion_audit Audit a live URL for motion accessibility (WCAG 2.2.2 / 2.3.3)

Static motion-a11y checker: fetches a URL's HTML + linked stylesheets (up to 12 sheets, 2 MB per response, 8 s timeout) and scans the CSS for (1) animation/transition that moves without an effective (cascade-aware) prefers-reduced-motion guard, (2) animated non-transform/opacity properties, (3) infinite animations with no pause path, (4) <marquee>/autoplay >5s. Colour/opacity-only transitions are not motion (WCAG 2.3.3). Uses scoring v2. Same engine and scoring as the free site check at https://motionspec.dev/motion-check. Returns structuredContent {ok, url, status, score, scoring, scoring_doc…

ParameterTypeDescription
url *stringThe page URL to audit (http/https).

motion_stats MotionSpec usage telemetry

Summary of routing/compile telemetry (counts per outcome). Escalation clusters indicate which new primitive the catalog needs next.