Effortlessly resolve your SonarQube violations with the power of GitHub Copilot.
1.4K
This is a FastMCP server that provides a bridge to interact with SonarQube APIs. The server offers various tools to monitor and analyze code quality using SonarQube.
sonar_health_checkget_token_infoget_project_issueslist_projectsget_project_metricsThe server uses the following environment variables:
SONARQUBE_URL=http://localhost:9000 # Default SonarQube server URL
SONARQUBE_TOKEN= # Your SonarQube authentication token
PROJECT_KEY=default_project # Default project key for operations
Check the requirements.txt file for all dependencies. The main requirements include:
The server will start and provide MCP-compliant endpoints for interacting with your SonarQube instance.
For security reasons, sensitive environment variables like SONARQUBE_TOKEN and PROJECT_KEY should not be stored in the Dockerfile. Instead, they should be passed at runtime using environment variables or environment files.
Github Link for this project:
https://github.com/dhanush-dev01/sonarqube_MCP.git
use it in you MCP cli by adding
"sonarqubemcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--init",
"-e",
"SONARQUBE_URL",
"-e",
"SONARQUBE_TOKEN",
"-e",
"PROJECT_KEY",
"dhanushhypervisor/sonarqube_mcp_server"
],
"env": {
"SONARQUBE_URL": "<server_url>",
"SONARQUBE_TOKEN" : "<server_token>",
"PROJECT_KEY": "<project_name>",
}
}
When running the container, configure these required environment variables:
SONARQUBE_URL: URL of your SonarQube serverSONARQUBE_TOKEN: Your SonarQube authentication tokenPROJECT_KEY: The default project key to analyzeThe server runs on Python 3.10 and uses the uv package manager for dependency management and execution.
The server includes comprehensive error handling for:
Each endpoint returns detailed error messages to help diagnose issues.
Content type
Image
Digest
sha256:febb3a678…
Size
147.1 MB
Last updated
over 1 year ago
docker pull dhanushhypervisor/sonarqube_mcp_server