Basic information
About Unit Test Generator MCP Server
# Unit Test Generator
Unit Test Generator is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by hanqizheng. Supported transport: stdio. Runtime: node. Source code is hosted on github.com.
Setup
{
"mcpServers": {
"unit-test-generator": {
"command": "node",
"args": [
"YOUR_MCP_SERVER_BUILD_INDEX_PATH"
],
"env": {
"PROJECT_PATH": "YOUR_COMPONENT_LIBRARY_PROJECT_PATH"
},
"transport": "stdio",
"enabled": true,
"description": "component library unit test generator"
}
}
}
{
"mcpServers": {
"unit-test-generator": {
"command": "node",
"args": [
"YOUR_MCP_SERVER_BUILD_INDEX_PATH"
],
"env": {
"PROJECT_PATH": "YOUR_COMPONENT_LIBRARY_PROJECT_PATH"
},
"transport": "stdio",
"enabled": true,
"description": "component library unit test generator"
}
}
}
{
"servers": {
"unit-test-generator": {
"command": "node",
"args": [
"YOUR_MCP_SERVER_BUILD_INDEX_PATH"
],
"env": {
"PROJECT_PATH": "YOUR_COMPONENT_LIBRARY_PROJECT_PATH"
},
"transport": "stdio",
"enabled": true,
"description": "component library unit test generator"
}
}
}
Unit Test Generator MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"unit-test-generator": {
"command": "node",
"args": [
"YOUR_MCP_SERVER_BUILD_INDEX_PATH"
],
"env": {
"PROJECT_PATH": "YOUR_COMPONENT_LIBRARY_PROJECT_PATH"
},
"transport": "stdio",
"enabled": true,
"description": "component library unit test generator"
}
}
}
Unit Test Generator MCP Server tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Unit Test Generator?
Unit Test Generator is an MCP server that uses the Model Context Protocol to automatically generate unit tests for component libraries. It is designed for developers working with component-based projects and integrates with Cursor via a local MCP server configuration.
How to use Unit Test Generator?
Clone the repository, install dependencies with npm install, and build with npm run build. Then add it as a global MCP server in Cursor by providing a JSON configuration that specifies the command (node), the path to the built index file, the PROJECT_PATH environment variable pointing to your component library, and the transport type (stdio).
Key features of Unit Test Generator
- Generates unit tests for component libraries
- Integrates with Cursor via MCP protocol
- Uses stdio transport for local execution
- Requires only Node.js and npm
Use cases of Unit Test Generator
- Automatically create unit tests for a React component library
- Maintain test coverage for a growing UI component set
- Speed up test writing in a Cursor development workflow
Frequently asked questions
1 What are the dependencies or runtime requirements?
You need Node.js and npm installed. The server is built with npm and run with the node command.
2 How is the server configured for Cursor?
You add it as a global MCP server in Cursor Settings, providing a JSON block that includes the command, args build index path), environment variable PROJECT_PATH, transport stdio, and enabled flag.
3 Where does the user data (project files) reside?
The server accesses the component library specified in the PROJECT_PATH environment variable. No external data is transferred; the server runs locally.
4 What transport does the server use?
It uses the stdio transport, meaning it communicates over standard input/output with the Cursor client.
5 Does the server require authentication?
No authentication is mentioned. The server is intended for local use only.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In