> 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-cloud/ai-capabilities.md).

# AI capabilities

SonarQube Cloud offers a series of AI capabilities to help you produce secure and maintainable code.

SonarQube Cloud 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 Cloud 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 Organization Admin enables the feature for the organization's projects.

To turn it on, see the [Enable AI CodeFix](/sonarqube-cloud/administering-sonarcloud/ai-features/enable-ai-codefix.md) page. To learn how to get fix suggestions for your issues, see the [Fixing issues](/sonarqube-cloud/managing-your-projects/issues/fixing.md#getting-ai-generated-fix-suggestions) article.

## 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 Cloud. Once connected, your agent can retrieve issue data, project quality status, and more.

SonarQube Cloud includes a hosted MCP server with no local setup required. See the [SonarQube Cloud-hosted](/sonarqube-mcp-server/setup/sonarqube-cloud-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.

## Related products

[Gitar](https://gitar.ai) is a separate Sonar product that provides AI-powered pull request review automation. Gitar posts review comments directly in your pull requests to help you catch issues earlier in the development cycle.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
