Skip to content

Commit 0b5dc97

Browse files
authored
Add SonarQube MCP server (#175)
Claude-Session: https://claude.ai/code/session_01S58U7phvDgphx6ZTXuWMJQ Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
1 parent c4e3702 commit 0b5dc97

1 file changed

Lines changed: 105 additions & 0 deletions

File tree

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"$schema": "../schemas/server-definition.schema.json",
3+
"id": "com.sonarqube-mcp-docker",
4+
"name": "SonarQube (Docker)",
5+
"alias": "sonarqube",
6+
"description": "Official SonarQube MCP server (Docker) connecting AI agents to SonarQube Cloud and SonarQube Server for code quality and security data. Analyze code snippets, retrieve issues and security hotspots, browse projects, and inspect quality gates.",
7+
"logo": "https://avatars.githubusercontent.com/u/545988?v=4",
8+
"schema_version": "2.1",
9+
"categories": [
10+
"developer-tools",
11+
"security"
12+
],
13+
"tags": [
14+
"sonarqube",
15+
"sonarcloud",
16+
"code-quality",
17+
"security",
18+
"static-analysis",
19+
"code-review",
20+
"docker"
21+
],
22+
"transport": {
23+
"type": "stdio",
24+
"command": "docker",
25+
"args": [
26+
"run",
27+
"--init",
28+
"--pull=always",
29+
"-i",
30+
"--rm",
31+
"-e",
32+
"SONARQUBE_TOKEN",
33+
"-e",
34+
"SONARQUBE_ORG",
35+
"-e",
36+
"SONARQUBE_URL",
37+
"sonarsource/sonarqube-mcp"
38+
],
39+
"env": {
40+
"SONARQUBE_TOKEN": "${input:SONARQUBE_TOKEN}",
41+
"SONARQUBE_ORG": "${input:SONARQUBE_ORG}",
42+
"SONARQUBE_URL": "${input:SONARQUBE_URL}"
43+
},
44+
"metadata": {
45+
"inputs": [
46+
{
47+
"id": "SONARQUBE_TOKEN",
48+
"label": "SonarQube Token",
49+
"description": "Required. Your SonarQube Cloud token, or a SonarQube Server USER token for self-hosted instances. Used to authenticate all requests.",
50+
"type": "text",
51+
"required": true,
52+
"secret": true,
53+
"placeholder": "squ_********************************",
54+
"obtain": {
55+
"url": "https://docs.sonarsource.com/sonarqube-cloud/managing-your-account/managing-tokens/",
56+
"instructions": "SonarQube Cloud: open your account > Security and generate a token at https://sonarcloud.io/account/security/.\nSonarQube Server (self-hosted): open My Account > Security and generate a USER token.\nCopy the token and paste it here.",
57+
"button_label": "Create Token"
58+
}
59+
},
60+
{
61+
"id": "SONARQUBE_ORG",
62+
"label": "SonarQube Cloud Organization Key",
63+
"description": "Required for SonarQube Cloud / SonarCloud only. Your organization key (leave empty for self-hosted SonarQube Server, where you set the Server URL instead).",
64+
"type": "text",
65+
"required": false,
66+
"secret": false,
67+
"placeholder": "my-organization"
68+
},
69+
{
70+
"id": "SONARQUBE_URL",
71+
"label": "SonarQube Server URL",
72+
"description": "Required for self-hosted SonarQube Server (your instance URL, e.g. https://sonarqube.example.com). For SonarQube Cloud leave empty to use https://sonarcloud.io, or set https://sonarqube.us for SonarQube Cloud US.",
73+
"type": "url",
74+
"required": false,
75+
"secret": false,
76+
"placeholder": "https://sonarqube.example.com"
77+
}
78+
]
79+
}
80+
},
81+
"auth": {
82+
"type": "api_key",
83+
"instructions": "Generate a SonarQube Cloud token (or a SonarQube Server USER token for self-hosted) and provide it as SONARQUBE_TOKEN. For SonarQube Cloud also set your organization key (SONARQUBE_ORG); for self-hosted SonarQube Server set your instance URL (SONARQUBE_URL) instead."
84+
},
85+
"contributor": {
86+
"name": "SonarSource",
87+
"github": "SonarSource",
88+
"url": "https://www.sonarsource.com"
89+
},
90+
"links": {
91+
"repository": "https://github.com/SonarSource/sonarqube-mcp-server",
92+
"homepage": "https://www.sonarsource.com",
93+
"documentation": "https://docs.sonarsource.com/sonarqube-mcp-server/"
94+
},
95+
"platforms": [
96+
"all"
97+
],
98+
"capabilities": {
99+
"tools": true,
100+
"resources": false,
101+
"prompts": false,
102+
"read_only_mode": false
103+
},
104+
"changelog_url": "https://github.com/SonarSource/sonarqube-mcp-server/releases"
105+
}

0 commit comments

Comments
 (0)