> For the complete documentation index, see [llms.txt](https://docs.sonarsource.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sonarsource.com/sonarqube-server/ai-capabilities.md).

# AI capabilities

SonarQube Server comes with a set of AI capabilities that fit in the Agent Centric Development Cycle (AC/DC), a framework that defines a continuous 3-stage loop for every AI-assisted change:

**Guide → Verify → Solve**

* **Guide** provides project context to agents before they write or edit code.
* **Verify** analyzes the resulting code.
* **Solve** fixes issues found during verification.

To learn more about AC/DC and how SonarQube Server features fit in the cycle, see [Agent Centric Development Cycle](https://docs.sonarsource.com/agent-centric-development-cycle/).

## AI CodeFix

SonarQube's AI CodeFix uses a large language model (LLM) to suggest fixes for issues found during analysis, the Solve stage of the AC/DC cycle. An Instance Admin enables the feature and chooses the LLM provider: Sonar's hosted models, your own Azure OpenAI or AWS Bedrock model, or a self-hosted gateway.

To turn on the feature and choose a provider, see the [Enable AI CodeFix](/sonarqube-server/instance-administration/ai-features/enable-ai-codefix.md) page. To learn how to get fix suggestions for your issues, see the [Fixing issues](/sonarqube-server/user-guide/issues/fixing.md#getting-ai-generated-fix-suggestions) article.

For AI-powered pull request review and CI failure analysis, see [Gitar](https://gitar.ai), a separate Sonar product.

## SonarQube MCP Server

The [SonarQube MCP Server](https://docs.sonarsource.com/sonarqube-mcp-server/) is a [Model Context Protocol](https://modelcontextprotocol.io/introduction) (MCP) server that connects your AI coding agent to SonarQube Server. Once connected, your agent can retrieve issue data, project quality status, and more.

Available with all commercial editions (Developer, Enterprise, and Data Center edition), the MCP server can run directly on SonarQube Server. See the [SonarQube Server-hosted](/sonarqube-mcp-server/setup/sonarqube-server-hosted.md) page for setup instructions.

For step-by-step agent setup, see the [IDE/CLI quickstart guides](/sonarqube-mcp-server/setup/quickstart-guides.md) for the MCP server.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sonarsource.com/sonarqube-server/ai-capabilities.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
