Skip to main content
Glama

πŸ§ͺ QA MCP - Comprehensive Localhost Quality Assurance

A comprehensive MCP (Model Context Protocol) extension for automated QA testing of localhost applications. Designed for Claude Code to provide intelligent bug detection, console monitoring, and detailed issue reporting.

🎯 What It Does

QA MCP transforms localhost testing from manual checking into automated, comprehensive quality assurance:

βœ… Health Check & Diagnostics

  • Detailed failure analysis when localhost isn't working

  • Specific error diagnosis: ECONNREFUSED, timeouts, HTTP errors

  • Step-by-step troubleshooting with exact commands to fix issues

βœ… Real-Time Console Monitoring

  • JavaScript error detection with stack traces

  • Network failure analysis (404s, 500s, CORS issues)

  • Security warning detection (Mixed content, CSP violations)

  • Performance bottleneck identification

βœ… Comprehensive Functional QA

  • Form testing and validation checks

  • Navigation link verification

  • Responsive design testing across device sizes

  • Accessibility auditing (missing alt text, form labels)

  • Custom user flow testing

βœ… Professional Bug Reports

  • Issue categorization by severity (Critical/Major/Minor)

  • Root cause analysis with specific fix recommendations

  • Visual evidence via automated screenshots

  • Actionable priority rankings for development planning

Related MCP server: TestPilot MCP

πŸš€ Quick Start

Installation

# Install globally
npm install -g qa-mcp

# Or clone and build locally
git clone https://github.com/iankar8/qa-mcp.git
cd qa-mcp
npm install
npm run build
npm link

Claude Code Configuration

Add to your Claude Desktop config (~/.anthropic/claude_desktop_config.json):

{
  "mcpServers": {
    "qa-mcp": {
      "command": "qa-mcp",
      "env": {}
    }
  }
}

Install the QA Engineer Subagent

# Copy the subagent to Claude Code
cp qa-engineer.md ~/.anthropic/subagents/

Usage

  1. Start your application:

    npm run dev  # or npm start
  2. In Claude Code, ask:

    "QA test my localhost application"

πŸ› οΈ Available Tools

health_check

Advanced endpoint testing with detailed failure analysis:

health_check({
  url: "http://localhost:3000",
  timeout: 10000,
  expectedStatus: 200
})

console_monitor

Real-time console monitoring with error categorization:

console_monitor({
  url: "http://localhost:3000",
  duration: 30000,
  filters: {
    errors: true,
    warnings: true,
    network: true,
    security: true
  }
})

functional_qa

Comprehensive functional testing suite:

functional_qa({
  url: "http://localhost:3000",
  testSuite: "comprehensive", // basic, auth, forms, navigation, responsive
  userFlows: [
    {
      name: "User Signup",
      steps: [
        { action: "goto", value: "/auth/signup" },
        { action: "type", selector: "#email", value: "test@example.com" },
        { action: "click", selector: "#signup-button" },
        { action: "verify", selector: "#success", expected: "Account created" }
      ]
    }
  ]
})

Other Tools

  • capture_screenshot - Visual evidence collection

  • detect_framework - Automatic framework detection

  • test_endpoints - Batch endpoint testing

  • generate_test_report - Comprehensive HTML/JSON reports

πŸ“‹ Example Workflows

Broken Application Diagnosis

User: "My localhost isn't working"

QA Engineer: 🚨 CRITICAL ISSUE DETECTED
❌ Health check FAILED: connect ECONNREFUSED 127.0.0.1:3000

πŸ› οΈ IMMEDIATE ACTIONS REQUIRED:
1. Start development server: npm run dev
2. Check if port 3000 is correct  
3. Verify server configuration

πŸ’‘ RECOMMENDED: cd /your/project && npm run dev

Comprehensive QA Testing

User: "QA test my localhost thoroughly"

QA Engineer: βœ… Starting comprehensive QA analysis...

πŸ“Š QA RESULTS:
- Total Tests: 15
- Passed: 12 βœ…  
- Failed: 3 ❌
- Critical Issues: 1 🚨
- Major Issues: 2 ⚠️

