Metadata-Version: 2.4
Name: spectest-mcp
Version: 0.1.0
Summary: 基于 HTML 原型和 PRD 文档生成测试用例的 MCP Server
License: MIT
Keywords: html,mcp,prd,qa,test,testcase
Requires-Python: >=3.10
Requires-Dist: beautifulsoup4>=4.12.0
Requires-Dist: mcp>=1.0.0
Requires-Dist: openpyxl>=3.1.0
Requires-Dist: python-docx>=1.1.0
Provides-Extra: pdf
Requires-Dist: pymupdf>=1.23.0; extra == 'pdf'
Description-Content-Type: text/markdown

# spectest-mcp

基于 HTML 原型和 PRD 文档，自动生成测试用例的 MCP Server。

## 工具列表

| 工具 | 说明 |
|------|------|
| `parse_html_prototype` | 解析 HTML 原型文件，提取表单、按钮、链接等结构 |
| `read_prd_document` | 读取需求文档（支持 .txt / .md / .pdf / .docx） |
| `generate_test_cases` | 组装 HTML 结构和 PRD 内容，生成供 LLM 推理的提示词 |
| `export_test_cases` | 将测试用例导出为 XMind / Markdown / Excel 格式 |

## 安装

```bash
pip install spectest-mcp
```

## 配置（mcp.json）

```json
{
  "mcpServers": {
    "spectest": {
      "command": "uvx",
      "args": ["spectest-mcp@latest"]
    }
  }
}
```

## 依赖

- `mcp` — MCP SDK
- `beautifulsoup4` — HTML 解析
- `python-docx` — DOCX 读取
- `openpyxl` — Excel 导出
- `pymupdf`（可选）— PDF 读取，安装：`pip install spectest-mcp[pdf]`
