Skip to main content
Glama

SonarCloud MCP Server

by dozzman

fetch_sonarcloud_issues

Retrieve and filter SonarCloud issues for a specific pull request, enabling focused code quality analysis and resolution. Supports custom sorting, component-based filtering, and detailed issue facets.

Instructions

Fetch SonarCloud issues for a specific pull request

Input Schema

NameRequiredDescriptionDefault
additionalFieldsNoComma-separated list of the optional fields to be returned in response. Action plans are dropped in 5.5, it is not returned in the response.
ascNoAscending sort (default: true)
assignedNoTo retrieve assigned or unassigned issues
assigneesNoComma-separated list of assignee logins. The value '__me__' can be used as a placeholder for user who performs the request
authorNoSCM accounts. To set several values, the parameter must be called once for each value.
branchNoBranch key
cleanCodeAttributeCategoriesNoComma-separated list of clean code attribute categories.
componentKeysNoComma-separated list of component keys. Retrieve issues associated to a specific list of components (and all its descendants). A component can be a project, directory or file.
createdAfterNoTo retrieve issues created after the given date (inclusive). Either a date (server timezone) or datetime can be provided. If this parameter is set, createdSince must not be set
createdAtNoDatetime to retrieve issues created during a specific analysis
createdBeforeNoTo retrieve issues created before the given date (inclusive). Either a date (server timezone) or datetime can be provided.
createdInLastNoTo retrieve issues created during a time span before the current time (exclusive). Accepted units are 'y' for year, 'm' for month, 'w' for week and 'd' for day. If this parameter is set, createdAfter must not be set
cweNoComma-separated list of CWE identifiers. Use 'unknown' to select issues not associated to any CWE.
facetsNoComma-separated list of the facets to be computed. No facet is computed by default.
impactSeveritiesNoComma-separated list of impact severities.
impactSoftwareQualitiesNoComma-separated list of software qualities.
issueStatusesNoComma-separated list of issue statuses
issuesNoComma-separated list of issue keys
languagesNoComma-separated list of languages. Available since 4.4
onComponentOnlyNoReturn only issues at a component's level, not on its descendants (modules, directories, files, etc). This parameter is only considered when componentKeys or componentUuids is set. (default: false)
organizationNoOrganization key
owaspTop10NoComma-separated list of OWASP Top 10 lowercase categories.
owaspTop10-2021NoComma-separated list of OWASP Top 10 - 2021 lowercase categories.
pNo1-based page number (default: 1)
psNoPage size. Must be greater than 0 and less or equal than 500 (default: 100)
pullRequestNoPull request id
resolvedNoTo match resolved or unresolved issues
rulesNoComma-separated list of coding rule keys. Format is <repository>:<rule>
sNoSort field
sinceLeakPeriodNoTo retrieve issues created since the leak period. If this parameter is set to a truthy value, createdAfter must not be set and one component id or key must be provided. (default: false)
sonarsourceSecurityNoComma-separated list of SonarSource security categories. Use 'others' to select issues not associated with any category
tagsNoComma-separated list of tags.
tokenNoSonarCloud API token (optional if set in environment)

Input Schema (JSON Schema)

