🛡️ SonarQube MCP — VS Code Extension
SonarQube MCP server for VS Code AI assistants
Integrates directly into VS Code's MCP servers panel with automatic lifecycle controls
✨ What It Does
This extension registers a SonarQube MCP server directly in VS Code's MCP servers list. Once installed, you get:
- Automatic start/stop/restart controls in VS Code's MCP panel
- 12 SonarQube tools available to GitHub Copilot and other AI assistants
- Zero manual setup — just configure your SonarQube URL and token
| Tool |
Description |
sq_list_projects |
List projects with quality status |
sq_get_project |
Detailed project overview with metrics |
sq_search_issues |
Search bugs, vulnerabilities & code smells |
sq_get_issue |
Full issue details with context |
sq_get_quality_gate |
Quality gate pass/fail status & conditions |
sq_search_hotspots |
Find security hotspots needing review |
sq_get_hotspot |
Security hotspot details & remediation |
sq_get_measures |
Code quality metrics for any project |
sq_get_measures_history |
Track metric trends over time |
sq_get_rule |
Rule details & remediation guidance |
sq_search_rules |
Search rules by language, type, severity |
sq_get_component_tree |
File tree with metrics to find problems |
📦 Installation
From VS Code Marketplace
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X / Cmd+Shift+X)
- Search for "SonarQube MCP"
- Click Install
⚙️ Configuration
Open VS Code Settings (Ctrl+, / Cmd+,) and search for "SonarQube MCP":
| Setting |
Required |
Default |
Description |
sonarqubeMcp.baseUrl |
✅ |
— |
SonarQube/SonarCloud base URL |
sonarqubeMcp.token |
✅ |
— |
Authentication token |
sonarqubeMcp.organization |
❌ |
— |
SonarCloud organization key |
sonarqubeMcp.defaultProject |
❌ |
— |
Default project key |
sonarqubeMcp.cacheTtlMs |
❌ |
300000 |
Cache TTL in ms (5 min) |
sonarqubeMcp.cacheMaxSize |
❌ |
100 |
Max cached responses |
sonarqubeMcp.timeoutMs |
❌ |
15000 |
HTTP request timeout in ms |
sonarqubeMcp.pageSize |
❌ |
100 |
Default API page size |
Or add to settings.json:
{
"sonarqubeMcp.baseUrl": "https://sonarcloud.io",
"sonarqubeMcp.token": "squ_your_token_here",
"sonarqubeMcp.organization": "my-org"
}
📄 License
MIT © bhayanak
| |