unit-test-generator-mcp-server
If you are the rightful owner of unit-test-generator-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
Unit Test Generator is an MCP protocol-based server designed to automate the generation of unit tests.
Unit Test Generator
一个 MCP 协议的单元测试生成器。
使用
git clone git@github.com:hanqizheng/unit-test-generator-mcp-server.git
cd unit-test-generator-mcp-server
npm install
npm run build
在 Cursor 完成集成
-
Cursor -> Preferences -> Cursor Settings -> MCP -> Add new global MCP server
-
输入以下配置
{
"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"
}
}
}