Sonar MCP Server for VS Code
io.github.igorolv/sonar-mcp-server
Read-only SonarQube Community Build access for AI agents: issues, hotspots, rules, code snippets
client:VS Code
transport:stdio
runtime:oci
Install Sonar MCP Server in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "sonar-url",
"description": "SONAR_URL",
"password": true
},
{
"type": "promptString",
"id": "sonar-token",
"description": "SONAR_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "sonar-default-project-key",
"description": "SONAR_DEFAULT_PROJECT_KEY",
"password": true
}
],
"servers": {
"sonar-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/igorolv/sonar-mcp-server:0.1.0"
],
"env": {
"SONAR_URL": "${input:sonar-url}",
"SONAR_TOKEN": "${input:sonar-token}",
"SONAR_DEFAULT_PROJECT_KEY": "${input:sonar-default-project-key}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs