Migrating from v2 to v3¶
v3.0.0 removes the settings below. v2 kept them working with deprecation warnings. This page describes the complete v3.0.0 release. The removals land together and ship only in v3.0.0; no v2 release removes any of them. In v3 an active removed setting stops the server from starting. The server prints the replacement and links back to this page, so a setting is never silently ignored.
Delete each setting below from your configuration entirely, including false and empty
values (for example, an empty GITLAB_READ_ONLY_MODE= line in a templated .env). Do not
leave them in place: the server accepts an inactive flag such as --read-only=false or
--use-wiki=false, but the human CLI rejects every removed flag as unknown, even with
false or an empty value (tool whoami --read-only=false fails with
Unknown flag: --read-only).
Replacements¶
| Removed environment variable / CLI flag | Replacement | Notes |
|---|---|---|
GITLAB_READ_ONLY_MODE / --read-only |
GITLAB_PERMISSION_MODE=readonly / --permission-mode=readonly |
readonly exposes read tools only and rejects writes. |
GITLAB_ALLOWED_GROUPS / --allowed-groups |
GITLAB_OAUTH_ALLOWED_GROUPS / --oauth-allowed-groups |
Enforced only with GITLAB_MCP_OAUTH=true. |
USE_GITLAB_WIKI / --use-wiki |
Add wiki to GITLAB_TOOLSETS |
Only if it was enabled. See Choose the new GITLAB_TOOLSETS value. |
USE_MILESTONE / --use-milestone |
Add milestones to GITLAB_TOOLSETS |
Only if it was enabled. See Choose the new GITLAB_TOOLSETS value. |
USE_PIPELINE / --use-pipeline |
Add pipelines to GITLAB_TOOLSETS, and validate_ci_lint,validate_project_ci_lint to GITLAB_TOOLS |
Only if it was enabled. See Choose the new GITLAB_TOOLSETS value. The CI lint tools live in the ci toolset; append them to an existing GITLAB_TOOLS list only if you use CI lint. |
For the boolean settings (GITLAB_READ_ONLY_MODE and the USE_* settings), use a replacement
only if the setting was enabled in v2 (true or a bare flag). A false or empty value
needs no replacement: delete it. For a USE_* setting, do not add its toolset
(wiki, milestones, or pipelines) to GITLAB_TOOLSETS, or you expose tools that v2
kept off (for example the wiki create, update, and delete tools).
Choose the new GITLAB_TOOLSETS value¶
Keep exactly the toolsets you had in v2, then add the replacement for each enabled USE_*
setting. Add core only if v2 actually exposed core tools for you. In v2 the server chose
toolsets like this, and v3 keeps the same rules:
GITLAB_TOOLSETSunset or empty: the default toolset, which iscoreonly (merge requests, issues, repositories, branches, projects, labels, and identity). A value with no valid toolset name also falls back to this default.GITLAB_TOOLSETSset to a list: exactly the listed toolsets. The list replaces the default, socoreis exposed only if it is listed.GITLAB_TOOLSETS=all: every toolset except explicit-only ones such asapi.USE_GITLAB_WIKI,USE_MILESTONE, andUSE_PIPELINEadded their tools on top of whichever of these applied.
So:
GITLAB_TOOLSETSwas unset, empty, or had no valid toolset name (for exampleGITLAB_TOOLSETS=unknown): v2 fell back tocore, so keep it and add each enabled toolset:GITLAB_TOOLSETS=core,wiki,core,milestones, orcore,pipelines(or several, such ascore,wiki,pipelines). WritingGITLAB_TOOLSETS=wikiorunknown,wikiwould drop the core tools.GITLAB_TOOLSETSwas a list with at least one valid toolset name: append the new toolset to that list as it is, and do not addcoreunless it was already there. For example,GITLAB_TOOLSETS=searchwithUSE_GITLAB_WIKI=truebecomesGITLAB_TOOLSETS=search,wiki, notGITLAB_TOOLSETS=core,search,wiki. Addingcorewould expose tools such ascreate_issuethat v2 did not expose for you.GITLAB_TOOLSETS=all: it already includeswiki,milestones, andpipelines, so leave it exactly as it is.allis only valid on its own;all,wikidropsallas an unknown name.- Append only the toolsets whose legacy setting was enabled.
- A non-empty
--toolsetsflag overridesGITLAB_TOOLSETS. Apply these rules to whichever one you set. GITLAB_TOOL_PROFILE=slimapplies only whileGITLAB_TOOLSETSis unset. If you usedslimwith aUSE_*setting and noGITLAB_TOOLSETS(the only case where slim was active), the explicit list turns slim off (the server logs a warning) and the firsttools/listgainslist_labels, the only slim-hidden tool incore,wiki,milestones, andpipelines. To keep the v2 tool list, also setGITLAB_DENIED_TOOLS_REGEX=^list_labels$. Unlike slim, that regex blockslist_labelseven whenGITLAB_TOOLSnames it. IfGITLAB_TOOLSalready nameslist_labels, skip this: slim did not hide it for you. The variable holds one pattern, so setting it replaces any pattern you already use. If you have one, addlist_labelsto it instead:^(delete_label|list_labels)$for a list of names, or append|^list_labels$to any pattern, for example^delete_.*|^list_labels$.
Group access control needs MCP OAuth¶
GITLAB_OAUTH_ALLOWED_GROUPS restricts access only when GITLAB_MCP_OAUTH=true. With the
variable set and OAuth off, the server logs Group access control enabled but does not check
group membership. If you need group restriction, set both GITLAB_MCP_OAUTH=true and
GITLAB_OAUTH_ALLOWED_GROUPS.
GITLAB_API_URL with a comma¶
v2 split GITLAB_API_URL and --api-url at every comma, so a comma inside a password could be
read as a host and port. v3 stops at startup when a comma may be inside a username or password,
in the MCP server, the human CLI (tool, doctor, setup), and auth. The error is
GITLAB_API_URL comma 1 of 1 may be inside a username or password, .... It names the comma's
position only and does not print the value.
Write the comma as %2C:
Or remove the username and password, because requests do not use them. Lists without userinfo,
such as https://a.example/api/v4,https://b.example/api/v4, work as before.
Example¶
# v2 configuration (GITLAB_TOOLSETS unset, so v2 exposed core)
GITLAB_READ_ONLY_MODE=true
GITLAB_ALLOWED_GROUPS=my-group
USE_GITLAB_WIKI=true
USE_PIPELINE=true
# v3 configuration
GITLAB_PERMISSION_MODE=readonly
GITLAB_OAUTH_ALLOWED_GROUPS=my-group # requires GITLAB_MCP_OAUTH=true
GITLAB_TOOLSETS=core,wiki,pipelines
GITLAB_TOOLS=validate_ci_lint,validate_project_ci_lint # only if you use CI lint
# v2 configuration with an explicit list that omits core
GITLAB_TOOLSETS=search
USE_GITLAB_WIKI=true
# v3 configuration: keep the list, append wiki, do not add core
GITLAB_TOOLSETS=search,wiki
What a leftover setting looks like¶
Startup stops with a message like this:
Removed configuration detected:
- GITLAB_READ_ONLY_MODE (--read-only) was removed. Use GITLAB_PERMISSION_MODE=readonly (or --permission-mode=readonly) instead.
Migration guide: https://github.com/zereight/gitlab-mcp/blob/main/docs/migration/v2-to-v3.md
Tracking issue: https://github.com/zereight/gitlab-mcp/issues/815
Remove the named setting and restart. The same check runs for the human CLI and for the
OAuth auth command.
Security support¶
v2 security support ends on 2027-02-28 or 90 days after the v3.0 release, whichever is later. Plan the upgrade to v3 before then.