Cannot use HTTP transport of SonarQube MCP Server

Hi everyone,

First of all, thank you for building this awesome project.

IDE: Cursor
MCP: Docker

I wanted to test the SonarQube MCP Server. I followed the official documentation here:
https://docs.sonarsource.com/sonarqube-for-vs-code/ai-capabilities/sonarqube-mcp-server

and ran the following command to start the server:

docker run --name sonarqube-mcp-server -p 8080:8080
-e SONARQUBE_TRANSPORT=http
-e SONARQUBE_HTTP_HOST=0.0.0.0
-e SONARQUBE_TOKEN=“”
-e SONARQUBE_URL=“”
mcp/sonarqube

However, the HTTP endpoint doesn’t respond after starting the container.
I also checked by exec-ing into the container, and it seems that no port is exposed or listening inside.

Has anyone successfully started the Sonar MCP HTTP server this way or encountered a similar issue?

I’d really appreciate any guidance or suggestions. Thank you!

Hey @Tuguldur, thank you for reaching out about this!

Unfortunately, the Docker image hasn’t been updated yet due to an ongoing issue. Our team is actively working on a fix, and you can expect it to be resolved within the next few days. Please note that there’s usually a short delay between a GitHub release and the corresponding Docker image update.

We’ll keep you posted once the update is live.

1 Like

Hi everyone,

I followed the official documentation here:
https://docs.sonarsource.com/sonarqube-for-vs-code/ai-capabilities/sonarqube-mcp-server

and ran the following command to start the server:

docker run --name sonarqube-mcp-server -p 8080:8080
-e SONARQUBE_TRANSPORT=http
-e SONARQUBE_HTTP_HOST=0.0.0.0
-e SONARQUBE_TOKEN=“”
-e SONARQUBE_URL=“”
mcp/sonarqube

However, the HTTP endpoint doesn’t respond after starting the container.
I also checked by exec-ing into the container, and it seems that no port is exposed or listening inside.

Has anyone successfully started the Sonar MCP HTTP server this way or encountered a similar issue?

I’d really appreciate any guidance or suggestions. Thank you!

The Docker image has just been updated. Please give it a try and let us know if you run into any issues or have any feedback, we’d love to hear from you. Thanks!

I got error on search_sonar_issues_in_projects method.

parameters:

{
"projects": [
"com.example:service-3"
  ],
"severities": "BLOCKER,CRITICAL,HIGH,MEDIUM",
"ps": 100 
}

Result:
An error occurred during the tool execution: class java.lang.String cannot be cast to class java.util.List (java.lang.String and java.util.List are in module java.base of loader 'bootstrap')

Outch, many thanks for this. I will quickly fix this issue, and we will proceed to do a new release this week. For now, you should be able to pass a single value at a time.

Our Docker image has just been updated with the latest changes. Could you give it a try and let us know if you still run into any issues? Do not hesitate to share further feedback, it helps us keep improving our MCP!

1 Like