canvas-audit-mcp

v1.2.0
canvas-audit-mcp Checked 2 days ago Published 1 month ago

Opinionated 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.

ParameterTypeDescription
url *stringTarget http(s) URL. Local files and data: URIs are refused.
captureScreenshotbooleanReturn a screenshot (default: true)
presetstringDevice preset (default: macbook_retina)
waitForMsnumberWait 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.

ParameterTypeDescription
url *stringTarget http(s) URL. Local files and data: URIs are refused.
collectTimeoutMsnumberGive up waiting for frames after this long (default: 15000)
cpuThrottleRatenumberCPU slowdown via CDP (1 = normal, 4 = 4x)
presetstringDevice preset (default: desktop_1080p)
sampleFramesnumberFrames rendered by the page to sample (default: 180)
warmupMsnumberWarmup 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.

ParameterTypeDescription
url *stringTarget http(s) URL. Local files and data: URIs are refused.
captureScreenshotbooleanReturn a screenshot (default: true)
minTouchSizenumberMinimum touch target size in px (default: 32)
presetstringDevice 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.

ParameterTypeDescription
url *stringTarget http(s) URL. Local files and data: URIs are refused.
presetstringDevice 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.

ParameterTypeDescription
url *stringTarget http(s) URL. Local files and data: URIs are refused.