Skip to content

Commit f41ebe8

Browse files
authored
Update README.md
1 parent f194a4f commit f41ebe8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,13 @@ To run this MCP server from cursor. Go to cursor settings -> Tools & integration
5050
{
5151
"mcpServers": {
5252
"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+
},
5560
"trust": true
5661
}
5762
}
@@ -81,8 +86,9 @@ Example configuration for running with Podman:
8186
"run",
8287
"-i",
8388
"--rm",
84-
"--env", "MCP_GITLAB_URL",
89+
"--env", "MCP_GITLAB_URL", ## <-- if this is not passed, it will fallback to default gitlab.com
8590
"--env", "MCP_GITLAB_TOKEN",
91+
"--env","MCP_ALLOWED_REPOS",
8692
"localhost/gitlab-mcp-server:latest"
8793
],
8894
}

0 commit comments

Comments
 (0)