Unit Test Generator MCP Server
A unit test generator based on the MCP protocol for generating unit tests for component libraries
rating : 2 points
downloads : 7.6K
What is the Unit Test Generator?
This is a unit test generation tool based on the Model Context Protocol (MCP), specifically designed for component library projects. It can automatically analyze component code and generate corresponding unit test code, significantly improving development efficiency.How to use the Unit Test Generator?
This tool can be integrated into the Cursor editor through simple configuration, and then it can automatically generate test cases for your components.Applicable scenarios
It is particularly suitable for front - end projects with a large number of components to be tested or projects that need to quickly establish test coverage.Main features
Automatic test generation
Automatically analyze the component code structure and generate complete test cases.
MCP protocol integration
Seamlessly integrate with the Cursor editor through the standard MCP protocol.
Custom configuration
Supports configuring parameters such as project paths through environment variables.
Advantages
Significantly reduce the time for writing test cases
Perfectly integrate with the Cursor editor
Support mainstream front - end framework components
Limitations
Requires Node.js environment support
Currently only supports use through the Cursor editor
The test generation for complex components may require manual adjustment
How to use
Clone the repository
First, you need to clone the project to your local machine.
Install dependencies
Enter the project directory and install the required dependencies.
Build the project
Build the project to generate an executable file.
Configure Cursor
Add MCP server configuration in Cursor settings.
Usage examples
Generate tests for a React button component
Automatically generate test cases for click events and props validation for a simple React button component.
Generate tests for a Vue form component
Generate tests for form submission and validation logic for a Vue component with form validation.
Frequently Asked Questions
Why do I need to set the PROJECT_PATH environment variable?
Which front - end frameworks are supported?
Can the generated test cases be customized?
Related resources
GitHub repository
Project source code
MCP protocol documentation
Official documentation for the Model Context Protocol
Cursor editor
An AI code editor supporting the MCP protocol

Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
 15.1K
 4.5 points

Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
 16.2K
 4.3 points

Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
 25.2K
 5 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
 46.3K
 4.3 points

Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C# 
 19.7K
 5 points

Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
 47.3K
 4.5 points

Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
 16.3K
 4.5 points

Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
 30.5K
 4.8 points

