Skip to main content
Glama

MCP-Allure

MCP-Allure 是一个 MCP 服务器,可以读取 Allure 报告并以 LLM 友好的格式返回它们。

动机

随着人工智能和大型语言模型 (LLM) 在软件开发中日益重要,弥合传统测试报告与人工智能辅助分析之间差距的需求也日益增长。传统的 Allure 测试报告格式虽然易于阅读,但并未针对 LLM 的使用和处理进行优化。

MCP-Allure 通过将 Allure 测试报告转换为 LLM 友好格式来解决这一挑战。这种转换使 AI 模型能够更好地理解、分析并提供关于测试结果的洞察,从而更轻松地:

  • 生成有意义的测试摘要和见解

  • 识别测试失败的模式

  • 针对失败的测试提出潜在的修复建议

  • 实现更有效的 AI 辅助调试

  • 促进自动化测试文档生成

通过优化 LLM 使用的测试报告,MCP-Allure 帮助开发团队在测试工作流程中充分利用 AI 工具的潜力,从而实现更高效、更智能的测试分析和维护。

已解决的问题

  • 效率:传统的测试报告格式并未针对人工智能的使用进行优化,导致测试分析和维护效率低下。

  • 准确性:人工智能模型可能难以解释和分析未针对人工智能消费进行优化格式的测试报告。

  • 成本:将测试报告转换为 LLM 友好格式可能既耗时又昂贵。

主要特点

  • 转换:将 Allure 测试报告转换为 LLM 友好格式。

  • 优化:优化 AI 消耗的测试报告。

  • 效率:高效转换测试报告。

  • 成本:以低成本转换测试报告。

  • 准确性:以高精度转换测试报告。

安装

要使用 uv 安装 mcp-repo2llm:

{
  "mcpServers": {
    "mcp-allure-server": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "/Users/crisschan/workspace/pyspace/mcp-allure/mcp-allure-server.py"
      ]
    }
  }
}

工具

获取魅力报告

  • 读取Allure报告并返回JSON数据

  • 输入:

    • report_dir:Allure HTML报告路径

  • 返回:

    • 字符串,格式化的JSON数据,像这样:

{
    "test-suites": [
        {
            "name": "test suite name",
            "title": "suite title",
            "description": "suite description",
            "status": "passed",
            "start": "timestamp",
            "stop": "timestamp",
            "test-cases": [
                {
                    "name": "test case name",
                    "title": "case title",
                    "description": "case description",
                    "severity": "normal",
                    "status": "passed",
                    "start": "timestamp",
                    "stop": "timestamp",
                    "labels": [

                    ],
                    "parameters": [

                    ],
                    "steps": [
                        {
                            "name": "step name",
                            "title": "step title",
                            "status": "passed",
                            "start": "timestamp",
                            "stop": "timestamp",
                            "attachments": [

                            ],
                            "steps": [

                            ]
                        }
                    ]
                }
            ]
        }
    ]
}

Available Tools

1 tool
get_allure_reportC

read allure report and return json data

Inputs: results_dir (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.7/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The tool 'get_allure_report' has a single, clearly defined purpose of reading Allure reports and returning JSON data.

    Naming Consistency5/5

    The single tool name 'get_allure_report' follows a clear verb_noun pattern (get + report). Since there is only one tool, consistency is inherently perfect with no deviations to assess.

    Tool Count2/5

    The server has only one tool, which feels thin for a reporting domain like Allure. A single tool for reading reports lacks essential operations such as generating, listing, or managing reports, making it under-scoped for typical use cases.

    Completeness2/5

    The tool surface is severely incomplete for an Allure reporting server. It only provides a 'get' operation for reports, missing critical functions like creating reports, listing available reports, updating report data, or deleting reports, which are essential for full lifecycle coverage.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      An AI-powered server for code analysis, requirements validation, and automated fix proposals with human-in-the-loop confirmation. It supports multiple LLM providers and ensures safe file modifications through automatic backups and path validation.
      -
    • A
      license
      B
      quality
      B
      maintenance
      An MCP server for Allure TestOps that enables AI agents to manage test cases, defects, test plans, and other test management entities with clear, easy-to-use tools and helpful error guidance.
      70
      432 PyPI
      8
      Apache 2.0