accessibility-server-mcp 1.0.8 โ†’ 1.0.9

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/dist/index.js CHANGED
@@ -124,7 +124,7 @@ export class AccessibilityMCPServer {
124
124
  this.browserManager = new BrowserManager();
125
125
  this.server = new Server({
126
126
  name: 'accessibility-mcp-server',
127
- version: '1.0.6',
127
+ version: '1.0.9',
128
128
  }, {
129
129
  capabilities: {
130
130
  tools: {},
@@ -578,7 +578,7 @@ const args = process.argv.slice(2);
578
578
  // Show help information
579
579
  if (args.includes('--help') || args.includes('-h')) {
580
580
  console.log(`
581
- Accessibility MCP Server v1.0.6
581
+ Accessibility MCP Server v1.0.9
582
582
  A Model Context Protocol server for web accessibility testing with WCAG compliance.
583
583
 
584
584
  Usage:
@@ -613,7 +613,7 @@ For more information, visit: https://github.com/your-repo/accessibility-mcp
613
613
  }
614
614
  // Show version
615
615
  if (args.includes('--version') || args.includes('-v')) {
616
- console.log('1.0.6');
616
+ console.log('1.0.9');
617
617
  process.exit(0);
618
618
  }
619
619
  // Set MCP mode environment variable when running as MCP server
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "accessibility-server-mcp",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "MCP server for web accessibility testing with WCAG compliance",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -1,6 +0,0 @@
1
- /**
2
- * Manual test script for website accessibility testing
3
- * Run with: node --loader=tsx/esm src/test-manual.ts
4
- */
5
- export {};
6
- //# sourceMappingURL=test-manual.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test-manual.d.ts","sourceRoot":"","sources":["../src/test-manual.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -1,66 +0,0 @@
1
- /**
2
- * Manual test script for website accessibility testing
3
- * Run with: node --loader=tsx/esm src/test-manual.ts
4
- */
5
- import { WebsiteAccessibilityTester } from './tools/website-accessibility-tester.js';
6
- import { BrowserManager } from './utils/browser-manager.js';
7
- async function testWebsiteAccessibility() {
8
- console.log('๐Ÿš€ Starting website accessibility testing demo...\n');
9
- const browserManager = new BrowserManager({ headless: 'new' });
10
- const websiteTester = new WebsiteAccessibilityTester(browserManager);
11
- try {
12
- // Test a simple, well-known website
13
- console.log('๐Ÿ“Š Testing website: https://example.com');
14
- console.log('โš™๏ธ Configuration: maxPages=2, maxDepth=1, wcagLevel=AA\n');
15
- const result = await websiteTester.testWebsite('https://example.com', {
16
- maxPages: 2,
17
- maxDepth: 1,
18
- concurrency: 1,
19
- delay: 2000,
20
- wcagLevel: 'AA',
21
- fullAnalysis: false,
22
- continueOnError: true
23
- });
24
- console.log('โœ… Test completed successfully!\n');
25
- console.log('๐Ÿ“ˆ Results Summary:');
26
- console.log(` โ€ข Pages discovered: ${result.crawlResult.urls.length}`);
27
- console.log(` โ€ข Pages tested successfully: ${result.summary.totalPages}`);
28
- console.log(` โ€ข Pages failed: ${result.summary.failedPages}`);
29
- console.log(` โ€ข Total violations found: ${result.summary.totalViolations}`);
30
- console.log(` โ€ข Overall accessibility score: ${result.summary.overallScore}/100`);
31
- console.log(` โ€ข WCAG AA compliance: ${result.summary.compliance.AA ? 'โœ… Pass' : 'โŒ Fail'}`);
32
- console.log(` โ€ข Crawl time: ${result.summary.performance.crawlTime}ms`);
33
- console.log(` โ€ข Average page test time: ${Math.round(result.summary.performance.averagePageTestTime)}ms\n`);
34
- if (result.summary.commonViolations.length > 0) {
35
- console.log('๐Ÿ” Most common violations:');
36
- result.summary.commonViolations.slice(0, 3).forEach((violation, index) => {
37
- console.log(` ${index + 1}. ${violation.description} (${violation.count} occurrences on ${violation.affectedPages} pages)`);
38
- });
39
- }
40
- else {
41
- console.log('๐ŸŽ‰ No common violations found across pages!');
42
- }
43
- console.log('\n๐Ÿ“‹ Page-by-page results:');
44
- result.pageResults.forEach((pageResult, index) => {
45
- if (pageResult.success && pageResult.result) {
46
- console.log(` ${index + 1}. ${pageResult.url}`);
47
- console.log(` Score: ${pageResult.result.summary.score}/100`);
48
- console.log(` Violations: ${pageResult.result.violations.length}`);
49
- console.log(` Test time: ${pageResult.duration}ms`);
50
- }
51
- else {
52
- console.log(` ${index + 1}. ${pageResult.url} - FAILED: ${pageResult.error}`);
53
- }
54
- });
55
- }
56
- catch (error) {
57
- console.error('โŒ Test failed:', error instanceof Error ? error.message : String(error));
58
- }
59
- finally {
60
- await browserManager.cleanup();
61
- console.log('\n๐Ÿงน Cleanup completed. Test finished.');
62
- }
63
- }
64
- // Run the test
65
- testWebsiteAccessibility().catch(console.error);
66
- //# sourceMappingURL=test-manual.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test-manual.js","sourceRoot":"","sources":["../src/test-manual.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,KAAK,UAAU,wBAAwB;IACrC,OAAO,CAAC,GAAG,CAAC,qDAAqD,CAAC,CAAC;IAEnE,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;IAC/D,MAAM,aAAa,GAAG,IAAI,0BAA0B,CAAC,cAAc,CAAC,CAAC;IAErE,IAAI,CAAC;QACH,oCAAoC;QACpC,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC;QACvD,OAAO,CAAC,GAAG,CAAC,2DAA2D,CAAC,CAAC;QAEzE,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,WAAW,CAAC,qBAAqB,EAAE;YACpE,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,CAAC;YACX,WAAW,EAAE,CAAC;YACd,KAAK,EAAE,IAAI;YACX,SAAS,EAAE,IAAI;YACf,YAAY,EAAE,KAAK;YACnB,eAAe,EAAE,IAAI;SACtB,CAAC,CAAC;Q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