sonar-solutions/sonarqube-agentic-analysis-claude-code
Get started with SonarQube Agentic Analysis using Claude Code — step-by-step blueprint with config files and screenshots
ARCHETYPE
Pragmatist
A balanced, no-drama setup: some rules, some tools, nothing extreme.
CONTEXT TAX · EVERY TURN
up to ~3.0k tokens
Claude Code loads MCP tools on demand, so the real cost is usually lower.
Moderate · median rig: 2.3k · breakdown
Copy this rig
# review before running: this installs third-party code
$ claude mcp add sonarqube-agentic-analysis -e SONARQUBE_ORG=YOUR_SONARQUBE_ORG -e SONARQUBE_PROJECT_KEY=YOUR_SONARQUBE_PROJECT_KEY -e SONARQUBE_TOOLSETS=YOUR_SONARQUBE_TOOLSETS -e SONARQUBE_URL=YOUR_SONARQUBE_URL -- docker run -i --rm --pull=always -e SONARQUBE_URL -e SONARQUBE_TOKEN -e SONARQUBE_ORG -e SONARQUBE_PROJECT_KEY -e SONARQUBE_TOOLSETS -v '<ABSOLUTE_PATH_TO_YOUR_PROJECT>:/app/mcp-workspace:rw' mcp/sonarqube MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.
$ claude mcp add sonarqube-agentic-analysis -e SONARQUBE_ORG=YOUR_SONARQUBE_ORG -e SONARQUBE_PROJECT_KEY=YOUR_SONARQUBE_PROJECT_KEY -e SONARQUBE_TOOLSETS=YOUR_SONARQUBE_TOOLSETS -e SONARQUBE_URL=YOUR_SONARQUBE_URL -- docker run -i --rm --pull=always -e SONARQUBE_URL -e SONARQUBE_TOKEN -e SONARQUBE_ORG -e SONARQUBE_PROJECT_KEY -e SONARQUBE_TOOLSETS -v '<ABSOLUTE_PATH_TO_YOUR_PROJECT>:/app/mcp-workspace:rw' mcp/sonarqube This rig commits no guardrails. Here is the community baseline instead — the deny/ask rules most often found across all 17.0k rigs:
{
"permissions": {
"deny": [
"Read(./.env)",
"Read(./.env.*)",
"Read(**/.env)",
"Read(~/.ssh/**)",
"Bash(git push --force:*)",
"Read(**/*.pem)",
"Read(.env)",
"Read(~/.aws/**)",
"Read(**/*.key)",
"Read(**/.env.*)",
"Bash(git push --force*)",
"Bash(rm -rf *)",
"Bash(rm -rf:*)",
"Bash(sudo *)",
"Bash(sudo:*)",
"Bash(rm -rf /)",
"Bash(git push -f:*)",
"Read(.env.*)",
"Read(./secrets/**)",
"Bash(git reset --hard*)"
],
"ask": [
"Bash(git push:*)",
"Bash(git push *)",
"Bash(gh pr merge *)",
"Bash(git commit:*)",
"Bash(rm *)",
"Bash(gh pr merge:*)",
"Bash(npm publish:*)",
"Bash(git reset --hard:*)",
"Bash(git clean *)",
"Bash(git rebase *)"
]
}
} MCP servers (1)
| server | source | est. tokens |
|---|---|---|
| mcp/sonarqube · "sonarqube-agentic-analysis" env: SONARQUBE_ORG, SONARQUBE_PROJECT_KEY, SONARQUBE_TOOLSETS, SONARQUBE_URL | docker | 2.5k |
Similar rigs
jcchikikomori/dotfiles-claude
Claude Code configuration for dotfiles (stow package)
MCP Hoarder 62.6k tok · · Q5
Chisanan232/coding-agent-environment
Reproducible, portable, profile-aware Claude Code and Codex coding-agent environment — versioned config, hooks, skills, MCP/plugin desired state, toolchain, and directory-scoped profiles
Fort Knox 44.2k tok · · Q34
Lukk17/agent-standards
One git checkout drops a shared AI coding setup (skills, subagents, MCP servers, OpenSpec scaffolding) into any project, across Claude Code, Kilo, OpenCode, Codex, and Copilot.
MCP Hoarder 49.8k tok · · Q57
anomalyco/opencode
The open source coding agent.
Pragmatist 14.3k tok · · Q8