mit einem Klick
sonar-list-projects
// List SonarQube projects accessible to the current user via the SonarQube MCP Server
// List SonarQube projects accessible to the current user via the SonarQube MCP Server
| name | sonar-list-projects |
| description | List SonarQube projects accessible to the current user via the SonarQube MCP Server |
| argument-hint | [search-query] [--page n] [--page-size n] |
List SonarQube projects accessible to the authenticated user. Useful for discovering project keys before running other skills.
sonar-list-projects # list accessible projects
sonar-list-projects my-project # search by name (partial) or key (exact)
sonar-list-projects --page 2 # next page of results
sonar-list-projects --page-size 100 # limit page size
This skill requires the SonarQube MCP Server to be configured and the tool mcp__sonarqube__search_my_sonarqube_projects to be available in your session.
If the tool call fails, surface the tool error verbatim and stop. Auth, credentials, and MCP server configuration are runtime infrastructure concerns and are not user-fixable from chat — do not ask the user to verify env vars or to install or run any CLI.
q.--page <n> maps to page (string, defaults to 1).--page-size <n> maps to pageSize (integer 1–500, defaults to 500).| Argument | Allowed pattern / values |
|---|---|
| search term | ^[a-zA-Z0-9_\-\. ]+$ |
--page | positive integer |
--page-size | integer 1–500 |
If a value fails validation, stop and tell the user what was rejected — do not run the call.
mcp__sonarqube__search_my_sonarqube_projects{
"q": "<search-term>",
"page": "<n>",
"pageSize": <n>
}
Omit any field the user did not provide.
If projects are found:
## SonarQube Projects
Found **8 project(s)**:
| Project key | Name |
| ----------------- | --------------- |
| my-org_backend | Backend Service |
| my-org_frontend | Frontend App |
| my-org_shared-lib | Shared Library |
If no projects are found:
## SonarQube Projects
No projects found.
If more results are likely (response is full to pageSize): "Showing page N. Use --page <n+1> to see more, or pass a search term to narrow results."
Analyze a file or code snippet for quality and security issues using SonarQube
Find files with low test coverage and inspect uncovered lines in a SonarQube project (project key optional when MCP integration already defines the default project)
Search for software composition analysis (SCA) dependency risks in a SonarQube project (project key optional when MCP integration already defines the default project)
Find files with code duplications in a SonarQube project and inspect duplication blocks for a file (project key optional when MCP integration already defines the default project)
Fix a specific SonarQube issue in code by rule key and location
Search and filter SonarQube issues for a project, branch, or pull request via the SonarQube MCP Server (project key optional when MCP integration already defines the default project)