loading…
Search for a command to run...
loading…
Provides tools to analyze test failures, cluster similar failures, and detect flaky tests from input or log files, helping QA teams debug and triage issues.
Provides tools to analyze test failures, cluster similar failures, and detect flaky tests from input or log files, helping QA teams debug and triage issues.
This project contains Python MCP servers for QA-oriented test failure analysis, built with FastMCP.
mcp-server-demo/
├── FailureAnalysisFromLogs.py
├── README.md
├── logs/
├── pyproject.toml
├── testFailureAnalysis.py
└── uv.lock
testFailureAnalysis.pyanalyze_test_failurecluster_failuresdetect_flaky_testsFailureAnalysisFromLogs.pyanalyze_test_failure.log files from the logs/ folderlogs/pyproject.tomluv.lock.vscode/mcp.jsontest-failure-analysis, test-failure-analysis-from-logs, and mcp-atlassian3.11 or lateruvFrom the repository root:
cd mcp-server-demo
uv sync
Start the input-based MCP server with:
uv run python testFailureAnalysis.py
Start the log-based MCP server with:
uv run python FailureAnalysisFromLogs.py
analyze_test_failureAnalyzes a failed test using the test name, stack trace, and logs, then returns a likely failure category and recommendation.
analyze_test_failure in FailureAnalysisFromLogs.pyAnalyzes local .log files from the logs/ folder and returns failure classification, likely root cause, recommendation, and important error lines. It can analyze all logs, a specific test name, or an exact log file name.
cluster_failuresGroups similar failures by stack trace signature so repeated patterns are easier to spot.
detect_flaky_testsReviews historical pass/fail results and identifies tests that show flaky behavior.
The repository root contains .vscode/mcp.json, which can be used by MCP-aware tooling for local server setup during development. It includes entries for test-failure-analysis, test-failure-analysis-from-logs, and mcp-atlassian.
The local MCP configuration includes an mcp-atlassian server entry for Jira access.
Use the configured mcp-atlassian entry from .vscode/mcp.json in your MCP-aware client.
To run it manually, use:
JIRA_URL=<your-jira-url> \
JIRA_USERNAME=<your-jira-username> \
JIRA_API_TOKEN=<your-jira-api-token> \
uvx mcp-atlassian
uv is not available, install it and reopen the terminal.3.11+ is active.uv sync again inside mcp-server-demo.Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"mcp-test-failure-analysis-server": {
"command": "npx",
"args": []
}
}
}