sonarcloud_setup_guide
Configure SonarCloud for code analysis by following setup steps to integrate with your DevOps workflow.
Instructions
Guide through SonarCloud setup and configuration
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sonarcloud_setup_guide"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.js:468-498 (handler)Handler function that returns a static text guide for setting up SonarCloud, including steps to create account, import project, generate token, and add GitHub secret.
export function sonarcloudSetupGuide() { return { content: [{ type: "text", text: `SONARCLOUD SETUP GUIDE ====================== STEP 1: Create SonarCloud Account ---------------------------------- 1. Go to https://sonarcloud.io 2. Click "Log in" → "GitHub" 3. Authorize SonarCloud to access your GitHub STEP 2: Import Your Project ---------------------------- 1. Click "+ Create new project" 2. Select "Import from GitHub" 3. Choose your organization and repository STEP 3: Generate Token ---------------------- 1. Go to: https://sonarcloud.io/account/security 2. Generate a new token 3. Copy the token immediately! STEP 4: Add GitHub Secret ------------------------- gh secret set SONAR_TOKEN` }] }; } - src/tools.js:576-597 (registration)Registration of all tools in the exported 'tools' object, including 'sonarcloudSetupGuide' at line 593.
export const tools = { // Git gitStatusExplained, gitBranchExplained, gitCommitGuided, // Docker dockerCheckSetup, dockerAnalyzeProject, dockerBuild, // GitHub githubSecretsList, githubSecretsSet, // Azure azureCheckCli, azureAcrSetup, azureContainerAppsDeploy, // SonarCloud sonarcloudSetupGuide, sonarcloudCreateConfig, // Onboarding devOnboardingCheck, };