MCP.so
登录

Unit Test Generator MCP Server

@hanqizheng

基本信息

分类

开发工具

最近更新

传输方式

stdio

作者

hanqizheng

关于 Unit Test Generator MCP Server

暂无概览

Unit Test Generator MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "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 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

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

常见问题

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.

评论

开发工具 分类下的更多 MCP 服务器