GitHub Copilot coding agent
Set up the SonarQube MCP Server with the GitHub Copilot coding agent and start using Sonar tools in your CI/CD environment.
Set up MCP for the GitHub Copilot coding agent
Environment variables
Connection and transport
{
"mcpServers": {
"sonarqube": {
"type": "local",
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--init",
"--pull=always",
"-e",
"SONARQUBE_TOKEN=$SONAR_TOKEN",
"-e",
"SONARQUBE_ORG=$SONAR_ORG",
"mcp/sonarqube"
],
"env": {
"SONAR_TOKEN": "COPILOT_MCP_<YourSonarQubeUserToken>",
"SONAR_ORG": "COPILOT_MCP_<YourOrganizationName>",
//"SONAR_URL": "COPILOT_MCP_SONAR_URL"
},
"tools": ["*"]
}
}
}Use Sonar tools from the coding agent
Last updated
Was this helpful?

