Analyzes test setups and coverage for Angular projects, providing framework detection and testing insights optimized for Angular applications
Detects and analyzes Cypress E2E testing configurations, test files, and provides comprehensive testing reports for Cypress-based test suites
Analyzes JavaScript project test setups, discovers test files, checks coverage metrics, and generates testing reports for JavaScript codebases
Detects Jest testing framework configurations, analyzes test files and structure, checks Jest coverage metrics, and provides comprehensive testing insights
Generates markdown-formatted test analysis reports with coverage metrics, recommendations, and visual feedback indicators
Detects and analyzes Mocha testing framework setups, discovers test files following Mocha patterns, and provides testing insights for Mocha-based projects
Analyzes test setups and coverage for React projects, providing framework detection and testing insights optimized for React applications
Analyzes TypeScript project test setups, discovers TypeScript test files, checks coverage metrics, and generates testing reports for TypeScript codebases
Detects Vite configuration files for testing setup analysis and provides insights for Vite-based project testing configurations
Detects and analyzes Vitest testing framework configurations, checks Vitest coverage metrics, and provides comprehensive testing insights for Vitest-based projects
Test Analyzer MCP Server
A Model Context Protocol (MCP) server that provides tools for analyzing unit test setups, checking coverage, and generating comprehensive test reports for JavaScript/TypeScript projects.
Features
- 🔍 Framework Detection: Automatically detects Jest, Vitest, Mocha, Cypress, and Playwright
- 📊 Coverage Analysis: Detailed coverage metrics with visual feedback
- 📁 Test Discovery: Finds and analyzes all test files in your project
- 🎯 Smart Recommendations: Actionable insights to improve your testing strategy
- 🚀 Frontend Focused: Optimized for React, Vue, Angular, and other frontend frameworks
Installation
The server is already configured in your MCP settings at:
Available Tools
1. analyze_test_setup
Analyzes the complete unit test setup of a repository.
Parameters:
repoPath
(required): Path to the repository to analyze
Returns:
- Framework name (jest, vitest, mocha, etc.)
- List of test files found
- Total test count
- Test structure (suites, tests, hooks)
- Coverage configuration
- Testing dependencies
- Summary report
2. check_coverage
Checks test coverage for a repository with detailed metrics.
Parameters:
repoPath
(required): Path to the repositoryrunTests
(optional, default: false): Whether to run tests to generate fresh coverage data
Returns:
- Line coverage percentage
- Statement coverage percentage
- Function coverage percentage
- Branch coverage percentage
- Visual status indicators (✅ Good, ⚠️ Fair, ❌ Poor)
- Overall coverage summary
3. get_test_summary
Generates a comprehensive test analysis report.
Parameters:
repoPath
(required): Path to the repository
Returns:
- Complete test setup overview
- Coverage metrics with visual feedback
- Categorized dependencies
- Actionable recommendations
- Markdown-formatted report
Sample Queries
Here are example queries you can use with Claude when this MCP server is active:
Basic Analysis
Coverage Analysis
Comprehensive Reports
Specific Inquiries
Supported Test Frameworks
Unit Testing
- Jest - Detected via jest.config.js, package.json
- Vitest - Detected via vitest.config.js, vite.config.js
- Mocha - Detected via .mocharc.js, .mocharc.json
E2E Testing
- Cypress - Detected via cypress.config.js, cypress.json
- Playwright - Detected via playwright.config.js
Supported Coverage Tools
- Jest Coverage (built-in)
- NYC/Istanbul (.nycrc, .nycrc.json)
- C8 (V8 coverage)
- Vitest Coverage (@vitest/coverage-c8, @vitest/coverage-istanbul)
Test File Patterns
The server automatically detects test files matching these patterns:
**/*.test.{js,jsx,ts,tsx}
**/*.spec.{js,jsx,ts,tsx}
**/__tests__/**/*.{js,jsx,ts,tsx}
test/**/*.{js,jsx,ts,tsx}
(Mocha)cypress/integration/**/*
(Cypress)cypress/e2e/**/*
(Cypress)**/*.cy.{js,jsx,ts,tsx}
(Cypress component tests)tests/**/*.{js,jsx,ts,tsx}
(Playwright)e2e/**/*.{js,jsx,ts,tsx}
(E2E tests)
Coverage Thresholds
The server evaluates coverage based on these thresholds:
- ✅ Good: ≥ 80% coverage
- ⚠️ Fair: ≥ 60% coverage
- ❌ Poor: < 60% coverage
Example Output
Test Setup Analysis
Coverage Report
Recommendations
Advanced Usage
Analyzing Multiple Projects
You can analyze multiple projects in sequence:
CI/CD Integration Ideas
Test Improvement Workflow
Troubleshooting
No Framework Detected
- Ensure package.json exists in the repository
- Check if test framework is in devDependencies
- Verify configuration files are present
No Coverage Data Found
- Run tests with
runTests: true
parameter - Ensure coverage is configured in test framework
- Check if coverage directory exists after running tests
No Test Files Found
- Verify test files follow common naming patterns
- Check if tests are in excluded directories (node_modules, dist, build)
- Ensure file extensions match (.test.js, .spec.ts, etc.)
Development
Adding New Frameworks
To support additional test frameworks, update the frameworks
array in the server implementation with:
- Framework name
- Configuration file patterns
- Test file patterns
Extending Coverage Support
The server can be extended to support additional coverage formats by:
- Adding new file patterns to
coverageFiles
array - Implementing parsers for specific coverage formats
- Supporting additional coverage reporters
License
ISC
Author
Giri - https://github.com/giri-jeedigunta/
Cline MCP screenshots
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Enables comprehensive analysis of JavaScript/TypeScript project testing setups by detecting frameworks like Jest, Vitest, and Cypress, analyzing test coverage metrics, and generating actionable recommendations for improving test quality. Provides detailed insights into test structure, dependencies, and coverage thresholds with visual feedback.
Related MCP Servers
- -securityFlicense-qualityProvides code completion, bug fixing, and test generation for multiple programming languages, integrating with the Mistral Codestral API to enhance code development processes.Last updated -2TypeScript
- AsecurityAlicenseAqualityProvides tools for frontend testing including code analysis, test generation, test execution, and React component testing for Jest and Cypress frameworks.Last updated -417TypeScriptMIT License
- AsecurityAlicenseAqualityA security testing tool that enables automated vulnerability detection including XSS and SQL injection, along with comprehensive browser interaction capabilities for web application penetration testing.Last updated -121,34617JavaScriptMIT License
- AsecurityAlicenseAqualityAI-optimized Vitest interface that provides structured test output, visual debugging context, and intelligent coverage analysis for more effective AI assistance with testing.Last updated -36721TypeScriptMIT License