{ "properties": { "additionalFields": { "description": "Comma-separated list of the optional fields to be returned in response. Action plans are dropped in 5.5, it is not returned in the response.", "items": { "enum": [ "_all", "comments", "languages", "actionPlans", "rules", "ruleDescriptionContextKey", "transitions", "actions", "users" ], "type": "string" }, "type": "array" }, "asc": { "description": "Ascending sort (default: true)", "type": "boolean" }, "assigned": { "description": "To retrieve assigned or unassigned issues", "type": "boolean" }, "assignees": { "description": "Comma-separated list of assignee logins. The value '__me__' can be used as a placeholder for user who performs the request", "items": { "type": "string" }, "type": "array" }, "author": { "description": "SCM accounts. To set several values, the parameter must be called once for each value.", "items": { "type": "string" }, "type": "array" }, "branch": { "description": "Branch key", "type": "string" }, "cleanCodeAttributeCategories": { "description": "Comma-separated list of clean code attribute categories.", "items": { "enum": [ "ADAPTABLE", "CONSISTENT", "INTENTIONAL", "RESPONSIBLE" ], "type": "string" }, "type": "array" }, "componentKeys": { "description": "Comma-separated list of component keys. Retrieve issues associated to a specific list of components (and all its descendants). A component can be a project, directory or file.", "items": { "type": "string" }, "type": "array" }, "createdAfter": { "description": "To retrieve issues created after the given date (inclusive). Either a date (server timezone) or datetime can be provided. If this parameter is set, createdSince must not be set", "type": "string" }, "createdAt": { "description": "Datetime to retrieve issues created during a specific analysis", "type": "string" }, "createdBefore": { "description": "To retrieve issues created before the given date (inclusive). Either a date (server timezone) or datetime can be provided.", "type": "string" }, "createdInLast": { "description": "To retrieve issues created during a time span before the current time (exclusive). Accepted units are 'y' for year, 'm' for month, 'w' for week and 'd' for day. If this parameter is set, createdAfter must not be set", "type": "string" }, "cwe": { "description": "Comma-separated list of CWE identifiers. Use 'unknown' to select issues not associated to any CWE.", "items": { "type": "string" }, "type": "array" }, "facets": { "description": "Comma-separated list of the facets to be computed. No facet is computed by default.", "items": { "enum": [ "projects", "moduleUuids", "fileUuids", "assigned_to_me", "severities", "statuses", "issueStatuses", "resolutions", "rules", "assignees", "author", "directories", "languages", "tags", "types", "owaspTop10", "owaspTop10-2021", "cwe", "createdAt", "sonarsourceSecurity", "impactSoftwareQualities", "impactSeverities", "cleanCodeAttributeCategories" ], "type": "string" }, "type": "array" }, "impactSeverities": { "description": "Comma-separated list of impact severities.", "items": { "enum": [ "INFO", "LOW", "MEDIUM", "HIGH", "BLOCKER" ], "type": "string" }, "type": "array" }, "impactSoftwareQualities": { "description": "Comma-separated list of software qualities.", "items": { "enum": [ "MAINTAINABILITY", "RELIABILITY", "SECURITY" ], "type": "string" }, "type": "array" }, "issueStatuses": { "description": "Comma-separated list of issue statuses", "items": { "enum": [ "OPEN", "CONFIRMED", "FALSE_POSITIVE", "ACCEPTED", "FIXED" ], "type": "string" }, "type": "array" }, "issues": { "description": "Comma-separated list of issue keys", "items": { "type": "string" }, "type": "array" }, "languages": { "description": "Comma-separated list of languages. Available since 4.4", "items": { "type": "string" }, "type": "array" }, "onComponentOnly": { "description": "Return only issues at a component's level, not on its descendants (modules, directories, files, etc). This parameter is only considered when componentKeys or componentUuids is set. (default: false)", "type": "boolean" }, "organization": { "description": "Organization key", "type": "string" }, "owaspTop10": { "description": "Comma-separated list of OWASP Top 10 lowercase categories.", "items": { "enum": [ "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "a10" ], "type": "string" }, "type": "array" }, "owaspTop10-2021": { "description": "Comma-separated list of OWASP Top 10 - 2021 lowercase categories.", "items": { "enum": [ "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "a10" ], "type": "string" }, "type": "array" }, "p": { "description": "1-based page number (default: 1)", "minimum": 1, "type": "number" }, "ps": { "description": "Page size. Must be greater than 0 and less or equal than 500 (default: 100)", "maximum": 500, "minimum": 1, "type": "number" }, "pullRequest": { "description": "Pull request id", "type": "string" }, "resolved": { "description": "To match resolved or unresolved issues", "type": "boolean" }, "rules": { "description": "Comma-separated list of coding rule keys. Format is <repository>:<rule>", "items": { "type": "string" }, "type": "array" }, "s": { "description": "Sort field", "enum": [ "CREATION_DATE", "ASSIGNEE", "STATUS", "UPDATE_DATE", "CLOSE_DATE", "HOTSPOTS", "FILE_LINE", "SEVERITY" ], "type": "string" }, "sinceLeakPeriod": { "description": "To retrieve issues created since the leak period. If this parameter is set to a truthy value, createdAfter must not be set and one component id or key must be provided. (default: false)", "type": "boolean" }, "sonarsourceSecurity": { "description": "Comma-separated list of SonarSource security categories. Use 'others' to select issues not associated with any category", "items": { "enum": [ "buffer-overflow", "permission", "sql-injection", "command-injection", "path-traversal-injection", "ldap-injection", "xpath-injection", "rce", "dos", "ssrf", "csrf", "xss", "log-injection", "http-response-splitting", "open-redirect", "xxe", "object-injection", "weak-cryptography", "auth", "insecure-conf", "encrypt-data", "traceability", "file-manipulation", "others" ], "type": "string" }, "type": "array" }, "tags": { "description": "Comma-separated list of tags.", "items": { "type": "string" }, "type": "array" }, "token": { "description": "SonarCloud API token (optional if set in environment)", "type": "string" } }, "required": [], "type": "object" }
Install Server

Other Tools from SonarCloud MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dozzman/sonarcloud-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server