> 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/~/changes/1027/ai-capabilities.md). Agents can also search and read this documentation through its [MCP server](https://docs.sonarsource.com/~gitbook/mcp).

# AI capabilities

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

Available features include [AI Code Assurance](https://docs.sonarsource.com/sonarqube-cloud/~/changes/1027/ai-capabilities/ai-code-assurance.md) to help you identify and secure projects containing AI code.

The [SonarQube MCP Server](https://docs.sonarsource.com/sonarqube-cloud/~/changes/1027/ai-capabilities/sonarqube-mcp-server.md) facilitates a seamless integration between your AI-enabled IDE and SonarQube Cloud. Use it with [Context Augmentation](https://docs.sonarsource.com/sonarqube-cloud/~/changes/1027/ai-capabilities/context-augmentation.md) to **guide** code generation with architectural awareness and coding guidelines, and with [Agentic Analysis](https://docs.sonarsource.com/sonarqube-cloud/~/changes/1027/ai-capabilities/agentic-analysis.md) to **verify** the generated code with CI-level precision.

In addition, Sonar's [AI CodeFix](https://docs.sonarsource.com/sonarqube-cloud/~/changes/1027/ai-capabilities/ai-codefix.md) provides fix suggestions to developers in their IDEs and [SonarQube Remediation Agent](https://docs.sonarsource.com/sonarqube-cloud/~/changes/1027/ai-capabilities/ai-agents.md) are available to remediate issues in your GitHub PRs.

{% columns %}
{% column %}
{% content-ref url="/pages/ihYiNZvJQv7d8WYW3W84" %}
[SonarQube MCP Server](https://docs.sonarsource.com/sonarqube-cloud/~/changes/1027/ai-capabilities/sonarqube-mcp-server.md)
{% endcontent-ref %}

{% content-ref url="/pages/n7XMQ4GrZ8gdmxn5XZ3c" %}
[AI CodeFix](https://docs.sonarsource.com/sonarqube-cloud/~/changes/1027/ai-capabilities/ai-codefix.md)
{% endcontent-ref %}

{% content-ref url="/pages/BgIdofSPi12UZJQuJIxr" %}
[SonarQube Remediation Agent](https://docs.sonarsource.com/sonarqube-cloud/~/changes/1027/ai-capabilities/ai-agents.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
{% content-ref url="/pages/7lEiOnpv2JTZPnDonEPt" %}
[Autodetect AI code](https://docs.sonarsource.com/sonarqube-cloud/~/changes/1027/ai-capabilities/autodetect-ai-code.md)
{% endcontent-ref %}

{% content-ref url="/pages/NrKfs9LwBqAUoH8pEKwv" %}
[AI Code Assurance](https://docs.sonarsource.com/sonarqube-cloud/~/changes/1027/ai-capabilities/ai-code-assurance.md)
{% endcontent-ref %}

{% content-ref url="/pages/3zeVsi1GIp6qPA2koD3Z" %}
[Context Augmentation](https://docs.sonarsource.com/sonarqube-cloud/~/changes/1027/ai-capabilities/context-augmentation.md)
{% endcontent-ref %}

{% content-ref url="/pages/V92B1FxMuGyzuLzU57sr" %}
[Agentic Analysis](https://docs.sonarsource.com/sonarqube-cloud/~/changes/1027/ai-capabilities/agentic-analysis.md)
{% endcontent-ref %}
{% endcolumn %}
{% endcolumns %}


---

# 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/~/changes/1027/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.
