File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,13 @@ To run this MCP server from cursor. Go to cursor settings -> Tools & integration
50
50
{
51
51
"mcpServers" : {
52
52
"gitlab-mcp-local" : {
53
- "command" : " python" ,
54
- "args" : [" <your venv absolute path>/gitlab_mcp_server.py" ],
53
+ "command" : " <venv absolute path>/python" ,
54
+ "args" : [" <git clone dir path>/gitlab_mcp_server.py" ],
55
+ "env" : {
56
+ "MCP_GITLAB_TOKEN" : " your-actual-token-here" ,
57
+ "MCP_ALLOWED_REPOS" : " list of comma separated repos or groups with wildcard" ,
58
+ "GITLAB_URL" : " https://gitlab.com" ## <-this is optional var but if you want to explicitly set to some gitlab instance pass here
59
+ },
55
60
"trust" : true
56
61
}
57
62
}
@@ -81,8 +86,9 @@ Example configuration for running with Podman:
81
86
" run" ,
82
87
" -i" ,
83
88
" --rm" ,
84
- " --env" , " MCP_GITLAB_URL" ,
89
+ " --env" , " MCP_GITLAB_URL" , ## <-- if this is not passed, it will fallback to default gitlab.com
85
90
" --env" , " MCP_GITLAB_TOKEN" ,
91
+ " --env" ," MCP_ALLOWED_REPOS" ,
86
92
" localhost/gitlab-mcp-server:latest"
87
93
],
88
94
}
You can’t perform that action at this time.
0 commit comments