MCP server: Select a branch for issue search

  • SonarQube Developer Edition v2025.5
  • Docker image mcp/sonarqube latest (should be 1.4.0.1666)
  • Github Copilot in IntelliJ

I use the following MCP configuration:

        "sonar": {
            "type": "local",
            "command": "docker",
            "args": [
                "run",
                "--name",
                "sonarqube-mcp",
                "-i",
                "-e",
                "SONARQUBE_URL=<url>",
                "-e",
                "SONARQUBE_TOKEN=<token>",
                "-v",
                "/path/to/certificates/:/usr/local/share/ca-certificates/:ro",
                "mcp/sonarqube:latest"
            ],
            "tools": ["*"]
        }

The tool search_sonar_issues_in_projects seems to use the default branch by default. It can also accept a Pull Request, but apparently not a branch. Is there another way to request the issues from a specific branch without having to set up PR analysis?