{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.igorolv/sonar-mcp-server",
  "slug": "io.github.igorolv.sonar-mcp-server",
  "title": "Sonar MCP Server",
  "summary": "Read-only SonarQube Community Build access for AI agents: issues, hotspots, rules, code snippets",
  "version": "0.1.0",
  "serverKey": "sonar-mcp-server",
  "pageUrl": "https://mcpkglabs.com/tool/io.github.igorolv.sonar-mcp-server",
  "installMdUrl": "https://mcpkglabs.com/tool/io.github.igorolv.sonar-mcp-server/install.md",
  "trust": {
    "score": 84,
    "grade": "B",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-01T22:02:50.685688386Z"
  },
  "methods": [
    {
      "id": "oci",
      "label": "Docker",
      "transport": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "SONAR_TOKEN",
        "-e",
        "SONAR_URL",
        "ghcr.io/igorolv/sonar-mcp-server:0.1.0"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add sonar-mcp-server -e 'SONAR_TOKEN=<SONAR_TOKEN>' -e 'SONAR_URL=<SONAR_URL>' -- docker run -i --rm -e SONAR_TOKEN -e SONAR_URL ghcr.io/igorolv/sonar-mcp-server:0.1.0"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"sonar-mcp-server\": {\n      \"args\": [\n        \"run\",\n        \"-i\",\n        \"--rm\",\n        \"-e\",\n        \"SONAR_TOKEN\",\n        \"-e\",\n        \"SONAR_URL\",\n        \"ghcr.io/igorolv/sonar-mcp-server:0.1.0\"\n      ],\n      \"command\": \"docker\",\n      \"env\": {\n        \"SONAR_TOKEN\": \"<SONAR_TOKEN>\",\n        \"SONAR_URL\": \"<SONAR_URL>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"sonar-mcp-server\": {\n      \"args\": [\n        \"run\",\n        \"-i\",\n        \"--rm\",\n        \"-e\",\n        \"SONAR_TOKEN\",\n        \"-e\",\n        \"SONAR_URL\",\n        \"ghcr.io/igorolv/sonar-mcp-server:0.1.0\"\n      ],\n      \"command\": \"docker\",\n      \"env\": {\n        \"SONAR_TOKEN\": \"<SONAR_TOKEN>\",\n        \"SONAR_URL\": \"<SONAR_URL>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"SONAR_TOKEN\",\n      \"id\": \"sonar-token\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    },\n    {\n      \"description\": \"SONAR_URL\",\n      \"id\": \"sonar-url\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"sonar-mcp-server\": {\n      \"args\": [\n        \"run\",\n        \"-i\",\n        \"--rm\",\n        \"-e\",\n        \"SONAR_TOKEN\",\n        \"-e\",\n        \"SONAR_URL\",\n        \"ghcr.io/igorolv/sonar-mcp-server:0.1.0\"\n      ],\n      \"command\": \"docker\",\n      \"env\": {\n        \"SONAR_TOKEN\": \"${input:sonar-token}\",\n        \"SONAR_URL\": \"${input:sonar-url}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.sonar-mcp-server]\ncommand = \"docker\"\nargs = [\"run\", \"-i\", \"--rm\", \"-e\", \"SONAR_TOKEN\", \"-e\", \"SONAR_URL\", \"ghcr.io/igorolv/sonar-mcp-server:0.1.0\"]\nenv = { \"SONAR_TOKEN\" = \"<SONAR_TOKEN>\", \"SONAR_URL\" = \"<SONAR_URL>\" }"
        }
      ],
      "requires": [
        "Docker"
      ]
    }
  ],
  "env": [
    {
      "name": "SONAR_URL",
      "required": true,
      "secret": false,
      "description": "Base URL of the SonarQube instance, e.g. https://sonar.example.com",
      "help": "Base URL of the SonarQube instance, e.g. https://sonar.example.com",
      "placeholder": "<SONAR_URL>"
    },
    {
      "name": "SONAR_TOKEN",
      "required": true,
      "secret": true,
      "description": "SonarQube user token (My Account -> Security -> Generate Tokens)",
      "help": "SonarQube user token (My Account -> Security -> Generate Tokens)",
      "placeholder": "<SONAR_TOKEN>"
    },
    {
      "name": "SONAR_DEFAULT_PROJECT_KEY",
      "required": false,
      "secret": false,
      "description": "Project key used when a tool call does not name one",
      "help": "Project key used when a tool call does not name one",
      "placeholder": "<SONAR_DEFAULT_PROJECT_KEY>"
    }
  ],
  "expectedTools": [
    "getHotspot",
    "listHotspots",
    "getIssue",
    "getIssueSnippets",
    "getProjectIssuesBreakdown",
    "getProjectIssuesSummary",
    "listIssues",
    "getProject",
    "listComponents",
    "listProjectBranches",
    "listProjectPullRequests",
    "listProjects",
    "getRule"
  ],
  "agentSteps": [
    "Ask the user for: SONAR_URL, SONAR_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.",
    "Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).",
    "Restart or reload the client so it starts the server.",
    "Verify: the server should expose these tools: getHotspot, listHotspots, getIssue, getIssueSnippets, getProjectIssuesBreakdown, getProjectIssuesSummary, listIssues, getProject, ….",
    "If it fails, check that the required runtime is installed (Docker) and that the values above are set."
  ],
  "generatedAt": "2026-12-01T22:02:50.685688386Z"
}
