No custom OAuth app setup required. Sign in or provide your credentials to connect.
Authentication: API token. See Magic Link for the runtime auth flow.
Sample use cases
- Show the quality gate status for the api project’s
mainbranch. - List open critical issues on a pull request and assign them to its author.
- Show coverage and duplication history for the last 30 days.
Available Tools
Add a comment to an issue. Needs the issue key from search_issues.
Assign an issue to a user by login (‘_me’ for yourself), or unassign it by passing assignee null.
Make a project use a quality gate, replacing its previous gate.
Change a dependency risk’s status (CONFIRM, ACCEPT, SAFE, FIXED, or REOPEN to undo) with an optional comment.
Add a VERSION or OTHER event (a marker such as a release) to a project analysis.
Create (provision) a project. Needs the organization key from list_organizations, a unique project_key and a name.
Create a quality gate in an organization (organization_id is the uuid_v4 from list_organizations), empty or copied from another gate.
Add a condition to a custom quality gate.
Create a webhook that SonarQube Cloud calls after each analysis, at organization or project level.
Delete a VERSION or OTHER event from a project analysis.
Delete one of your own comments from an issue.
Permanently delete a project and all its analyses, issues and measures.
Delete a custom quality gate with its conditions; its projects fall back to the organization default.
Delete a condition from a custom quality gate. Needs the condition id from list_quality_gate_conditions.
Delete a webhook and its delivery history. Needs the webhook key from list_webhooks or create_webhook.
Remove a project’s explicit quality gate association so it uses the organization default gate.
Get one background (Compute Engine) task by id: status, timings, error message and optionally warnings or scanner context.
Get a project, directory or file by key: name, qualifier, path, language, tags, last analysis and version, plus its ancestors.
Get metric values (coverage, bugs, ncloc, duplicated_lines_density, …) for a project, directory or file, on a branch or PR.
Get measures for every file/directory under a project or directory, filtered by type or name and sortable by a metric (e.g. lowest-coverage files: sort [‘metric’], metric_sort ‘coverage’).
Get the duplicated code blocks in a file and the files they are duplicated with (line ranges per block).
Get the change history of an issue (status, assignee, severity and tag changes with who and when).
Get how metrics (e.g. coverage, bugs) changed across a project’s analyses, optionally in a date window, for trend questions.
Get one project (v2) by its UUIDv4 id: key, name, visibility, organization_id, tags, links and legacy_id.
Get whether a project (or a branch / pull request) passes its quality gate: overall ‘OK’ or ‘ERROR’ plus every condition with its threshold and actual value, and the failing ones.
Get one quality gate by UUID: name, built-in flag, Clean as You Code and AI-qualified flags.
Read a file’s source code as plain text, optionally a from_line/to_line range, bounded by max_chars with a truncated flag and total_lines for paging.
Get a coding rule’s full description (why it is an issue, how to fix it), impacts and tags, optionally with its quality-profile activations.
Get SCM blame for a file (author, date and revision per line or per run of lines), optionally for a line range.
Get one webhook delivery with the payload that was sent, to debug a failing webhook.
List a project’s analyzed branches with their quality gate status and last analysis.
List background (Compute Engine) tasks that processed analysis reports: status, timings and errors, filtered by project, text, status, type and dates.
Browse the directories and files under a project or directory, filtered by type and name, sorted and paginated (assumed 10,000-result cap).
List the SonarQube Cloud enterprises visible to the caller (Enterprise plan).
List tags used on issues, optionally scoped to an organization or project and filtered by text.
List the programming languages SonarQube Cloud analyzes (key and name), optionally filtered by text.
List an organization’s members (login, name), filtered by text or role, paginated.
List the SonarQube Cloud organizations the token’s user is a member of.
List enterprise portfolios (Enterprise plan) with name search and pagination.
List projects (v2) by organization UUID (uuid_v4 from list_organizations), project keys, ids, legacy ids or tags, with pagination.
List a project’s analyzed pull requests with quality gate status and issue counts.
List a quality gate’s conditions (metric id, operator LT/GT, threshold).
List explicit project-to-quality-gate associations in an organization (uuid_v4 from list_organizations), filtered by gate (list_quality_gates) or project legacy ids (list_projects); one is required.
List an organization’s quality gates (built-in and custom), filtered by name, paginated.
List the tags used on an organization’s rules, optionally filtered by text, for search_rules (tags).
List recent webhook delivery attempts (success, HTTP status, duration) for exactly one of: a webhook (list_webhooks), a project (search_projects) or a CE task (list_ce_activity).
List the webhooks of an organization (project_key null) or of one project.
Search a project’s dependency risks (vulnerable, malicious or license-prohibited packages) by type, severity, status, package, CVE, scope or assignee (logins from list_organization_members); sortable,…
Search code issues by organization, project/file keys, branch or PR, status, impact, rule, tag, language, assignee, author, dates, security standards; sort, facets, pagination (assumed 10,000-result…
List metric definitions (key, name, type, domain, integer id), paginated.
List a project’s analyses (newest first) with their events, filtered by branch, event category and date window, paginated.
Search the project tags in use, optionally by text.
Search an organization’s projects by name/key text, keys, UUIDs, last-analysis date or provisioned state, paginated (assumed 10,000-result cap).
Search an organization’s quality profiles (the rule sets used per language), by language, project, name or default.
Search an organization’s coding rules by text, language, repository, impact severity/quality, tag, key, status, security standard, template, or activation in a quality profile…
Replace an issue’s tags with the given set (pass [] to clear).
Replace a project’s tags with the given set (at least one tag).
Change an issue’s status: confirm, accept, falsepositive, resolve, or undo with reopen/unconfirm.
Rename a VERSION or OTHER analysis event.
Rename a custom quality gate or change its AI-qualified flag.
Change a quality gate condition’s metric, operator or threshold.
Update a webhook’s name, URL and secret (name and url are both required; send current values to keep them).