Installing SonarQube-MCP
- Use your GitHub account to log in to the SonarQube homepage.
- Click
in the upper right corner, and then click Analyze new project and Import an organization from GitHub to go to the authorization page. - Select Only select repositories, select the code repository url-link-extractor from the drop-down list box, and click Install & Authorize. After the authorization is successful, the Create an organization page is automatically displayed.Figure 1 Selecting the code repository to be checked
- On the Create an organization page, click Select free, retain the default values for other parameters, and click Create organization. Figure 2 Creating an organization
- Click
in the upper right corner, click Analyze new project, select the code repository url-link-extractor, and click Set up. 
- Click the profile picture in the upper right corner. Click the organization name (<ORG> value) under My Organizations to go to the homepage of the organization. In the upper left corner, copy and save the <ORG> value, which will be used for installing and configuring SonarQube-MCP. Figure 3 Obtaining the <ORG> value
- Click the profile picture in the upper right corner and click My account to go to the account homepage.
- In the navigation pane on the left, click Access Tokens, enter Token name, retain the default values for other parameters, and click Generate Token.
After the token is generated, click
to copy and save the token to the local PC. This token will be used for installing and configuring SonarQube-MCP.Figure 4 Generating a token
- Click
in the upper right corner of CodeArts Agent IDE to open the settings page. - In the navigation pane on the left, choose MCP.
- On the Marketplace tab, enter SonarQube in the search box and press Enter. Click
in the row where SonarQube-MCP is located to install the SonarQube-MCP service. After the installation is complete, you can view the installed SonarQube-MCP service on the Installed tab.
- Copy the following code snippet, click Configure MCP. Modify the JSON object configuration of SonarQube-MCP and save the current configuration.
"SonarQube-MCP": { "url": "https://api.sonarcloud.io/mcp", "headers": { "Authorization": "Bearer <TOKEN>", "SONARQUBE_ORG": "<ORG>" }, "timeout": 60, "disabled": false, "type": "streamableHttp" }For details about how to obtain <TOKEN> and <ORG>, see 6 to 8.
On the Installed tab, click
in the row where SonarQube-MCP is located. If the MCP service status is displayed in green, the service is enabled successfully.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot