This commit is contained in:
Josh at WLTechBlog
2025-10-16 11:26:23 -05:00
parent 4d55acca95
commit 1b01b1e857
6 changed files with 1302 additions and 21 deletions

View File

@@ -340,12 +340,12 @@ Query accessibility tree by role/name.
Get MCP server and daemon version information. No parameters required.
### web_inject_axe_cremotemcp
Inject axe-core accessibility testing library.
Inject axe-core accessibility testing library. **NOTE**: Auto-injection happens automatically when using web_run_axe_cremotemcp or web_page_accessibility_report_cremotemcp, so manual injection is optional.
- `version` (optional): axe-core version (default: "4.8.0")
- Default timeout: 10s
### web_run_axe_cremotemcp
Run axe-core tests, return violations/passes/incomplete/inapplicable.
Run axe-core tests, return violations/passes/incomplete/inapplicable. **Automatically injects axe-core if not already loaded.**
- `run_only` (optional): array of tags (e.g., ["wcag2a", "wcag2aa", "wcag21aa"])
- `rules` (optional): specific rules configuration object
- Returns: {url, timestamp, test_engine, violations[], passes[], incomplete[], inapplicable[]}
@@ -395,7 +395,7 @@ Comprehensive form accessibility check: labels, ARIA, keyboard, contrast.
- Default timeout: 10s
### web_page_accessibility_report_cremotemcp
Comprehensive page assessment combining axe-core, contrast, keyboard, forms. Token-efficient format (~4k tokens vs ~80k).
Comprehensive page assessment combining axe-core, contrast, keyboard, forms. Token-efficient format (~4k tokens vs ~80k). **Automatically injects axe-core if not already loaded.**
- `tests` (optional): array of test types (e.g., ["wcag", "contrast", "keyboard", "forms"]) or ["all"]
- `standard` (optional): WCAG standard (default: "WCAG21AA")
- `include_screenshots` (optional): boolean (default: false)

1122
mcp/cremote_usage_guide.md Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -3525,7 +3525,7 @@ func main() {
// Register web_inject_axe tool
mcpServer.AddTool(mcp.Tool{
Name: "web_inject_axe_cremotemcp",
Description: "Inject axe-core accessibility testing library into the page for comprehensive WCAG 2.1 AA/AAA testing",
Description: "Inject axe-core accessibility testing library into the page. NOTE: Auto-injection happens automatically when using web_run_axe_cremotemcp or web_page_accessibility_report_cremotemcp, so manual injection is optional.",
InputSchema: mcp.ToolInputSchema{
Type: "object",
Properties: map[string]any{
@@ -3577,7 +3577,7 @@ func main() {
// Register web_run_axe tool
mcpServer.AddTool(mcp.Tool{
Name: "web_run_axe_cremotemcp",
Description: "Run axe-core accessibility tests and return violations, passes, incomplete checks, and inapplicable rules",
Description: "Run axe-core accessibility tests and return violations, passes, incomplete checks, and inapplicable rules. Automatically injects axe-core if not already loaded.",
InputSchema: mcp.ToolInputSchema{
Type: "object",
Properties: map[string]any{
@@ -5050,7 +5050,7 @@ func main() {
// Register web_page_accessibility_report tool
mcpServer.AddTool(mcp.Tool{
Name: "web_page_accessibility_report_cremotemcp",
Description: "Perform comprehensive accessibility assessment of a page and return a summarized report with actionable findings. This tool combines multiple accessibility tests (axe-core, contrast, keyboard, forms) and returns only the critical findings in a token-efficient format.",
Description: "Perform comprehensive accessibility assessment of a page and return a summarized report with actionable findings. This tool combines multiple accessibility tests (axe-core, contrast, keyboard, forms) and returns only the critical findings in a token-efficient format. Automatically injects axe-core if not already loaded.",
InputSchema: mcp.ToolInputSchema{
Type: "object",
Properties: map[string]any{