Back to list
moto-nrw

sonarqube-mcp

by moto-nrw

A German all day school supervision software

6🍴 2📅 Jan 24, 2026

SKILL.md


name: sonarqube-mcp description: Query and manage code quality using SonarQube/SonarCloud MCP tools. Use when checking quality gates, finding issues, analyzing code snippets, understanding SonarQube rules, or working with code quality metrics.

SonarQube MCP

Use SonarQube/SonarCloud MCP tools to check code quality, find issues, and analyze code before pushing.

Quick Actions

Check Quality Gate

get_project_quality_gate_status
  projectKey: "org_project"
  pullRequest: "123"  # or branch: "feature-branch"
  • status: "OK" = passes
  • status: "ERROR" = fails
  • Check conditions array for specific metrics

Find Issues

search_sonar_issues_in_projects
  projects: ["org_project"]
  pullRequestId: "123"
  severities: ["BLOCKER", "CRITICAL"]  # optional filter

Analyze Code Before Push

analyze_code_snippet
  code: "your code here"
  language: "typescript"  # or go, python, java, etc.

This runs analysis WITHOUT triggering CI - great for catching issues early.

Understand a Rule

show_rule
  key: "typescript:S1082"  # or go:S3776, etc.

Mark False Positive

change_sonar_issue_status
  key: "issue-key-from-search"
  status: ["falsepositive"]  # or ["accept"], ["reopen"]

Tool Reference

See TOOLS.md for complete tool documentation.

Severity Levels

LevelMeaning
BLOCKERMust fix immediately
CRITICALHigh impact
MAJORSignificant problems
MINORCode smells
INFOInformational

Common Metrics

KeyDescription
coverageTest coverage %
duplicated_lines_densityDuplication %
reliability_ratingBug rating (A-E)
security_ratingVulnerability rating
sqale_ratingMaintainability rating
nclocLines of code
complexityCyclomatic complexity

Tips

  1. Pre-commit check: Use analyze_code_snippet before pushing
  2. PR status: Always check get_project_quality_gate_status with pullRequest param
  3. Understand failures: Use show_rule to learn why code was flagged
  4. Triage efficiently: Filter by severities: ["BLOCKER", "CRITICAL"] first

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon