sonarqube-integration
SonarQube integration via MCP for Java projects. The MCP server runs remotely and requires no local setup. Use natural language to query issues, analyze code, and check quality gates.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
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 (L23-L30)
- Quick Start (L54-L66)
- MCP Tools Available (L67-L77)
- Common Workflows (L78-L101)
- Supported IDEs (L102-L115)
- References (L116-L122)
- Related Rules (L123-L128)
- Related Skills (L129-L134)
Available Resources
📚 references/ - Detailed documentation
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:
"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
"Find all BLOCKER issues in payment-service"
"Get details for issue AYx123..."
"Show me the rule java:S2259"
2. Check Quality Gate
"What's the quality gate status for my-service?"
"List all projects I have access to"
3. Understand Rules
"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 | Full MCP tool reference |
| 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 | JaCoCo coverage for SonarQube |
| gradle-standards | SonarQube Gradle plugin |
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-28
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!