allure-mcp-analyzer
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
π Allure MCP Analyzer β AI-driven root-cause analysis for test failures
An MCP server + CLI that reads Allure results, clusters failures by normalized error signature (deterministic, no LLM), and then asks an LLM to explain each cluster β product bug, test bug, infrastructure, flaky, or data.
This is the pattern I use to turn a 300-red-test CI run into "3 root causes, here is what to do" in seconds. The clustering step is what makes it cheap and reliable: the LLM analyzes a handful of clusters, not every test.
β¨ What's inside
Area | Highlights |
Parsing | Reads |
Clustering | Normalizes volatile tokens (ids, hex, timestamps, paths, numbers) β stable signature β clusters sorted by impact |
Root-cause analysis | One LLM call per cluster; strict JSON contract ( |
Pluggable LLM |
|
MCP server | Tools: |
CLI |
|
Reports | Markdown (PR comment / Slack) with a summary table + collapsible affected-tests lists; JSON for dashboards |
Agent Skills |
|
CI | Lint + tests on 3.11/3.12, demo report uploaded as an artifact |
Related MCP server: MCP Test Failure Analysis Server
π Layout
src/allure_mcp_analyzer/
βββ parser.py # Allure results β TestResult
βββ cluster.py # signature normalization + clustering
βββ rca.py # prompt, LLM call, JSON contract β RootCause
βββ report.py # Markdown / JSON rendering
βββ llm.py # LLM protocol, FakeLLM, AnthropicLLM
βββ server.py # FastMCP server (5 tools)
βββ cli.py
examples/allure-results/ # 9 sample results β 3 clusters (assertion, timeout, locator)
tests/ # unittest / pytest
.claude/skills/ # agent skill for CI triage
.mcp.json # register the server with Claude Code / Cursorπ Quick start
pip install -e ".[dev]" # core + tests
pytest -q # 17 tests, all offline
# CLI on the bundled example (FakeLLM when no API key is set)
allure-analyze examples/allure-results --top 3Real analysis:
pip install -e ".[llm,mcp]"
export ANTHROPIC_API_KEY=... # see .env.example
export ANTHROPIC_MODEL=... # https://docs.claude.com/en/docs/about-claude/models
allure-analyze ./allure-results --md report.mdπ€ As an MCP server (Claude Code / Cursor)
.mcp.json is already in the repo β from the repo root:
claude
> Use allure-analyzer to triage ./allure-results and tell me which clusters block the release.Or invoke the bundled skill directly: /allure-triage.
π§ How clustering works
"AssertionError: expected total 59.98 but got 49.99"
"AssertionError: expected total 120.00 but got 100.00"
β normalize()
"AssertionError: expected total <n> but got <n>" β one cluster, 3 testsTimeouts on a shared dependency collapse the same way, so an outage shows up as one
infrastructure cluster instead of fifty unrelated reds.
π CI integration
The workflow uploads report.md / report.json as an artifact on every run. To post the
Markdown as a PR comment, pipe it through gh pr comment --body-file report.md.
π License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Test analytics for AI agents: test history, flaky tests, failure clusters, coverage.
Triage failing GitHub Actions jobs and see what self-heal repaired, in natural language.
No-code, AI-assisted UI testing: record new tests, run existing ones, and monitor the results.
Direct access to Cypress tests results and accessibility reports in your AI workflow.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables intelligent analysis of regression test failures and automatic discovery of solutions in JIRA. Analyzes test logs using AI-driven algorithms and matches errors with relevant JIRA issues through natural language interactions.-
- FlicenseBqualityDmaintenanceProvides tools to analyze test failures, cluster similar failures, and detect flaky tests from input or log files, helping QA teams debug and triage issues.3-
- AlicenseBqualityCmaintenanceEnables AI clients to analyze software test results and defect records, producing explainable GO, CONDITIONAL_GO, or NO_GO release-readiness recommendations with deterministic risk scoring, failed-test retrieval, defect hotspot ranking, and regression test planning.4MIT
- AlicenseAqualityCmaintenanceProvides AI coding agents with reliable root-cause diagnosis and minimal, high-confidence fixes for failing tests.31MIT