get_allure_report
Extract and convert Allure test reports into JSON format for AI analysis, enabling detailed insights into test failures and potential solutions.
Instructions
read allure report and return json data
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results_dir | Yes |
Implementation Reference
- mcp-allure-server.py:11-19 (handler)The handler function that reads an Allure report from the given results_dir, parses it using AllureSuiteParser, and returns the data as a formatted JSON string. Handles exceptions by returning the error message.async def get_allure_report(results_dir: str) -> str: """ read allure report and return json data """ try: parser = AllureSuiteParser(results_dir) return json.dumps(parser.parse(), indent=2, ensure_ascii=False) except Exception as e: return str(e)
- mcp-allure-server.py:10-10 (registration)The @mcp.tool() decorator registers the get_allure_report function as an MCP tool.@mcp.tool()