VS Code Installation
Configure GitLab MCP Server in Visual Studio Code.
One-Click Install
Manual Configuration
Create or edit .vscode/mcp.json in your workspace:
json
{
"inputs": [
{
"type": "promptString",
"id": "gitlab-token",
"description": "GitLab Token",
"password": true
}
],
"servers": {
"GitLab-MCP": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@structured-world/gitlab-mcp"],
"env": {
"GITLAB_TOKEN": "${input:gitlab-token}",
"GITLAB_API_URL": "https://gitlab.com",
"GITLAB_READ_ONLY_MODE": "true"
}
}
}
}TIP
Using ${input:gitlab-token} prompts for the token securely each session, avoiding hardcoded secrets.
VS Code Insiders
The same configuration works for VS Code Insiders.
