Cline
Configure GitLab MCP for Cline (VS Code extension).
Auto-Setup
bash
npx @structured-world/gitlab-mcp install --clineDetection
| Method | Details |
|---|---|
| Type | Extension storage directory |
| Extension ID | saoudrizwan.claude-dev |
| Auto-detected | Yes (when extension storage exists) |
Config File Location
| OS | Path |
|---|---|
| macOS | ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json |
| Windows | %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json |
| Linux | ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json |
Configuration
Add to your cline_mcp_settings.json:
json
{
"mcpServers": {
"gitlab": {
"command": "npx",
"args": ["-y", "@structured-world/gitlab-mcp"],
"env": {
"GITLAB_TOKEN": "glpat-xxxxxxxxxxxxxxxxxxxx",
"GITLAB_API_URL": "https://gitlab.com"
}
}
}
}Remote Server
Connect to a running GitLab MCP HTTP server:
json
{
"mcpServers": {
"gitlab": {
"type": "streamable-http",
"url": "http://localhost:3333/mcp"
}
}
}Verification
- Open VS Code with the Cline extension installed
- Open the Cline panel
- Check MCP server status in Cline settings
- GitLab tools should appear in the available tools list
Troubleshooting
- Config path not found: Install the Cline extension first, then the settings directory will be created
- Server not connecting: Reload VS Code window after config changes
- Extension ID changed: Verify the extension is
saoudrizwan.claude-devin your VS Code extensions
