SonarQube for VS Code in Kiro
SonarQube for VS Code helps bring analysis of AI-generated code to your IDE. This page has installation and migration instructions in addition to features designed specifically for Kiro.
Installation
Kiro uses the OpenVSX extension registry. Install SonarQube for VS Code from there.
To install the SonarQube for VS Code extension in Kiro:
Open the Extensions view by pressing
Ctrl + Shift + X(orCmd + Shift + Xon Mac).Search for
sonarqube.Finish the installation by choosing SonarQube for IDE and selecting the Install button
Once installed, we recommended using connected mode and setting up the SonarQube MCP Server with SonarQube Server or SonarQube Cloud to strengthen your AI integration with SonarQube.
Migrate extensions from VS Code
Kiro provides a workflow to complete a Profile migration from VS Code.
If you've included SonarQube for VS Code in your profile migration, note that if you were using connected mode or the SonarQube MCP Server, that your SonarQube token is in secure storage and will not be migrated; you will be prompted to reauthenticate any connections you might have made.
Only extensions available in the OpenVSX registry can be imported. VS Code Marketplace exclusives may be unavailable in Kiro. See Kiro’s documentation on Extension compatibility for more details.
SonarQube MCP Server
The SonarQube MCP Server is a Model Context Protocol (MCP) server that runs locally and enables a seamless connection between your AI agents and your SonarQube platform. The tools are designed to bridge the divide between productivity and quality. Please see the full details in the SonarQube MCP Server documentation.
Setup the SonarQube MCP Server
When you're using an AI-enabled IDE such as Cursor, Windsurf, or VS Code with Copilot enabled, and have already completed your Connected mode setup in SonarQube for IDE with SonarQube Server or SonarQube Cloud, a quick select button is available.
Select the
icon, Configure MCP Server from the CONNECTED MODE view window to use your connected mode credentials to start using the SonarQube MCP Server. The same workflow is available in the AI AGENTS CONFIGURATION view.

If you prefer to set up your MCP server manually, a detailed quickstart guide is available for Setup in Kiro. In addition, more information about the available tools can be found in the SonarQube MCP Server documentation, on the Tools page.
Configure your AI agent
The AI AGENTS CONFIGURATION view is only available when running an AI-enabled agent and offers two tools to help your AI agent engage with SonarQube (Server, Cloud).
Select Configure SonarQube MCP Server to use your connected mode credentials to install the SonarQube MCP Server. You will be prompted to complete your Connected mode setup if none exists.
Available in Cursor, Kiro, and Windsurf: Select Introduce SonarQube Rules File to create explicit instructions for your AI-powered IDE to produce secure, reliable, and maintainable code.
The file provides SonarQube MCP Server instructions to your AI agent. As an example, it instructs the agent to disable SonarQube automatic analysis before starting code generation, and to enable it after the generation is complete. It also asks the agent to analyze changed files in batches, once the changes are done.
Related pages
SonarQube and AI agents in your IDE
Getting started with other Supported IDEs
Last updated
Was this helpful?

