sonarqube-integration
π―Skillfrom bitsoex/bitso-java
Integrates SonarQube with MCP to enable natural language querying of Java code quality issues, analysis, and quality gate checks.
Installation
npx skills add https://github.com/bitsoex/bitso-java --skill sonarqube-integrationSkill Details
>
Overview
# SonarQube Integration
SonarQube integration via MCP (Model Context Protocol) for Java code quality analysis.
When to use this skill
- Finding and fixing SonarQube issues
- Checking quality gate status
- Analyzing code for quality issues
- Understanding SonarQube rules
- Prioritizing issue remediation
Skill Contents
Sections
- [When to use this skill](#when-to-use-this-skill) (L23-L30)
- [Quick Start](#quick-start) (L54-L66)
- [MCP Tools Available](#mcp-tools-available) (L67-L77)
- [Common Workflows](#common-workflows) (L78-L101)
- [Supported IDEs](#supported-ides) (L102-L115)
- [References](#references) (L116-L122)
- [Related Rules](#related-rules) (L123-L128)
- [Related Skills](#related-skills) (L129-L134)
Available Resources
π references/ - Detailed documentation
- [common rules](references/common-rules.md)
- [copilot cli setup](references/copilot-cli-setup.md)
- [intellij setup](references/intellij-setup.md)
- [mcp tools](references/mcp-tools.md)
---
Quick Start
The SonarQube MCP server runs remotely at https://sonarqube-mcp.bitso.io/mcp and is automatically configured in all supported IDEs.
No setup required - just use natural language:
```text
"Find HIGH severity issues in my-project"
"Show me details about rule java:S1128"
"What's the quality gate status for my-service?"
"Analyze this code for SonarQube issues"
```
MCP Tools Available
| Tool | Purpose |
|------|---------|
| list_projects | List all SonarQube projects |
| get_issues | Get issues for a project |
| get_issue_details | Get details for a specific issue |
| get_rule | Get rule documentation |
| get_quality_gate | Check quality gate status |
| analyze_code | Analyze code snippet |
Common Workflows
1. Fix Issues by Severity
```text
"Find all BLOCKER issues in payment-service"
"Get details for issue AYx123..."
"Show me the rule java:S2259"
```
2. Check Quality Gate
```text
"What's the quality gate status for my-service?"
"List all projects I have access to"
```
3. Understand Rules
```text
"Explain rule java:S1128 (unused imports)"
"What are the CRITICAL rules for Java?"
```
Supported IDEs
The MCP is automatically available in:
| IDE | Configuration |
|-----|---------------|
| Cursor | .cursor/mcp.json |
| VS Code + Copilot | .vscode/mcp.json |
| Claude Code | .mcp.json |
| IntelliJ IDEA | See manual setup |
| Copilot CLI | See manual setup |
For IntelliJ and Copilot CLI, see: java/commands/add-sonarqube-mcp-to-intellij-and-copilot-cli.md
References
| Reference | Description |
|-----------|-------------|
| [references/mcp-tools.md](references/mcp-tools.md) | Full MCP tool reference |
| [references/common-rules.md](references/common-rules.md) | Common Java rules |
Related Rules
.cursor/rules/java-sonarqube-setup.mdc- Setup guide.cursor/rules/java-sonarqube-mcp.mdc- MCP tool reference.claude/commands/fix-sonarqube-issues.md- Fix command
Related Skills
| Skill | Purpose |
|-------|---------|
| [java-coverage](../java-coverage/SKILL.md) | JaCoCo coverage for SonarQube |
| [gradle-standards](../gradle-standards/SKILL.md) | SonarQube Gradle plugin |
More from this repository10
Configures and manages MCP (Model Context Protocol) server settings across multiple IDEs for seamless integration and development workflow.
Standardizes REST API development in Java Spring by providing authentication, OpenAPI documentation, and RFC-37 service guidelines.
Streamlines PostgreSQL database integration in Java projects by configuring jOOQ code generation, Flyway migrations, and version compatibility.
doc-sync skill from bitsoex/bitso-java
Manages and standardizes Git hooks across repositories, ensuring consistent code quality checks and team-wide hook compliance automatically.
Centralizes and standardizes Gradle build configurations for Java projects, managing dependencies, version catalogs, and multi-module setups efficiently.
Automates resolution of Dependabot security vulnerabilities in Java/Gradle projects using severity-based processing and dependency verification.
Implements RFC-34 structured logging standards for Java services, enabling JSON-formatted logs with required fields and contextual metadata.
Validates and standardizes markdown documentation for Confluence mirroring using bitso-documentation-linter, ensuring RFC-37 compliance across service repositories.
Configures and generates JaCoCo code coverage reports for Java/Gradle projects, enabling comprehensive testing analysis and quality metrics.