mcp-sonarqube

⚙️ Configuration

Host, token and the shared config file.

Configuration is resolved by the @kud/sonarqube core, in layers: config file, then environment.

SettingEnvironment (first set wins)File key
hostSONARQUBE_DASH_HOST, SONAR_HOST_URLhost
tokenSONARQUBE_DASH_TOKEN, SONARQUBE_TOKEN, SONAR_TOKENtoken

The file is $XDG_CONFIG_HOME/sonarqube-dash-cli/config.json (default ~/.config/sonarqube-dash-cli/config.json), shared with the sonarqube-dash CLI. There is no default host: the server exits at start-up without one.

{
  "mcpServers": {
    "sonarqube": {
      "command": "npx",
      "args": ["-y", "@kud/mcp-sonarqube@latest"],
      "env": {
        "SONAR_HOST_URL": "https://sonarqube.example.com",
        "SONARQUBE_TOKEN": "<your-token>"
      }
    }
  }
}