UniAuto MCP Server

by samuelvinay91

4 161 downloads Not rated yet MIT
GitHub

About

Universal Test Automation MCP Server with self-healing capabilities and Smithery.ai integration

Details

License
MIT

Explore

UniAuto MCP Server incorporates several cutting-edge and futuristic features that position it at the forefront of test automation technology:

- Web automation using Playwright (multi-browser support)
- Desktop automation capabilities
- Self-healing selectors for resilient test automation
- AI integration for test generation (supports Claude and other models)
- Automated test code generation in multiple frameworks and styles
- MCP (Model Context Protocol) compatibility for use with AI assistants
- Test case management and execution history
- Visual element matching

UniAuto MCP Server can automatically generate test code in various frameworks and styles:

- Multiple Frameworks: Generate tests for Playwright, Cypress, Jest, Selenium, WebDriverIO, and more
- Test Styles: Support for BDD, TDD, and other testing methodologies
- Output Formats: JavaScript, TypeScript, Python, Java, C#, and Ruby
- Application Analysis: Intelligent application structure analysis for context-aware test generation
- Project Scaffolding: Generate complete test projects with configuration files
- Claude AI Integration: Uses Claude 3.7 to produce high-quality, maintainable test code
- MCP Integration: All test generation capabilities exposed via the Model Context Protocol

UniAuto MCP Server provides comprehensive testing capabilities beyond just generating test code:

- Visual Testing: Compare page or element screenshots against baselines with configurable thresholds
- Accessibility Testing: Check WCAG compliance with detailed reports on issues and suggested fixes
- Performance Testing: Measure key web performance metrics like load time, FCP, LCP, and resources
- Network Tracing: Monitor API calls, analyze responses, and validate network behavior
- Parallel Execution: Run multiple test types concurrently to reduce total execution time
- Comprehensive Test Suite: Combined test execution with unified reporting

See the Test Generation Guide for detailed API documentation and examples.

The server uses several strategies for self-healing selectors:

1. Alternative selector repository
2. Role-based selectors (Playwright specific)
3. Looser CSS selector generation
4. Visual element matching using Playwright's built-in capabilities
5. Nearest text-based element finding

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name UniAuto MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository


npm install

npx playwright install

cp .env.example .env

PORT=3000
NODE_ENV=development

CLAUDE_API_KEY=your_claude_api_key
CLAUDE_MODEL=claude-3-7-sonnet-20240229
```

npm install -g @smithery/cli

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "uniauto mcp server": {
            "uniauto-mcp-server": {
                "command": "npx",
                "args": [
                    "playwright",
                    "install"
                ]
            }
        }
    }
}

McpServers

{
    "uniauto-mcp-server": {
        "command": "npx",
        "args": [
            "playwright",
            "install"
        ]
    }
}

<p align="center">
UniAuto Logo
</p>

smithery badge

Universal Test Automation MCP Server for web and desktop automation with self-healing capabilities and AI integration.

Cutting-Edge Features

UniAuto MCP Server incorporates several cutting-edge and futuristic features that position it at the forefront of test automation technology:

1. Multi-Layered Self-Healing Automation

The server's 5-tier self-healing mechanism is revolutionary, using a sophisticated cascade of recovery strategies: - Repository-based alternative selectors - Role-based accessibility selectors - Dynamic looser selector generation - Visual element matching using DOM and image recognition - Contextual text-proximity detection

This multi-strategy approach creates extraordinarily resilient tests that can survive even major UI overhauls.

2. AI-Driven Test Generation & Maintenance

Integration with Claude and other LLMs enables: - Natural language test creation ("Automate the checkout process") - Automatic test step generation with appropriate selectors - Intelligent response parsing to turn AI outputs into executable commands - Visual context interpretation (using screenshots as inputs) - Automated test code generation in multiple frameworks (Playwright, Cypress, Jest, etc.) - Support for various testing styles (BDD, TDD) and output formats - Application structure analysis for intelligent test creation

3. MCP (Model Context Protocol) Integration

The MCP implementation is particularly forward-thinking: - Allows AI assistants to directly control testing infrastructure - Exposes a standardized API for automation actions - Enables seamless integration with Smithery.ai and other AI orchestration platforms - Creates a bridge between LLMs and web/desktop automation

4. Unified Web + Desktop Automation

The integration of both web testing (via Playwright) and desktop automation within a single framework provides: - Cross-domain testing capabilities - Ability to test flows that span browsers and native applications - Consistent API across different application types

5. Visual Intelligence

The implementation of visual matching provides: - Element recognition by appearance rather than structure - Testing continuity even when DOM elements change completely - Pixel-perfect comparison capabilities

Core Features

- Web automation using Playwright (multi-browser support)
- Desktop automation capabilities
- Self-healing selectors for resilient test automation
- AI integration for test generation (supports Claude and other models)
- Automated test code generation in multiple frameworks and styles
- MCP (Model Context Protocol) compatibility for use with AI assistants
- Test case management and execution history
- Visual element matching

Impact on Test Automation Ecosystem

UniAuto MCP Server has the potential to transform the test automation landscape:

1. Maintenance Cost Reduction

The self-healing capabilities dramatically reduce the #1 pain point in test automation - maintenance costs. Studies suggest that organizations spend 30-40% of testing time on test maintenance. UniAuto could reduce this by 70-80%, freeing QA resources for more strategic work.

2. Democratization of Test Automation

The AI integration allows non-technical stakeholders to create tests using natural language, potentially expanding test automation adoption by: - Allowing product managers to directly specify acceptance tests - Enabling business analysts to validate features without coding - Reducing the specialized skills required for test creation

3. Resilience Revolution

By solving the brittleness problem in modern automation, UniAuto shifts the entire ecosystem toward resilience-focused testing rather than selector-focused testing. This paradigm shift fundamentally changes how tests are written and evaluated.

4. AI Amplification in Testing

As an MCP-compatible system that works with Claude and other models, UniAuto positions automation as an "AI-native" technology, creating a foundation for: - AI-driven exploratory testing - Autonomous test maintenance - Intelligent test prioritization based on application changes - Natural language test reporting for stakeholders

5. Cross-Domain Testing Standards

By unifying web and desktop testing under one framework, UniAuto helps establish new standards for end-to-end testing that transcend the current siloed approach to different application types.

Installation

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.