Skip to content

MCP-295 Add detailed failure context to QG status tool#220

Draft
nquinquenel wants to merge 2 commits intomasterfrom
feature/nq/MCP-295-enhance-qg-tool
Draft

MCP-295 Add detailed failure context to QG status tool#220
nquinquenel wants to merge 2 commits intomasterfrom
feature/nq/MCP-295-enhance-qg-tool

Conversation

@nquinquenel
Copy link
Member

No description provided.

@hashicorp-vault-sonar-prod
Copy link

hashicorp-vault-sonar-prod bot commented Feb 15, 2026

MCP-295

@nquinquenel nquinquenel force-pushed the feature/nq/MCP-295-enhance-qg-tool branch from adb801f to 027003f Compare February 15, 2026 19:10
@sonarqubecloud
Copy link

SonarQube reviewer guide

Review in SonarQube

Summary: Rename and significantly enhance the quality gate status tool from get_project_quality_gate_status to check_quality_gate_status, making projectKey required while adding intelligent failure details (coverage, issues, hotspots, duplications, dependencies) and a basicReport mode for simpler output.

Review Focus:

  • The substantial logic added to ProjectStatusTool.java (400+ lines) that fetches and aggregates data from multiple APIs (measures, issues, hotspots, SCA) when quality gates fail. Pay close attention to error handling in buildFailureDetails() methods—they catch exceptions broadly, which could mask real issues.
  • Parameter changes: inNewCodePeriod added to IssuesApi.SearchParams with special handling using componentKeys instead of projects when filtering new code—verify this API contract is correct.
  • The response schema overhaul in ProjectStatusToolResponse.java with many new nested records; ensure JSON serialization aligns with the test expectations.

Start review at: ProjectStatusTool.java. This is the core of the change—it orchestrates the new detailed failure reporting and drives all other modifications. The complexity here determines whether the feature works correctly and performs acceptably.

💬 Please send your feedback

Quality Gate Failed Quality Gate failed

Failed conditions
1 New issue
35.2% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant