This accessibility scanner, developed for the Model Context Protocol, integrates Axe Core with Playwright to perform automated web accessibility testing. Built with TypeScript, it leverages the MCP SDK to provide a standardized interface for running accessibility checks on web pages. The implementation focuses on ease of use and comprehensive reporting, offering detailed insights into accessibility issues. It's particularly useful for developers and quality assurance teams working on web applications, enabling use cases such as continuous integration testing, compliance auditing, and identifying accessibility barriers without manual inspection of each page element.
Nessuna recensione ancora. Sii il primo a recensire!
Accedi per unirti alla conversazione
Performs a comprehensive accessibility scan on the current page using Axe-core. Parameters: violationsTag (Array of WCAG/violation tags to check)
Crawls and scans multiple internal pages, then aggregates violations across the site. Default strategy: link-based BFS from the current URL.
Runs Axe scans on the same page across viewport/media/zoom variants and compares deltas against baseline. Always writes a JSON report.
Audits real keyboard focus behavior by pressing Tab (and optional Shift+Tab) with practical heuristics. Always writes a JSON report.
Navigate to a URL. Parameters: url (string)
Go back to the previous page.
Set default navigation timeout for existing tabs. Parameters: timeout (in ms; 30000-300000)
Set default operation timeout for existing tabs. Parameters: timeout (in ms; 30000-300000)
Capture accessibility snapshot of the current page. Parameters: compress (optional boolean, default false)
Search the current page accessibility snapshot without returning the full snapshot. Parameters: text (case-insensitive substring) or regex (regular expression)
Perform click on a web page element. Parameters: element (description), ref (element reference), doubleClick (optional)
Type text into editable element. Parameters: element, ref, text, submit (optional), slowly (optional)
Hover over element on page. Parameters: element, ref
Perform drag and drop between two elements. Parameters: startElement, startRef, endElement, endRef
Select an option in a dropdown. Parameters: element, ref, values (array)
Fill multiple fields with one call. Parameters: fields (array of objects with name, type, ref, and value)
Press a key on the keyboard. Parameters: key (e.g., 'ArrowLeft' or 'a')
Evaluate a JavaScript expression on the page. Parameters: function (expression), element (optional), ref (optional)
Take a screenshot of the current page. Parameters: filename (optional), type (png or jpeg), scale (css or device), fullPage (optional)
Save page as PDF. Parameters: filename (optional, defaults to page-{timestamp}.pdf)
Install the configured browser engine (use when browser executable is missing). Parameters: none
Close the page.
Resize the browser window. Parameters: width, height
Manage browser tabs in one tool. Parameters: action (list, new, close, select) and optional index (for close and select).
Returns all console messages from the page.
Returns all network requests since loading the page.
Wait for text to appear/disappear or time to pass. Parameters: time (optional), text (optional), textGone (optional)
Handle browser dialogs (alerts, confirms, prompts). Parameters: accept (boolean), promptText (optional)
Upload files to the page. Parameters: paths (array of absolute file paths)
Verify an element by ARIA role/name. Parameters: role, accessibleName
Verify text visibility. Parameters: text
Verify list items at a snapshot reference. Parameters: element, ref, items (array)
Verify an element value or checked state. Parameters: type, element, ref, value
Move mouse to specific coordinates. Parameters: element, x, y
Click at specific coordinates. Parameters: element, x, y, button (optional), clickCount (optional), delay (optional)
Drag from one coordinate to another. Parameters: element, startX, startY, endX, endY