sonar_run_scan
Scans a codebase with sonar-scanner, uploads results to SonarQube, and waits for analysis to finish; optionally uses npx when the scanner is not installed.
Instructions
用 sonar-scanner 扫描并上传到 SonarQube,等待分析完成。没装扫描器可 use_npx=true(首次会下载)。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "sonar_run_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| use_npx | No | ||
| project_key | No |