mcp-accessibility-scanner 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +51 -28
- package/package.json +1 -1
package/Readme.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# MCP Accessibility Scanner
|
|
1
|
+
# MCP Accessibility Scanner 🔍
|
|
2
2
|
|
|
3
|
-
A Model Context Protocol (MCP) server
|
|
3
|
+
A Model Context Protocol (MCP) server that provides automated web accessibility scanning using Playwright and Axe-core. This server enables LLMs to perform WCAG compliance checks, capture annotated screenshots, and generate detailed accessibility reports.
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
@@ -10,30 +10,47 @@ A Model Context Protocol (MCP) server for performing automated accessibility sca
|
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
13
|
+
You can install the package using any of these methods:
|
|
14
|
+
|
|
15
|
+
Using npm:
|
|
13
16
|
```bash
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
cd mcp-accessibility-scanner
|
|
17
|
+
npm install -g mcp-accessibility-scanner
|
|
18
|
+
```
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
Using mcp-get:
|
|
21
|
+
```bash
|
|
22
|
+
npx @michaellatman/mcp-get@latest install mcp-accessibility-scanner
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Using Smithery (for Claude Desktop):
|
|
26
|
+
```bash
|
|
27
|
+
npx -y @smithery/cli install mcp-accessibility-scanner --client claude
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Installation in VS Code
|
|
31
|
+
|
|
32
|
+
Install the Accessibility Scanner in VS Code using the VS Code CLI:
|
|
20
33
|
|
|
21
|
-
|
|
22
|
-
|
|
34
|
+
For VS Code:
|
|
35
|
+
```bash
|
|
36
|
+
code --add-mcp '{"name":"accessibility-scanner","command":"npx","args":["mcp-accessibility-scanner"]}'
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
For VS Code Insiders:
|
|
40
|
+
```bash
|
|
41
|
+
code-insiders --add-mcp '{"name":"accessibility-scanner","command":"npx","args":["mcp-accessibility-scanner"]}'
|
|
23
42
|
```
|
|
24
43
|
|
|
25
|
-
##
|
|
44
|
+
## Configuration
|
|
26
45
|
|
|
27
|
-
|
|
46
|
+
Here's the Claude Desktop configuration:
|
|
28
47
|
|
|
29
48
|
```json
|
|
30
49
|
{
|
|
31
50
|
"mcpServers": {
|
|
32
|
-
"accessibility-
|
|
33
|
-
"command": "
|
|
34
|
-
"args": [
|
|
35
|
-
"path/build/server.js"
|
|
36
|
-
]
|
|
51
|
+
"accessibility-scanner": {
|
|
52
|
+
"command": "npx",
|
|
53
|
+
"args": ["-y", "mcp-accessibility-scanner"]
|
|
37
54
|
}
|
|
38
55
|
}
|
|
39
56
|
}
|
|
@@ -44,7 +61,7 @@ Add the following to your Claude Desktop settings to enable the Accessibility Sc
|
|
|
44
61
|
The scanner exposes a single tool `scan_accessibility` that accepts:
|
|
45
62
|
|
|
46
63
|
- `url`: The webpage URL to scan
|
|
47
|
-
- `violationsTag`: Array of accessibility violation tags to check
|
|
64
|
+
- `violationsTag`: Array of accessibility violation tags to check (optional)
|
|
48
65
|
|
|
49
66
|
Example usage in Claude:
|
|
50
67
|
```
|
|
@@ -53,6 +70,13 @@ Could you scan example.com for accessibility issues related to color contrast?
|
|
|
53
70
|
|
|
54
71
|
## Development
|
|
55
72
|
|
|
73
|
+
Clone and set up the project:
|
|
74
|
+
```bash
|
|
75
|
+
git clone https://github.com/JustasMonkev/mcp-accessibility-scanner.git
|
|
76
|
+
cd mcp-accessibility-scanner
|
|
77
|
+
npm install
|
|
78
|
+
```
|
|
79
|
+
|
|
56
80
|
Start the TypeScript compiler in watch mode:
|
|
57
81
|
```bash
|
|
58
82
|
npm run watch
|
|
@@ -65,17 +89,16 @@ npm run inspector
|
|
|
65
89
|
|
|
66
90
|
## Project Structure
|
|
67
91
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
92
|
+
```
|
|
93
|
+
├── src/ # Source code
|
|
94
|
+
│ ├── index.ts # MCP server setup and tool definitions
|
|
95
|
+
│ └── scanner.ts # Core scanning functionality
|
|
96
|
+
├── build/ # Compiled JavaScript output
|
|
97
|
+
├── package.json # Project configuration and dependencies
|
|
98
|
+
└── tsconfig.json # TypeScript configuration
|
|
99
|
+
```
|
|
74
100
|
|
|
75
|
-
##
|
|
101
|
+
## License
|
|
76
102
|
|
|
77
|
-
|
|
78
|
-
1. A visual report with numbered violations highlighted on the page
|
|
79
|
-
2. A detailed JSON report of all found violations
|
|
80
|
-
3. A full-page screenshot saved to Downloads
|
|
103
|
+
MIT
|
|
81
104
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-accessibility-scanner",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "A Model Context Protocol (MCP) server for performing automated accessibility scans of web pages using Playwright and Axe-core",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|