mcp-accessibility-scanner 1.0.2 → 1.0.4

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 CHANGED
@@ -50,14 +50,23 @@ Here's the Claude Desktop configuration:
50
50
 
51
51
  The scanner exposes a single tool `scan_accessibility` that accepts:
52
52
 
53
- - `url`: The webpage URL to scan
54
- - `violationsTag`: Array of accessibility violation tags to check (optional)
53
+ - `url`: The webpage URL to scan (required)
54
+ - `violationsTag`: Array of accessibility violation tags to check (required)
55
+ - `viewport`: Optional object to customize the viewport size
56
+ - `width`: number (default: 1920)
57
+ - `height`: number (default: 1080)
58
+ - `shouldRunInHeadless`: Optional boolean to control headless mode (default: true)
55
59
 
56
60
  Example usage in Claude:
57
61
  ```
58
62
  Could you scan example.com for accessibility issues related to color contrast?
59
63
  ```
60
64
 
65
+ Advanced example with custom options:
66
+ ```
67
+ Could you scan example.com for accessibility issues with a viewport of 1280x720 and show the browser window?
68
+ ```
69
+
61
70
  ## Development
62
71
 
63
72
  Clone and set up the project:
package/build/server.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  "use strict";
2
3
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
4
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
package/package.json CHANGED
@@ -1,28 +1,31 @@
1
1
  {
2
2
  "name": "mcp-accessibility-scanner",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
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",
7
+ "bin": {
8
+ "mcp-accessibility-scanner": "build/server.js"
9
+ },
7
10
  "files": [
8
11
  "build/**/*",
9
12
  "README.md",
10
13
  "LICENSE"
11
14
  ],
12
15
  "scripts": {
13
- "build": "tsc && node -e \"require('fs').chmodSync('build/index.js', '755')\"",
16
+ "build": "tsc && node -e \"require('fs').chmodSync('build/index.js', '755') && require('fs').chmodSync('build/server.js', '755')\"",
14
17
  "prepare": "npm run build",
15
18
  "watch": "tsc --watch",
16
19
  "inspector": "npx @modelcontextprotocol/inspector build/index.js"
17
20
  },
18
21
  "dependencies": {
19
22
  "@axe-core/playwright": "^4.10.1",
20
- "@modelcontextprotocol/sdk": "^1.4.1",
21
- "mcp-accessibility-scanner": "file:"
23
+ "@modelcontextprotocol/sdk": "^1.4.1"
22
24
  },
23
25
  "devDependencies": {
24
- "@playwright/test": "^1.49.1",
26
+ "@playwright/test": "^1.52.0",
25
27
  "@types/node": "^22.10.7",
28
+ "ts-node": "^10.9.2",
26
29
  "typescript": "^5.5.3"
27
30
  },
28
31
  "keywords": [
@@ -39,7 +42,7 @@
39
42
  "license": "MIT",
40
43
  "repository": {
41
44
  "type": "git",
42
- "url": "https://github.com/JustasMonkev/mcp-accessibility-scanner.git"
45
+ "url": "git+https://github.com/JustasMonkev/mcp-accessibility-scanner.git"
43
46
  },
44
47
  "engines": {
45
48
  "node": ">=16.0.0"