sonarqube-mcp

v1.5.0
io.github.lahma/sonarqube-mcp Checked 1 day ago Published 4 days ago

SonarQube Cloud over MCP: quality gates, issues, hotspots, measures, coverage and issue triage.

Not smoke-tested: nuget packages are not smoke-tested yet.

Values you need

VariableWhat it is
SONARQUBE_TOKENrequired secret SonarQube Cloud user token, sent as a Bearer credential. Create one at https://sonarcloud.io/account/security and pick the User Token type - a project analysis token is not accepted by these endpoints. Without it the server still starts and reads public projects anonymously, but nothing private is r
SONARQUBE_ORGoptional Organization key - the last segment of https://sonarcloud.io/organizations/{key}. Only listProjects and getRule require it, and a public organization answers both anonymously, so it is optional; set it and every project in that organization becomes discoverable.
SONARQUBE_URLoptional Base URL of the SonarQube Cloud instance. Defaults to https://sonarcloud.io; the only other accepted host is https://sonarqube.us. SonarQube Server is out of scope and any other value is ignored.
SONARQUBE_MCP_DEFAULT_PROJECToptional Project key used when a tool call omits projectKey. It is the id in a sonarcloud.io project URL, not the repository name. Setting it is worth it when this server is configured per checkout.
SONARQUBE_MCP_READ_ONLYoptional Set to 1 to register only the twenty read tools. The five write tools - transitionIssue, assignIssue, addIssueComment, setHotspotStatus and bulkUpdateIssues - are then absent from tools/list rather than refused when called.

No installable package or endpoint was found. See the README for build-from-source steps.

For AI agents

  1. Ask the user for: SONARQUBE_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. If it fails, check that the required runtime is installed (none) and that the values above are set.

Machine-readable: install.md · manifest.json