🚨 CRITICAL: JavaScript error breaks chat functionality
⚠️ MAJOR: Form validation allows invalid emails
πŸ“ MINOR: Missing alt text on 3 images

πŸ“‹ Full report generated: qa-report-2024-01-15.html

🧠 Smart Features

Framework-Aware Testing

  • Next.js: API route testing, SSR validation

  • React: Component rendering, console errors

  • Vue.js: Reactive updates, dev tools

  • Express: Route testing, middleware validation

  • Generic: Universal HTTP health checks

Intelligent Issue Detection

  • JavaScript Errors: Automatic categorization and stack traces

  • Network Failures: Request/response analysis with suggestions

  • UI Problems: Layout issues, responsive design failures

  • Performance: Memory leaks, slow queries, bundle analysis

Automated Categorization

  • Critical: Breaks core functionality, prevents usage

  • Major: Significantly impacts user experience

  • Minor: Polish improvements, accessibility enhancements

πŸ“Š Sample QA Report

πŸ§ͺ QA Test Report
Framework: Next.js | Generated: 2024-01-15 14:30:21

πŸ“Š QA Summary:
Total Tests: 15 | Passed: 12 | Failed: 3
Critical: 1 | Major: 2 | Minor: 4

πŸ› Issues Found:
🚨 CRITICAL: TypeError in /api/chat - Chat functionality broken
⚠️ MAJOR: Form validation bypassed on signup page  
⚠️ MAJOR: Navigation link returns 404: /pricing
πŸ“ MINOR: Missing alt text on product images
πŸ“ MINOR: Page titles missing for SEO
πŸ“ MINOR: Slow API response: /api/analyze (2.1s)
πŸ“ MINOR: Form labels missing for accessibility

πŸ–₯️ Console Monitoring: 1 error, 2 warnings detected
πŸ§ͺ Functional QA: 12/15 tests passed
πŸ“Έ Visual Evidence: 4 screenshots captured

🀝 Framework Support

Framework

Health Checks

Console Monitoring

Functional Testing

Performance

Next.js

βœ… API routes

βœ… SSR errors

βœ… Full suite

βœ… Bundle

React

βœ… Dev server

βœ… Component errors

βœ… UI testing

βœ… Memory

Vue.js

βœ… Dev server

βœ… Reactive issues

βœ… Component tests

βœ… Performance

Express

βœ… Endpoints

βœ… Server errors

βœ… Route testing

βœ… Response

Generic

βœ… HTTP checks

βœ… JS errors

βœ… Basic testing

βœ… Load times

πŸ“š Documentation

πŸ”§ Development

# Clone repository
git clone https://github.com/iankar8/qa-mcp.git
cd qa-mcp

# Install dependencies
npm install

# Build
npm run build

# Development mode
npm run dev

# Run tests
npm test

πŸ“„ License

MIT License - see LICENSE file for details.

πŸ™‹β€β™‚οΈ Support

🌟 Features at a Glance

Feature

Description

Benefit

πŸ₯ Health Diagnostics

Detailed failure analysis

Faster debugging

πŸ–₯️ Console Monitoring

Real-time error detection

Catch issues early

πŸ§ͺ Functional QA

Comprehensive testing suite

Prevent user issues

πŸ› Bug Reports

Professional issue tracking

Actionable development

πŸ“Έ Visual Evidence

Automated screenshots

Clear problem documentation

🎯 Priority Ranking

Issue severity classification

Efficient development focus

πŸ€– Framework Detection

Automatic project analysis

Zero configuration

πŸ“Š Performance Analysis

Speed and memory monitoring

Optimization insights


QA MCP - Your automated QA engineer for localhost applications! πŸš€

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI models (Claude, ChatGPT, GitHub Copilot) to run and analyze local tests, rerun failures, and orchestrate QA workflows using existing UI and API test frameworks.
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to create, run, autocorrect, and monitor Playwright tests for your app with a local dashboard, credential vault, and public status page.
      16
      MIT