version v8.0.
For up-to-date documentation, see the
latest version.
SonarQube MCP
7 minute read
1. Application
| Reference: | LLD – Software Factory as a Product - SonarQube MCP |
| Type & Classification: | Product |
| Step: | Continuous Delivery |
| Bid/Project/Product Name & ID: | Software Factory as a Product (SWaaP) |
| Solution Level: | Digital product |
| Solution Name: | Software Factory as a Product |
| Solution description: | As deployed, create and update a Software Factory |
| Key Products/Solution: |
2. Introduction
2.1 Document purpose
This document is a low level design - LLD which aims to describe how the architecture evoked in high level design - HLD will be implemented. This document will describe the protocols used in the target architecture, how to implement them and any modifications made to their default behavior. Once validated by Thales, this document will then serve as a basis for the implementation of configurations on equipment.
2.2 Document scope
This document is not a manual and is not intended to replace the reference literature describing with great precision all network protocols.
The protocols used will be briefly described as well as the modifications made to their default behavior.
2.3 Referenced documentation
| Document reference | Document Name |
|---|---|
| TASD | Technical Architecture and Security Document of SWaaP |
| SCOM-SonarQube-MCP | Software Center Operation Manual of SonarQube |
3. Component general description
This component is part of Software Factory as a Product (SWaaP), and it is visible in the TASD .
The SonarQube MCP Server is a Model Context Protocol (MCP) server that enables seamless integration with SonarQube Server for code quality and security. It also supports the analysis of code snippet directly within the agent context.
SonarQube MCP service is exposed using:
- SonarQube MCP API
4. Functional & Business Requirements
No formal list of requirements has been expressed by clients. It is designed and developed based on business use cases.
4.1 Feature summary
Features of the SonarQube MCP Server are:
- Connects your AI assistant directly to your SonarQube Server so code quality and security data can be queried inside the IDE or CLI workflow
- Helps developers stay in context by exposing SonarQube Server capabilities without switching to the SonarQube Server UI
- Supports both read and limited write actions, allowing the agent not only to inspect findings but also to update issue or Security Hotspot status where permitted
- Can analyze code snippets or files in agent workflows and use trusted SonarQube Server analysis results to support review and remediation decisions
The table below summarizes the available toolsets, including recommended enablement settings.
You can further restrict the tools made available to users or agents. However, it is strongly recommended not to enable any toolsets beyond those recommended below.
| Toolset | Key | Description | Enabled | Access |
|---|---|---|---|---|
| Agentic Readiness | agentic-readiness | Agentic Readiness Assessment tools (SonarQube Cloud, requires org entitlement) | ❌ | 📄 |
| Analysis | analysis | Code analysis tools (local analysis and advanced remote analysis) | ✅ | 📄 |
| Context Augmentation | cag | Context Augmentation tools (stdio mode only, requires org entitlement) | ❌ | 📄 |
| Coverage | coverage | Test coverage analysis and improvement tools | ✅ | 📄 |
| Dependency Risks | dependency-risks | Analyze dependency risks and security issues (SCA) | ✅ | 📄 |
| Duplications | duplications | Find code duplications across projects | ✅ | 📄 |
| Issues | issues | Search and manage SonarQube issues | ✅ | 📝 |
| Languages | languages | List supported programming languages | ✅ | 📄 |
| Measures | measures | Retrieve metrics and measures (includes both measures and metrics tools) | ✅ | 📄 |
| Portfolios | portfolios | Manage portfolios and enterprises (Cloud and Server) | ❌ | 📄 |
| Projects | projects | Browse and search SonarQube projects | ✅ | 📄 |
| Quality Gates | quality-gates | Access quality gates and their status | ✅ | 📄 |
| Rules | rules | Browse and search SonarQube rules | ✅ | 📄 |
| Security Hotspots | security-hotspots | Search and review Security Hotspots | ✅ | 📝 |
| Sources | sources | Access source code and SCM information | ❌ | 📄 |
| System | system | System administration tools (Server only) | ❌ | 📄 |
| Webhooks | webhooks | Manage webhooks | ❌ | 📝 |
Table 3 - Recommended Toolset Limits.
Legend:
- ✅ Enabled - This toolset is enabled and available for use
- ❌ Disabled - This toolset is disabled and should not be enabled
- 📄 Read-only access - Allows viewing, searching, or retrieving information only
- 📝 Read/Write access - Allows viewing information and performing update actions
More information about SonarQube MCP Server capabilities can be found in the SonarQube MCP Server documentation .
4.2 Prerequisites
Every prerequisites of the product are applicable to this component. In detail:
- Kubernetes and Flux. See the TASD §4.1.2 Prerequisites for supported version.
At deployment phase, SonarQube MCP requires just a SonarQube Server instance endpoint, but doesn’t require authentication to it.
4.3 Variability
No variability is supported.
5. Architecture decision record
Here is a list of decisions:
| Ref. | Date/Status | Description |
|---|---|---|
| ADR-SON-MCP-001 | 2026/04 | Add SonarQube MCP as a component of the Software Factory as a Product (SWaaP). See ADR008 in TASD . |
Table 4 - List of architecture decision record.
5.1 ADR-SON-001: Add SonarQube as a component of the product
5.1.1 Status: Accepted
5.1.2 Context
- See ADR008 in TASD .
5.1.3 Decision
5.1.4 Consequences
6. Architecture description
6.1 Business architecture and allocation to services
You will find in Figure 1 business architecture for software code and CI/CD engineering allocated to services:
Figure 1 - Business architecture allocated to services.
Note: in dash, external items.
6.2 Application architecture
flowchart LR
A["MCP client chat
(Windsurf, Cursor, VS Code with Copilot...)"]
B["SonarQube
MCP Server"]
C["SonarQube
Cloud API"]
D["SonarQube
Server API"]
A <-->|Interacts| B
B -->|Calls| C
B -->|Calls| DSonarQube MCP is using these external services:
- A Software Factory or mirror for deployment (PRE_001)
- Kubernetes with Flux (PRE_002, PRE_003)
- Ingress with TLS and dns resolution associated for one entry point and certificates,
classically
https://sonarqube-mcp.SF-DOMAIN(PRE_005, PRE_006, PRE_007)
6.2.1 User management
As SonarQube MCP server is forwarding request to SonarQube server, user management is done in SonarQube
6.2.2 RACI
As SonarQube MCP server is forwarding request to SonarQube server, RACI is done in SonarQube
6.3 Delivery
Component is part of the Software Factory as a Product (SWaaP) delivery. See TASD for more details.
6.3.1 Latest Version
- Latest version editor
- Component registry: TBC on main branch
- Helm chart repository
- SWaaP integration part
6.3.2 Version 1.1.0
- Component registry:
- Helm chart registry: in SF delivery
- SWaaP integration part
- Component Merge Request in Reference
- Security Report:
6.4 Infrastructure architecture
6.4.1 Software Factory API
Here is a list of services that can be integrated with the SonarQube MCP.
| Ref. | Name | Required | Description |
|---|---|---|---|
| SFE01 | Flux → Git in Software Factory for deployment | Mandatory | Code in a Git server for deployment of the product |
| SFE02 | Flux → Registry in Software Factory for deployment | Mandatory | Registries with helm charts and containers for deployment of the product |
| SFB08 | CLI or Runner → SonarQube MCP | Mandatory | CLI or GitLab Runner should connect to SonarQube MCP using SonarQube MPC public API |
| SFB05 | SonarQube MCP / applicative admin → SonarQube | Mandatory | GitLab Runner, CLI, Orchestrator or SonarQube MCP should connect to SonarQube using SonarQube public API |
7. Operational and maintenance
In this chapter you will find strategy and policy. Detailed implementation will be described in the SCOM.
7.1 Life cycle policy
Cadence of version is described in the Product Lifecycle .
7.2 License
Licensed under the SONAR Source-Available License v1.0 . Using the SonarQube MCP Server in compliance with this documentation is a Non-Competitive Purpose and so is allowed under the SSAL.
Your use of SonarQube via MCP is governed by the SonarQube Cloud Terms of Service or SonarQube Server Terms and Conditions , including use of the Results Data solely for your internal software development purposes.
7.3 Deployment
The component is deployed as a standard component using Flux and SWaaP packaging. See TASD for more details.
7.4 IAM
Authentication is managed by SonarQube service.
7.5 Scaling
It is possible to scale the pods. Currently we are using default scaling.
7.6 Backup / restore
We recommend to manage point in time restore at platform level. Like that it is possible to restore synchronously:
- volumes.
As SonarQube MCP is stateless, no user data require to be backuped.