canvas-audit-mcp
v1.2.0Opinionated Canvas, WebGL & Display Quality Auditor MCP Server
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
audit_canvas_dpr
Audit canvas/WebGL sharpness against Device Pixel Ratio. Detects blurry rendering, oversized buffers, aspect-ratio distortion and missing context-recovery listeners.
| Parameter | Type | Description |
|---|---|---|
url * | string | Target http(s) URL. Local files and data: URIs are refused. |
captureScreenshot | boolean | Return a screenshot (default: true) |
preset | string | Device preset (default: macbook_retina) |
waitForMs | number | Wait for rendering before auditing, ms (default: 2000) |
profile_frametime_sync
Profile the page's real frame pacing by wrapping its own requestAnimationFrame. A page that never animates reports STATIC_NO_ANIMATION rather than 60 FPS. Returns present intervals, main-thread cost per frame, and GPU readback stall.
| Parameter | Type | Description |
|---|---|---|
url * | string | Target http(s) URL. Local files and data: URIs are refused. |
collectTimeoutMs | number | Give up waiting for frames after this long (default: 15000) |
cpuThrottleRate | number | CPU slowdown via CDP (1 = normal, 4 = 4x) |
preset | string | Device preset (default: desktop_1080p) |
sampleFrames | number | Frames rendered by the page to sample (default: 180) |
warmupMs | number | Warmup before sampling, ms (default: 1500) |
inspect_responsive_ergonomics
Layout and ergonomics audit: horizontal overflow measured against the CSS viewport, touch targets scored against the configured threshold plus WCAG 2.2 AA (24px) and the 44px platform recommendation, and silently clipped text.
| Parameter | Type | Description |
|---|---|---|
url * | string | Target http(s) URL. Local files and data: URIs are refused. |
captureScreenshot | boolean | Return a screenshot (default: true) |
minTouchSize | number | Minimum touch target size in px (default: 32) |
preset | string | Device preset (default: mobile_iphone) |
test_adaptive_recovery
Test whether the PAGE survives a GPU context loss. The auditor only observes: it never calls preventDefault() and never restores the context on the page's behalf, so a pass requires the page to cancel the event, regain its context and resume rendering.
| Parameter | Type | Description |
|---|---|---|
url * | string | Target http(s) URL. Local files and data: URIs are refused. |
preset | string | Device preset (default: desktop_1080p) |
compare_device_matrix
Run the DPR and ergonomics audits across three benchmark tiers (Desktop 1080p 1x, MacBook Retina 2x, iPhone 3x) in parallel and return a side-by-side matrix.
| Parameter | Type | Description |
|---|---|---|
url * | string | Target http(s) URL. Local files and data: URIs are refused. |