Skip to main content
Glama
EmptyRabbit

testcase-generator-mcp

by EmptyRabbit

testcase-generator-mcp

基于 Model Context Protocol (MCP) 的测试用例生成服务,让 AI 助手根据需求文档、技术文档、设计稿等上下文自动生成 Markdown 格式的测试用例,并可选导出为 Xmind 思维导图。

流程概览

功能特性

  • 测试用例生成:根据需求描述、技术文档等上下文生成结构化 Markdown 测试用例

  • Xmind 导出:可选将测试用例生成为 Xmind 思维导图文件

  • 多传输方式:支持 stdio(本地)、SSE、streamable HTTP

  • 本地与远程:可在本机或作为远程 MCP 服务使用

Related MCP server: Swagger Testcase MCP

使用方式

服务支持三种传输方式:

1. Stdio 传输(本地使用)

uvx testcase-generator-mcp stdio

Cursor / IDE 的 MCP 配置示例:

{
  "mcpServers": {
    "testcase-generator": {
      "command": "uvx",
      "args": [
        "testcase-generator-mcp",
        "stdio"
      ]
    }
  }
}

2. SSE 传输

uvx testcase-generator-mcp sse

SSE 连接配置

{
  "mcpServers": {
    "testcase-generator": {
      "url": "http://localhost:8018/sse"
    }
  }
}

3. Streamable HTTP 传输

uvx testcase-generator-mcp streamable_http

Streamable HTTP 连接配置

{
  "mcpServers": {
    "testcase-generator": {
      "url": "http://localhost:8018/mcp"
    }
  }
}

环境变量

SSE 与 Streamable HTTP

SSEStreamable HTTP 方式运行时,可通过环境变量控制监听地址与端口:

变量

说明

默认值

FASTMCP_HOST

监听地址

0.0.0.0

FASTMCP_PORT

监听端口

8018

Stdio 传输

使用 stdio 时无需配置上述环境变量,按本地进程方式运行即可。

可用工具

generate_test_case

根据需求文档、技术文档、设计稿等上下文生成 Markdown 格式测试用例;可选生成 Xmind 思维导图。

generate_test_case(
    is_need_xmind: bool = False
) -> str
  • is_need_xmind: 是否需要生成 Xmind 思维导图文件,默认为 False;仅在用户明确提及「xmind」「思维导图」等时设为 True

  • Returns: 生成的测试用例内容 Markdown 文本;若 is_need_xmind=True 则同时生成 .xmind 文件

MCP 调用示例

详见 调用过程示例

License

MIT License,详见 LICENSE

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    A
    quality
    F
    maintenance
    MCP server for API test case generation from Swagger/OpenAPI specs. Parses Swagger 2.0 and OpenAPI 3.x, generates test cases across 8 categories (positive, negative, boundary, auth, security, idempotency, pagination, business logic), and exports to Postman, TestRail, Allure, k6, pytest, Gherkin, and CSV. Supports internal corporate APIs with auth headers. Auto-saves export files to your working di
    10
    12
    2
    MIT
  • A
    license
    B
    quality
    A
    maintenance
    AI-native Model Context Protocol (MCP) server for TestRail. Lets Claude, Cursor, Windsurf, and other AI assistants browse projects, create and update test cases, kick off test runs, and record results through natural-language conversation — with strongly-typed tool schemas and per-project custom field validation that helps LLMs generate valid TestRail requests on the first try.
    24
    278
    28
    Apache 2.0

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

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/EmptyRabbit/testcase-generator-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server