a11y-test-mcp 1.1.4 → 1.1.6

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.
@@ -32,9 +32,9 @@ const convertWcagTag = (tags) => {
32
32
  * @returns {string} A formatted string representing the violation, suitable for display in reports or logs.
33
33
  */
34
34
  const formatViolation = (v) => {
35
- const violationHeader = ` - [${String(v.impact?.toUpperCase() ?? 'N/A')}] ${v.id}: ${v.description} (Nodes: ${String(v.nodes.length)}, Help: ${v.helpUrl})`;
35
+ const violationHeader = ` - [${v.impact?.toUpperCase() ?? 'N/A'}] ${v.id}: ${v.description} (Nodes: ${v.nodes.length.toString()}, Help: ${v.helpUrl})`;
36
36
  const violationNodes = v.nodes
37
- .map((node, index) => ` Node ${String(index + 1)}: ${node.html}`)
37
+ .map((node, index) => ` Node ${(index + 1).toString()}: ${node.html}`)
38
38
  .join('\n');
39
39
  return `${violationHeader}\n${violationNodes}`;
40
40
  };
package/build/index.js CHANGED
@@ -10,7 +10,11 @@ const server = new mcp_js_1.McpServer({
10
10
  name: 'accessibility-tester',
11
11
  version: '0.1.1',
12
12
  });
13
- server.tool('exec-a11y-test', 'Obtains a list of specified list of URL and a list of WCAG indicators and returns the results', { urls: zod_1.z.array(zod_1.z.string().url()), wcagStandards: zod_1.z.array(zod_1.z.string()).optional() }, async ({ urls, wcagStandards }) => {
13
+ server.registerTool('exec-a11y-test', {
14
+ title: 'Execute Accessibility Test',
15
+ description: 'Obtains a list of specified list of URL and a list of WCAG indicators and returns the results',
16
+ inputSchema: { urls: zod_1.z.array(zod_1.z.string().url()), wcagStandards: zod_1.z.array(zod_1.z.string()).optional() },
17
+ }, async ({ urls, wcagStandards }) => {
14
18
  const structuredResults = await (0, functions_1.execTest)(urls, wcagStandards);
15
19
  return {
16
20
  content: [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "a11y-test-mcp",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "main": "build/index.js",
5
5
  "scripts": {
6
6
  "postinstall": "npx -y playwright install",
@@ -38,23 +38,19 @@
38
38
  "description": "",
39
39
  "homepage": "https://github.com/noriyuki-shimizu/a11y-test-mcp/blob/main/README.md",
40
40
  "dependencies": {
41
- "@axe-core/playwright": "^4.10.1",
42
- "@modelcontextprotocol/sdk": "^1.10.2",
43
- "playwright": "^1.52.0",
44
- "zod": "^3.24.3"
41
+ "@axe-core/playwright": "^4.11.0",
42
+ "@modelcontextprotocol/sdk": "^1.25.1",
43
+ "playwright": "^1.56.1",
44
+ "zod": "^3.25.76"
45
45
  },
46
46
  "devDependencies": {
47
- "@eslint/js": "^9.25.1",
48
- "@types/node": "^22.15.2",
49
- "@typescript/native-preview": "^7.0.0-dev.20250523.1",
50
- "dprint": "^0.49.1",
51
- "eslint": "^9.25.1",
47
+ "@eslint/js": "^9.39.1",
48
+ "@types/node": "^25.0.3",
49
+ "@typescript/native-preview": "^7.0.0-dev.20251108.1",
50
+ "dprint": "^0.51.1",
51
+ "eslint": "^9.39.1",
52
52
  "eslint-config-flat-gitignore": "^2.1.0",
53
- "typescript": "^5.8.3",
54
- "typescript-eslint": "^8.31.0"
55
- },
56
- "volta": {
57
- "node": "22.15.0",
58
- "npm": "10.9.2"
53
+ "typescript": "^5.9.3",
54
+ "typescript-eslint": "^8.46.3"
59
55
  }
60
56
  }