gitlab mcp server for VS Code
io.github.dubuqingfeng/gitlab-mcp-server
GitLab MCP (Model Context Protocol) server for AI agents
client:VS Code
transport:stdio
runtime:npm
Install gitlab mcp server in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "gitlab-token",
"description": "GITLAB_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "gitlab-url",
"description": "GITLAB_URL",
"password": true
},
{
"type": "promptString",
"id": "lark-webhook-url",
"description": "LARK_WEBHOOK_URL",
"password": true
},
{
"type": "promptString",
"id": "lark-secret-key",
"description": "LARK_SECRET_KEY",
"password": true
},
{
"type": "promptString",
"id": "lark-enable-notification",
"description": "LARK_ENABLE_NOTIFICATION",
"password": true
},
{
"type": "promptString",
"id": "gitlab-note-mode",
"description": "GITLAB_NOTE_MODE",
"password": true
}
],
"servers": {
"gitlab-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@dubuqingfeng/gitlab-mcp-server"
],
"env": {
"GITLAB_TOKEN": "${input:gitlab-token}",
"GITLAB_URL": "${input:gitlab-url}",
"LARK_WEBHOOK_URL": "${input:lark-webhook-url}",
"LARK_SECRET_KEY": "${input:lark-secret-key}",
"LARK_ENABLE_NOTIFICATION": "${input:lark-enable-notification}",
"GITLAB_NOTE_MODE": "${input:gitlab-note-mode}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs