oe-sonar-mcp
v1.0.4
Published
Environment variable focused fork of sonarqube-mcp-server - A Model Context Protocol server for SonarQube
Maintainers
Readme
Installation
npm install -g oe-sonar-mcpConfiguration
Environment Variables
| Variable | Description | Required | Default |
|----------|-------------|----------|---------|
| SONARQUBE_URL | URL of your SonarQube instance | ✅ Yes* | https://sonarcloud.io |
| SONARQUBE_TOKEN | Authentication token | ✅ Yes* | - |
| SONARQUBE_USERNAME | Username for Basic auth | ✅ Yes* | - |
| SONARQUBE_PASSWORD | Password for Basic auth | ✅ Yes* | - |
| LOG_FILE | Path to log file | ❌ No | - |
| LOG_LEVEL | Log level (DEBUG,INFO,WARN,ERROR) | ❌ No | DEBUG |
*One authentication method is required **Required for SonarCloud
Usage
With Claude Desktop
{
"mcpServers":{
"oe-sonar-mcp":{
"command":"npx",
"args":[
"-y",
"oe-sonar-mcp@latest"
],
"env":{
"SONARQUBE_URL":"your-sonarqube-url",
://sonar-9832.domain.io"SONARQUBE_USERNAME":"your-sonarqube-token",
// squ_35eb9efadb5b5f5d1c0e6b60fcadbfe0f00a3fbe"LOG_LEVEL":"DEBUG",
"LOG_FILE":"/tmp/sonarqube-mcp.log",
"RULES":"javascript:S1128",
"BRANCH":"sonar_v3",
"COMPONENT_KEYS":[
"your-sonarqube-component-key"
],
"STATUSES":"OPEN",
"ISSUE_STATUSES":"OPEN"
}
}
}
}