MCP Frontend Testing Server
Enables serverless deployment on AWS Lambda for scalable test execution and analysis
Provides tools for generating and executing Cypress tests, supporting unit, component, and e2e test types for JavaScript/TypeScript code
Provides containerization support for deploying the testing server in isolated environments
Supports deployment to Google Cloud Run for serverless operation of the testing infrastructure
Analyzes JavaScript code to determine appropriate testing strategies and generate tests based on the code structure
Enables generating and running Jest tests for JavaScript/TypeScript code, with specific support for unit and component testing
Offers specialized tools for testing React components, including automated test generation and execution with props handling
Analyzes TypeScript code to determine testing approaches and generate appropriate tests with type-aware capabilities
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Frontend Testing Servergenerate a unit test for this React component using Jest"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Frontend Testing Server
Description
This MCP server provides tools for frontend testing, including:
Code Analysis: Analyzes JavaScript/TypeScript code to determine appropriate testing strategies.
Test Generation: Generates unit and component tests for Jest and Cypress.
Test Running: Executes tests using Jest and Cypress and returns results.
Component Testing: Provides a tool specifically for testing React components.
Related MCP server: Frontend Code Analysis MCP
Getting Started
Installation
Clone the repository: `git clone mcp-frontend-testing`
Navigate to the project directory: `cd mcp-frontend-testing`
Install dependencies: `npm install`
Running the Server
HTTP Transport
```bash
Build the server
npm run build
Start the server with HTTP transport
npm run start:http ```
Stdio Transport
```bash
Build the server
npm run build
Start the server with Stdio transport
npm run start:stdio ```
Usage
Tools
analyzeCode: Analyzes code and returns analysis results.
Parameters:
`code` (string, required): The source code to analyze.
`language` (enum, optional): Language of the code (`javascript` | `typescript` | `jsx` | `tsx`, default: `javascript`).
generateTest: Generates test code based on source code and framework.
Parameters:
`code` (string, required): The source code to generate tests for.
`framework` (enum, required): Testing framework (`jest` | `cypress`).
`type` (enum, required): Type of test (`unit` | `component` | `e2e`).
`language` (enum, optional): Language of the code (`javascript` | `typescript` | `jsx` | `tsx`, default: `javascript`).
`description` (string, optional): Description of the test case.
runTest: Runs tests and returns results.
Parameters:
`sourceCode` (string, required): The source code being tested.
`testCode` (string, required): The test code to execute.
`framework` (enum, required): Testing framework (`jest` | `cypress`).
`type` (enum, required): Type of test (`unit` | `component` | `e2e`).
`config` (record, optional): Configuration object for test execution.
testReactComponent: Runs component tests specifically for React components.
Parameters:
`componentCode` (string, required): The source code of the React component.
`testCode` (string, optional): Test code for the component (auto-generated if not provided).
`framework` (enum, optional): Testing framework (`jest` | `cypress`, default: `jest`).
`props` (record, optional): Props to pass to the component during testing.
`autoGenerateTest` (boolean, optional): Automatically generate test code if not provided (default: `true`).
Resources
templates: Provides test templates.
URI: `templates://{framework}/{type}`
Parameters:
`framework` (string, required): Testing framework (`jest` | `cypress`).
`type` (string, required): Type of template (`unit` | `component`).
docs: Provides documentation for testing frameworks.
URI: `docs://{topic}`
Parameters:
`topic` (string, required): Documentation topic (`jest` | `cypress` | `react-testing-library`).
Deployment
Docker
Build and run the server using Docker:
```bash docker build -t mcp-frontend-testing . docker run -p 3000:3000 mcp-frontend-testing ```
Cloud
Deploy to cloud platforms like AWS Lambda, Google Cloud Run, or Azure Functions for serverless or containerized deployments.
Note: This server is designed to be used with an MCP client to enable LLMs to perform frontend testing tasks.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseCqualityDmaintenanceEnables 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.Last updated31
- Alicense-qualityDmaintenanceAnalyzes frontend project code (React, Vue, Angular) and converts it into AI-understandable flow diagrams and object structures. Provides tools for code analysis, variable/function/component inspection, and project structure insights.Last updated28MIT
- Flicense-qualityDmaintenanceEnables AI-powered frontend code review and unit test generation for Phabricator diffs, supporting React/TypeScript analysis, multi-dimensional code review (performance, security, accessibility, i18n), and intelligent test case generation with Vitest/Jest support.Last updated1
- Flicense-qualityDmaintenanceProvides real-time debugging, code quality monitoring, and performance insights for React/Next.js applications with features including Chrome DevTools integration, breakpoint management, complexity analysis, and live error streaming.Last updated271
Related MCP Connectors
Flaky test detection, root cause analysis, and fix suggestions for development teams.
AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).
Provide AI-powered real-time analysis and intelligence on NPM packages, including security, depend…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/StudentOfJS/mcp-frontend-testing'
If you have feedback or need assistance with the MCP directory API, please join our Discord server