GitLab MCP server tools: what read-only mode and the project allowlist really stop, and how to make your agent ask
All 290 tools of @zereight/mcp-gitlab 2.3.31, the most used community GitLab MCP server, checked by running it against a local stand-in for GitLab's REST API: what read-only mode removes and what it still reads, why the 40 default tools are not a limit, why its project allowlist leaked other projects until a second switch was on, which tools merge, push and run pipelines, and the Claude Code settings that make them ask.
Checked on by running @zereight/mcp-gitlab 2.3.31 (npm, published 21 November 2026, run with npx) from zereight/gitlab-mcp and reading its tools/list answer. Each tier is the tool risk checker’s reading, with our reason wherever we changed it. Written by the people who make VariantGate.
The short answer
Run it with GITLAB_PERMISSION_MODE=readonly, GITLAB_ALLOWED_PROJECT_IDS and ENABLE_STRICT_PROJECT_SCOPE=true: writes are refused by name and other projects stay out. Read-only mode still reads CI/CD variables and lets the agent turn on more tools, so deny those by name and give it a project access token with read_api and the Reporter role.
- Can run on their own
- 136
- Should ask a person
- 154
Which GitLab server this is
This page is about @zereight/mcp-gitlab, the community GitLab MCP server by zereight, MIT licensed and about 210,000 npm downloads a week. It is not GitLab’s own. GitLab has a built-in MCP server at /api/v4/mcp on every instance: an experiment in GitLab 18.3, beta in 18.6, and generally available since 19.5 on all tiers, according to GitLab’s documentation on 24 November 2026. It signs clients in with OAuth or a fine-grained token and refuses classic personal access tokens. We did not run it.
We ran npx -y @zereight/mcp-gitlab@2.3.31, published on 21 November 2026, against a small HTTP server on this machine that stood in for GitLab’s REST API v4 and recorded every request, with a made-up token and two made-up projects: 42, acme/app, and 99, other/secret. It accepted a plain http address. It made no request until a tool was called; its code also asks npm for a newer version at start-up, which we turned off with GITLAB_DISABLE_VERSION_CHECK=true. The token went only to our stand-in, as a Bearer header, and not into its log, with the audit log on as well. Everything below about what GitLab itself would answer comes from GitLab’s documentation, not from our stand-in.
40 tools by default, and the agent can add the rest
The server has 290 tools in 24 toolsets and lists 40 of them unless told otherwise: the 38 of its core toolset, plus discover_tools and help. That is a list, not a limit. discover_tools is one of the 40, and it turns on any toolset for the rest of the session. With GITLAB_TOOLSETS=core set explicitly, our client called it for pipelines and then create_pipeline sent POST /projects/42/pipeline; for variables it added create_project_variable, which went out too. merge_merge_request is not among the 40 either, but one discover_tools call for merge_requests away.
Only the api toolset, with its raw gitlab_api_request, cannot be turned on that way; it needs api named in GITLAB_TOOLSETS. What holds against discover_tools is GITLAB_DENIED_TOOLS_REGEX: denied tools were not added, and denying discover_tools itself removed it. Read-only mode holds too, because discover_tools adds only what the mode allows.
What read-only mode stops, and what it still reads
GITLAB_PERMISSION_MODE=readonly replaces the older GITLAB_READ_ONLY_MODE=true, which still works with a deprecation warning. It keeps 150 of the 290 tools, 32 of the 40 on by default. Called by name anyway, create_issue, merge_merge_request and create_pipeline each answered “not allowed in read-only mode”, and nothing reached our stand-in. The tools it keeps that are not marked read-only were checked too:
download_job_artifactsanddownload_attachmentrefused to save files to disk.execute_graphqlrefused amutation, also one placed second behind a query withoperationNamepointing at it, and one behind a#comment.gitlab_api_request, when theapitoolset is on, refused aPOST, but itsGETofprojects/42/variablesreturned the variables, and the README says it ignoresGITLAB_DENIED_TOOLS_REGEX. Keepapiout of the toolsets.
What read-only mode does not stop is reading secrets. In a read-only session our client called discover_tools for variables, and list_project_variables returned the DEPLOY_TOKEN value we had put in our stand-in, in full. GitLab’s API returns a masked variable’s value to whoever may read variables; masking hides it in job logs. list_webhooks returned a hook address with its token in it, and get_pipeline_job_output returns job logs, which hold whatever a job prints. The server wraps job logs in a warning that they may carry attacker text, which is the right instinct: the agent reads them. get_pipeline_schedule, on by default, returns a schedule’s variables with it, so the deny pattern in the add command names it, and the settings make job logs ask.
What modify mode lets through
GITLAB_PERMISSION_MODE=modify removes 40 tools: every delete, and the teardowns cancel_pipeline, cancel_pipeline_job, stop_environment, stop_stale_environments, unprotect_branch and unprotect_tag. delete_branch and cancel_pipeline were refused, and so was a push_files with a delete action. These went through:
merge_merge_requestwithshould_remove_source_branch: true, so a merge still deleted a branch.create_or_update_filewith empty content, sent as aPUTthat would blank the file, andpush_filescommitting tomain.create_pipeline,retry_pipelineandplay_pipeline_job, any of which can deploy.update_default_branch,protect_branch, andcreate_webhookpointed atattacker.example.test, which would send the project’s events there.
The project allowlist needs a second switch
GITLAB_PROJECT_ID is only a default. With it set to 42, a call naming project 99 went to /projects/99 and came back. GITLAB_ALLOWED_PROJECT_IDS=42 is the real allowlist, and every call that named another project was refused with “Access denied: Project 99 is not in the allowed project list” before anything reached our stand-in: get_project, get_file_contents, a create_merge_request into target_project_id 99, create_issue_link and move_work_item. The match is on the exact text, so project 42’s own path, acme%2Fapp, was refused too; list the IDs the agent will use.
Calls that name no project were not covered. With only the allowlist set, these went to GitLab’s global endpoints and returned project 99’s data as well as 42’s:
list_issuesandlist_merge_requestswithout aproject_id, sent asGET /issuesandGET /merge_requests.list_projects,search_repositoriesandlist_group_projects, which listed project 99 by name.search_code, sent as/search?scope=blobsacross the whole instance, which returned aconfig.ymlline with the password we had put in project 99.
ENABLE_STRICT_PROJECT_SCOPE=true closed all of them. The same list_issues and list_merge_requests went to /projects/42/issues and /projects/42/merge_requests, the project lists came back with 42 only, and search_code, list_events and list_todos were refused. The README does not mention the switch; we found it in the code, which also refuses execute_graphql whenever either project setting is on.
gitlab_api_request, the raw REST tool in the api toolset, refused projects/99, projects/42/../99 with the dots encoded or not, and projects?search=. It checks the path only, as the README warns: a POST projects/42/merge_requests whose body said target_project_id: 99 reached our stand-in unchanged.
GITLAB_TOOL_POLICY_APPROVE is not a person
The server can mark tools as needing approval. We set GITLAB_TOOL_POLICY_APPROVE=merge_merge_request,create_issue. The first merge_merge_request answered “requires confirmation … Re-call with _confirmed: true to proceed”. The second call, from the same client with _confirmed: true, sent the PUT …/merge, and create_issue with _confirmed: true on the first try created the issue. The server even adds _confirmed to each such tool’s schema, so the model sees how to approve itself. It slows a confused agent down; it does not put a person in the way. Claude Code’s own prompt, or a hook, does.
The token is the lock that holds
Every switch above lives in the server, and the README itself says gitlab_api_request passes the full token scope through. The server never looks at the token’s scopes; GitLab does. GitLab documents read_api as read access to the API, all groups and projects included, and api as complete read and write access. So with a read_api token no tool can merge, push or run a pipeline, whatever mode the server is in. For local OAuth sign-in, the server’s code already asks for read_api in read-only mode and api otherwise. Our stand-in did not check scopes, so this part comes from GitLab’s documentation, not our run.
Scope does not limit what a read reaches; the token’s user and role do. A personal access token sees every project its user sees. A project access token belongs to one project and has a role: as a Reporter it can read the code, issues and merge requests but not the CI/CD variables or webhooks, which GitLab shows only to Maintainers. That makes a read_api project access token with the Reporter role the setup in which even gitlab_api_request stays read-only and inside one project.
Files it writes
With writes allowed, download_attachment and download_job_artifacts saved into .gitlab-mcp-downloads in the folder the server started in, usually your project, with a .gitignore of * so git skips it. A local_path of ../../escape was refused, and a download that GitLab redirected to another port on this machine was refused as a non-public address; that server got nothing. GITLAB_DOWNLOAD_DIR moves the folder.
A setup we would use
Give the agent a project access token with read_api and the Reporter role, add the server in read-only mode with the allowlist and the strict switch, and deny the tools that read variables and webhooks. Replace 12345 with your project’s numeric ID, and keep the token in $GITLAB_TOKEN rather than in a --token flag, which other programs on the machine can see:
claude mcp add gitlab -e GITLAB_PERSONAL_ACCESS_TOKEN=$GITLAB_TOKEN -e GITLAB_API_URL=https://gitlab.com/api/v4 -e GITLAB_PERMISSION_MODE=readonly -e GITLAB_ALLOWED_PROJECT_IDS=12345 -e ENABLE_STRICT_PROJECT_SCOPE=true -e GITLAB_DENIED_TOOLS_REGEX="variable|webhook|^get_pipeline_schedule$" -- npx -y @zereight/mcp-gitlab@2.3.31Then nothing can write whatever the agent calls, other projects stay out of its lists and searches, and discover_tools adds only reads. The settings below let the look-only tools run and make the rest ask, including the ones that only appear after discover_tools.
The 40 tools on by default
Reaches people2 toolsAsk a person: once it reaches someone, it cannot be unsent.
create_merge_request_threadCreate a new thread on a merge request.
Server gives no read-only or destructive hint · toolset core, merge_requests
Our call: Posts in the token user's name, and GitLab notifies everyone taking part in the issue or merge request. It cannot be unsent.
create_issue_noteAdd a note to an issue, optionally replying to a discussion thread.
Server gives no read-only or destructive hint · toolset core, issues
Our call: Posts in the token user's name, and GitLab notifies everyone taking part in the issue or merge request. It cannot be unsent.
Changes data6 toolsAsk a person. Once it is routine, a standing rule can answer.
create_issueCreate a new issue.
Server gives no read-only or destructive hint · toolset core, issues
create_merge_requestCreate a new merge request.
Server gives no read-only or destructive hint · toolset core, merge_requests
update_merge_requestUpdate a merge request (merge_request_iid or source_branch required).
Server gives no read-only or destructive hint · toolset core, merge_requests
resolve_merge_request_threadResolve a thread on a merge request.
Server gives no read-only or destructive hint · toolset core, merge_requests
update_issueUpdate an issue.
Server gives no read-only or destructive hint · toolset core, issues
update_issue_description_patchPatch an issue description (search/replace or unified diff) without resending the full body.
Server gives no read-only or destructive hint · toolset core, issues
Only looks32 toolsLet it run. It only looks.
get_merge_request_approval_stateGet merge request approval details including approvers.
Server says: read-only · toolset core, merge_requests
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
search_repositoriesSearch for GitLab projects.
Server says: read-only · toolset core, repositories
get_file_contentsGet the contents of one file from a GitLab project.
Server says: read-only · toolset core, repositories
get_branchGet branch details (commit, protection status).
Server says: read-only · toolset core, merge_requests, branches
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
list_branchesList branches in project with search filter.
Server says: read-only · toolset core, merge_requests, branches
get_merge_requestGet details of a merge request (merge_request_iid or source_branch required).
Server says: read-only · toolset core, merge_requests
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
get_merge_request_diffsGet the changes/diffs of a merge request (merge_request_iid or source_branch required).
Server says: read-only · toolset core, merge_requests
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
list_merge_request_changed_filesList changed file paths in a merge request without diff content (merge_request_iid or source_branch required).
Server says: read-only · toolset core, merge_requests
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
list_merge_request_diffsList merge request diffs with pagination (merge_request_iid or source_branch required).
Server says: read-only · toolset core, merge_requests
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
get_merge_request_file_diffGet diffs for specific files from a merge request (merge_request_iid or source_branch required).
Server says: read-only · toolset core, merge_requests
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
mr_discussionsList discussion items for a merge request.
Server says: read-only · toolset core, merge_requests
get_merge_request_discussionGet a single discussion item for a merge request.
Server says: read-only · toolset core, merge_requests
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
get_merge_request_noteGet a specific note for a merge request.
Server says: read-only · toolset core, merge_requests
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
get_merge_request_notesList notes for a merge request.
Server says: read-only · toolset core, merge_requests
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
list_issuesList issues (default: created by current user; use scope='all' for all).
Server says: read-only · toolset core, issues
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
my_issuesList issues assigned to the authenticated user.
Server says: read-only · toolset core, issues
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
get_issueGet one issue.
Server says: read-only · toolset core, issues
list_issue_discussionsList discussions for an issue.
Server says: read-only · toolset core, issues
get_projectGet details of a specific project.
Server says: read-only · toolset core, projects
list_projectsList projects accessible by the current user.
Server says: read-only · toolset core, projects
list_project_membersList members of a GitLab project.
Server says: read-only · toolset core, projects
list_labelsList labels for a project.
Server says: read-only · toolset core, labels
get_repository_treeList files and directories in a repository.
Server says: read-only · toolset core, repositories
list_merge_requestsList merge requests (without project_id: user's MRs; with project_id: project MRs).
Server says: read-only · toolset core, merge_requests
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
whoamiGet current authenticated user details.
Server says: read-only · toolset core, users
list_commitsList repository commits with filtering options.
Server says: read-only · toolset core, branches
get_commitGet details of a specific commit.
Server says: read-only · toolset core, branches
get_commit_diffGet changes/diffs of a specific commit.
Server says: read-only · toolset core, branches
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
get_file_blameGet git blame for a file at a given ref.
Server says: read-only · toolset core, branches
health_checkCheck auth and versions.
Server says: read-only · toolset core, projects
discover_toolsList or activate a toolset for this session.
Server says: read-only
Our call: Changes nothing in GitLab, but turns on any toolset for the session, writes included unless read-only mode is on. Each new write still asks in Claude Code, since none has an allow rule.
helpReturn a short GitLab workflow guide.
Server says: read-only
The 250 tools in other toolsets
These appear after discover_tools, or with GITLAB_TOOLSETS, such as core,pipelines. execute_graphql is in no toolset and needs GITLAB_TOOLS=execute_graphql. The legacy USE_PIPELINE, USE_MILESTONE and USE_GITLAB_WIKI switches still turn on their toolsets and are deprecated.
Hard to undo60 toolsAsk a person every time. Consider two people, or deny it if the agent never needs it.
merge_merge_requestMerge a merge request.
Server says: destructive · toolset merge_requests
create_or_update_fileCreate or update a file in a GitLab project.
Server gives no read-only or destructive hint · toolset repositories
Our call: Replaces a whole file in one commit on the branch it names. In modify mode an empty content went through as a PUT that would leave the file blank.
push_filesPush multiple files in a single commit.
Server says: destructive · toolset repositories
delete_branchDelete branch from project.
Server says: destructive · toolset branches
protect_branchProtect a repository branch (set push/merge/unprotect access levels).
Server says: destructive · toolset branches
update_protected_branchUpdate an existing protected branch rule in place (access levels, force push, code owner approval).
Server says: destructive · toolset branches
unprotect_branchRemove protection from a previously protected branch.
Server says: destructive · toolset branches
update_default_branchChange the default branch of a project.
Server says: destructive · toolset branches
delete_merge_request_discussion_noteDelete a discussion note on a merge request.
Server says: destructive · toolset merge_requests
delete_merge_request_noteDelete an existing merge request note.
Server says: destructive · toolset merge_requests
delete_draft_noteDelete a draft note.
Server says: destructive · toolset merge_requests
delete_merge_request_emoji_reactionRemove an emoji reaction from a merge request.
Server says: destructive · toolset merge_requests
delete_merge_request_note_emoji_reactionRemove an emoji reaction from a merge request note.
Server says: destructive · toolset merge_requests
delete_issue_emoji_reactionRemove an emoji reaction from an issue.
Server says: destructive · toolset issues
delete_issue_note_emoji_reactionRemove an emoji reaction from an issue note.
Server says: destructive · toolset issues
delete_issueDelete an issue.
Server says: destructive · toolset issues
delete_issue_linkDelete an issue link.
Server says: destructive · toolset issues
update_projectUpdate project settings such as description, visibility, default branch, and feature access levels.
Server gives no read-only or destructive hint · toolset projects
Our call: Changes project settings, visibility included, so one call can make a private project public.
delete_labelDelete a label from a project.
Server says: destructive · toolset labels
delete_wiki_pageDelete a wiki page from a project.
Server says: destructive · toolset wiki
delete_group_wiki_pageDelete a wiki page from a group.
Server says: destructive · toolset wiki
delete_pipelineDelete a pipeline.
Server says: destructive · toolset pipelines
delete_deploymentDelete a deployment.
Server says: destructive · toolset pipelines
approve_deploymentApprove or reject a protected-environment deployment.
Server says: destructive · toolset pipelines
delete_environmentDelete a stopped environment.
Server says: destructive · toolset pipelines
stop_environmentStop an environment.
Server says: destructive · toolset pipelines
stop_stale_environmentsStop eligible stale environments; protected environments are excluded and environments are stopped, not deleted.
Server says: destructive · toolset pipelines
delete_review_app_environmentsSchedule deletion of stopped review-app environments one week later; dry_run defaults to true and actual scheduling requires dry_run=false.
Server says: destructive · toolset pipelines
delete_pipeline_triggerDelete a project pipeline trigger.
Server says: destructive · toolset pipelines
trigger_pipelineTrigger a pipeline with a pipeline trigger token.
Server gives no read-only or destructive hint · toolset pipelines
Our call: Runs the project's CI/CD jobs, which can deploy. It went through in modify mode, which only stops deletes and teardowns.
create_pipelineCreate a new pipeline for a branch or tag.
Server gives no read-only or destructive hint · toolset pipelines
Our call: Runs the project's CI/CD jobs, which can deploy. It went through in modify mode, which only stops deletes and teardowns.
retry_pipelineRetry a failed or canceled pipeline.
Server gives no read-only or destructive hint · toolset pipelines
cancel_pipelineCancel a running pipeline.
Server says: destructive · toolset pipelines
delete_pipeline_scheduleDelete a pipeline schedule.
Server says: destructive · toolset pipelines
play_pipeline_scheduleRun a pipeline schedule immediately.
Server gives no read-only or destructive hint · toolset pipelines
delete_pipeline_schedule_variableDelete a variable from a pipeline schedule.
Server says: destructive · toolset pipelines
play_pipeline_jobRun a manual pipeline job.
Server gives no read-only or destructive hint · toolset pipelines
play_pipeline_jobsPlay multiple manual pipeline jobs sequentially.
Server gives no read-only or destructive hint · toolset pipelines
Our call: Starts manual CI/CD jobs one after another, and manual jobs are often the deploys.
retry_pipeline_jobRetry a failed or canceled pipeline job.
Server gives no read-only or destructive hint · toolset pipelines
cancel_pipeline_jobCancel a running pipeline job.
Server says: destructive · toolset pipelines
erase_pipeline_jobErase a pipeline job log and artifacts.
Server says: destructive · toolset pipelines
delete_milestoneDelete a milestone.
Server says: destructive · toolset milestones
delete_group_milestoneDelete a group milestone.
Server says: destructive · toolset milestones
delete_group_iterationDelete a group iteration by ID, IID, or GraphQL GID.
Server says: destructive · toolset projects
delete_group_iteration_cadenceDelete an iteration cadence.
Server says: destructive · toolset projects
delete_releaseDelete a release (does not delete the tag).
Server says: destructive · toolset releases
create_release_evidenceCreate release evidence (Premium/Ultimate).
Server gives no read-only or destructive hint · toolset releases
delete_tagDelete a repository tag.
Server says: destructive · toolset tags
protect_tagProtect a repository tag or wildcard (set who can create it).
Server says: destructive · toolset tags
unprotect_tagRemove protection from a previously protected tag or wildcard.
Server says: destructive · toolset tags
delete_snippetDelete a snippet.
Server says: destructive · toolset snippets
delete_work_item_emoji_reactionRemove an emoji reaction from a work item.
Server says: destructive · toolset workitems
delete_work_item_note_emoji_reactionRemove an emoji reaction from a work item note (comment, thread, or thread reply).
Server says: destructive · toolset workitems
delete_webhookDelete a project or group webhook.
Server says: destructive · toolset webhooks
delete_project_variableDelete a CI/CD variable from a project.
Server says: destructive · toolset variables
delete_group_variableDelete a CI/CD variable from a group.
Server says: destructive · toolset variables
purge_dependency_proxy_cacheSchedule purge of all cached dependency proxy blobs for a group.
Server says: destructive · toolset dependency_proxy
rebase_merge_requestRebase the source branch of a merge request onto its target branch.
Server says: destructive · toolset merge_requests
gitlab_api_requestDANGER: bypasses group and project restrictions, tool allowlists (GITLAB_TOOLS and GITLAB_DENIED_TOOLS_REGEX on other tools), and individual tool safety checks.
Server says: destructive · toolset api
execute_graphqlExecute a GitLab GraphQL query.
Server gives no read-only or destructive hint
Reaches people10 toolsAsk a person: once it reaches someone, it cannot be unsent.
fork_repositoryFork a project to your account or specified namespace.
Server gives no read-only or destructive hint · toolset repositories
Our call: Copies the whole repository into another namespace, such as your personal one, outside the group's own rules.
create_noteCreate a new note (comment) to an issue or merge request.
Server gives no read-only or destructive hint · toolset issues
Our call: Posts in the token user's name, and GitLab notifies everyone taking part in the issue or merge request. It cannot be unsent.
create_merge_request_discussion_noteAdd a new discussion note to an existing merge request thread.
Server gives no read-only or destructive hint · toolset merge_requests
Our call: Posts in the token user's name, and GitLab notifies everyone taking part in the issue or merge request. It cannot be unsent.
create_merge_request_noteAdd a new note to a merge request.
Server gives no read-only or destructive hint · toolset merge_requests
Our call: Posts in the token user's name, and GitLab notifies everyone taking part in the issue or merge request. It cannot be unsent.
publish_draft_notePublish a single draft note.
Server gives no read-only or destructive hint · toolset merge_requests
bulk_publish_draft_notesPublish all draft notes for a merge request.
Server gives no read-only or destructive hint · toolset merge_requests
create_snippetCreate a snippet — project-scoped when project_id is given, otherwise a personal snippet.
Server gives no read-only or destructive hint · toolset snippets
Our call: Takes a visibility, and a public snippet can be read by anyone the moment it exists.
create_work_item_noteAdd a note to a work item (supports Markdown, internal notes, threads).
Server gives no read-only or destructive hint · toolset workitems
Our call: Posts in the token user's name, and GitLab notifies everyone taking part in the issue or merge request. It cannot be unsent.
create_webhookCreate a webhook on a project or group.
Server gives no read-only or destructive hint · toolset webhooks
Our call: Makes GitLab send the project's events, with commit and merge request contents, to any address the call names. In modify mode it passed with our attacker.example.test address.
update_webhookUpdate an existing project or group webhook.
Server gives no read-only or destructive hint · toolset webhooks
Our call: Makes GitLab send the project's events, with commit and merge request contents, to any address the call names. In modify mode it passed with our attacker.example.test address.
Not sure10 toolsAsk a person until you have checked what it does.
get_pipeline_variablesGet variables configured for a pipeline.
Server says: read-only · toolset pipelines
Our call: Only reads, but what it reads is a CI/CD variable's value, secrets included. Read-only mode keeps it: there discover_tools turned on list_project_variables, which returned our stand-in's DEPLOY_TOKEN in full.
get_pipeline_job_outputGet a pipeline job trace.
Server says: read-only · toolset pipelines
Our call: Only reads, but a job log holds whatever the job printed, a secret a script echoed included, and text an attacker put in a branch. The server wraps it in a warning; a person should still see which log is read.
get_pipeline_scheduleGet details of a specific pipeline schedule, including its variables and last pipeline.
Server says: read-only · toolset pipelines
Our call: Only reads, but what it reads is a CI/CD variable's value, secrets included. Read-only mode keeps it: there discover_tools turned on list_project_variables, which returned our stand-in's DEPLOY_TOKEN in full.
get_pipeline_schedule_variableGet a single variable of a pipeline schedule.
Server says: read-only · toolset pipelines
Our call: Only reads, but what it reads is a CI/CD variable's value, secrets included. Read-only mode keeps it: there discover_tools turned on list_project_variables, which returned our stand-in's DEPLOY_TOKEN in full.
list_webhooksList webhooks for a project or group.
Server says: read-only · toolset webhooks
Our call: Only reads, but returns each webhook's address, and for Slack-style hooks the address is the secret. Read-only mode keeps it.
list_project_variablesList CI/CD variables for a project.
Server says: read-only · toolset variables
Our call: Only reads, but what it reads is a CI/CD variable's value, secrets included. Read-only mode keeps it: there discover_tools turned on list_project_variables, which returned our stand-in's DEPLOY_TOKEN in full.
get_project_variableGet a single CI/CD variable from a project.
Server says: read-only · toolset variables
Our call: Only reads, but what it reads is a CI/CD variable's value, secrets included. Read-only mode keeps it: there discover_tools turned on list_project_variables, which returned our stand-in's DEPLOY_TOKEN in full.
list_group_variablesList CI/CD variables for a group.
Server says: read-only · toolset variables
Our call: Only reads, but what it reads is a CI/CD variable's value, secrets included. Read-only mode keeps it: there discover_tools turned on list_project_variables, which returned our stand-in's DEPLOY_TOKEN in full.
get_group_variableGet a single CI/CD variable from a group.
Server says: read-only · toolset variables
Our call: Only reads, but what it reads is a CI/CD variable's value, secrets included. Read-only mode keeps it: there discover_tools turned on list_project_variables, which returned our stand-in's DEPLOY_TOKEN in full.
orbit_queryExecute a GitLab Orbit graph query over the indexed SDLC knowledge graph.
Server says: read-only · toolset orbit
Our call: Marked read-only, but its own description says each call uses GitLab credits.
Changes data66 toolsAsk a person. Once it is routine, a standing rule can answer.
approve_merge_requestApprove a merge request.
Server gives no read-only or destructive hint · toolset merge_requests
unapprove_merge_requestUnapprove a merge request.
Server gives no read-only or destructive hint · toolset merge_requests
create_repositoryCreate a new GitLab project.
Server gives no read-only or destructive hint · toolset repositories
create_groupCreate new group or subgroup.
Server gives no read-only or destructive hint · toolset groups
create_branchCreate a new branch.
Server gives no read-only or destructive hint · toolset branches
update_merge_request_discussion_noteUpdate a discussion note on a merge request.
Server gives no read-only or destructive hint · toolset merge_requests
update_merge_request_noteModify an existing merge request note.
Server gives no read-only or destructive hint · toolset merge_requests
create_draft_noteCreate a draft note for a merge request.
Server gives no read-only or destructive hint · toolset merge_requests
update_draft_noteUpdate an existing draft note.
Server gives no read-only or destructive hint · toolset merge_requests
create_merge_request_emoji_reactionAdd an emoji reaction to a merge request (e.g.
Server gives no read-only or destructive hint · toolset merge_requests
create_merge_request_note_emoji_reactionAdd an emoji reaction to a merge request note.
Server gives no read-only or destructive hint · toolset merge_requests
update_issue_noteModify an existing issue thread note.
Server gives no read-only or destructive hint · toolset issues
create_issue_emoji_reactionAdd an emoji reaction to an issue (e.g.
Server gives no read-only or destructive hint · toolset issues
create_issue_note_emoji_reactionAdd an emoji reaction to an issue note.
Server gives no read-only or destructive hint · toolset issues
reorder_issueMove an issue within the manual sort order shown on issue boards.
Server gives no read-only or destructive hint · toolset issues
Our call: Moves an issue in the board order. The checker takes order for a purchase.
mark_todo_doneMark a GitLab to-do item as done.
Server gives no read-only or destructive hint · toolset issues
mark_all_todos_doneMark all pending GitLab to-do items as done for the current user.
Server gives no read-only or destructive hint · toolset issues
create_issue_linkCreate an issue link between two issues.
Server gives no read-only or destructive hint · toolset issues
create_labelCreate a new label in a project.
Server gives no read-only or destructive hint · toolset labels
update_labelUpdate an existing label in a project.
Server gives no read-only or destructive hint · toolset labels
create_wiki_pageCreate a wiki page in a project.
Server gives no read-only or destructive hint · toolset wiki
update_wiki_pageUpdate a wiki page in a project.
Server gives no read-only or destructive hint · toolset wiki
create_group_wiki_pageCreate a wiki page in a group.
Server gives no read-only or destructive hint · toolset wiki
update_group_wiki_pageUpdate a wiki page in a group.
Server gives no read-only or destructive hint · toolset wiki
update_pipeline_metadataUpdate pipeline metadata.
Server gives no read-only or destructive hint · toolset pipelines
create_deploymentCreate a deployment.
Server gives no read-only or destructive hint · toolset pipelines
update_deploymentUpdate a deployment status.
Server gives no read-only or destructive hint · toolset pipelines
update_environmentUpdate an environment.
Server gives no read-only or destructive hint · toolset pipelines
create_pipeline_triggerCreate a project pipeline trigger.
Server gives no read-only or destructive hint · toolset pipelines
update_pipeline_triggerUpdate a project pipeline trigger.
Server gives no read-only or destructive hint · toolset pipelines
create_pipeline_scheduleCreate a new pipeline schedule for a branch or tag.
Server gives no read-only or destructive hint · toolset pipelines
update_pipeline_scheduleUpdate an existing pipeline schedule.
Server gives no read-only or destructive hint · toolset pipelines
take_ownership_pipeline_scheduleTake ownership of a pipeline schedule.
Server gives no read-only or destructive hint · toolset pipelines
create_pipeline_schedule_variableCreate a variable for a pipeline schedule.
Server gives no read-only or destructive hint · toolset pipelines
update_pipeline_schedule_variableUpdate a variable of a pipeline schedule.
Server gives no read-only or destructive hint · toolset pipelines
download_job_artifactsDownload job artifact archive (zip) and save it under the download directory.
Server gives no read-only or destructive hint · toolset pipelines
create_milestoneCreate a new milestone.
Server gives no read-only or destructive hint · toolset milestones
edit_milestoneEdit an existing milestone.
Server gives no read-only or destructive hint · toolset milestones
promote_milestonePromote a milestone to the next stage.
Server gives no read-only or destructive hint · toolset milestones
Our call: Moves a project milestone up to its group, where every project in the group sees it.
create_group_milestoneCreate a new group milestone.
Server gives no read-only or destructive hint · toolset milestones
edit_group_milestoneEdit an existing group milestone.
Server gives no read-only or destructive hint · toolset milestones
create_commit_statusCreate or update the status of a commit.
Server gives no read-only or destructive hint · toolset branches
update_group_iterationUpdate a manual group iteration's title, description, or dates.
Server gives no read-only or destructive hint · toolset projects
create_group_iterationCreate a group iteration, optionally in a given iteration cadence.
Server gives no read-only or destructive hint · toolset projects
create_group_iteration_cadenceCreate an iteration cadence in a group.
Server gives no read-only or destructive hint · toolset projects
update_group_iteration_cadenceUpdate an iteration cadence's title, description, schedule, or automation.
Server gives no read-only or destructive hint · toolset projects
upload_markdownUpload a file for use in markdown content.
Server gives no read-only or destructive hint · toolset users
download_attachmentDownload an uploaded file from a project (images returned as base64; other files, or images with local_path, are saved as new files under the download directory).
Server gives no read-only or destructive hint · toolset users
create_releaseCreate a new release.
Server gives no read-only or destructive hint · toolset releases
update_releaseUpdate an existing release.
Server gives no read-only or destructive hint · toolset releases
create_tagCreate a new repository tag.
Server gives no read-only or destructive hint · toolset tags
update_snippetUpdate an existing snippet (provide at least one field to change).
Server gives no read-only or destructive hint · toolset snippets
create_work_itemCreate a work item (issue, task, incident, epic, etc.) with full field support.
Server gives no read-only or destructive hint · toolset workitems
update_work_itemUpdate a work item (title, description, labels, assignees, state, parent, iteration, custom fields, etc.).
Server gives no read-only or destructive hint · toolset workitems
convert_work_item_typeConvert a work item to a different type.
Server gives no read-only or destructive hint · toolset workitems
Our call: Turns a work item into another type, such as an issue into a task.
move_work_itemMove a work item to a different project.
Server gives no read-only or destructive hint · toolset workitems
create_work_item_emoji_reactionAdd an emoji reaction to a work item (e.g.
Server gives no read-only or destructive hint · toolset workitems
create_work_item_note_emoji_reactionAdd an emoji reaction to a work item note (comment, thread, or thread reply).
Server gives no read-only or destructive hint · toolset workitems
create_timeline_eventCreate a timeline event on an incident.
Server gives no read-only or destructive hint · toolset workitems
create_project_variableCreate a CI/CD variable for a project.
Server gives no read-only or destructive hint · toolset variables
update_project_variableUpdate an existing CI/CD variable in a project.
Server gives no read-only or destructive hint · toolset variables
create_group_variableCreate a CI/CD variable for a group.
Server gives no read-only or destructive hint · toolset variables
update_group_variableUpdate an existing CI/CD variable in a group.
Server gives no read-only or destructive hint · toolset variables
update_dependency_proxy_settingsUpdate dependency proxy settings for a group (enable/disable, credentials for authenticated Docker Hub pulls).
Server gives no read-only or destructive hint · toolset dependency_proxy
dismiss_vulnerabilityDismiss a vulnerability with a reason (acceptable_risk, false_positive, used_in_tests, mitigating_control, not_applicable) and optional comment.
Server gives no read-only or destructive hint · toolset vulnerabilities
confirm_vulnerabilityConfirm a vulnerability as a real finding requiring remediation.
Server gives no read-only or destructive hint · toolset vulnerabilities
Our call: Changes a vulnerability's state in the project's security records. The checker takes confirm for a look.
Only looks104 toolsLet it run. It only looks.
get_merge_request_conflictsGet the conflicts of a merge request.
Server says: read-only · toolset merge_requests
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
list_merge_request_pipelinesList pipelines for a merge request with pagination.
Server says: read-only · toolset merge_requests
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
list_protected_branchesList protected branches in a project, supports search filter.
Server says: read-only · toolset branches
get_protected_branchGet details of a single protected branch (access levels, force push settings).
Server says: read-only · toolset branches
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
list_merge_request_versionsList all versions of a merge request.
Server says: read-only · toolset merge_requests
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
get_merge_request_versionGet a specific version of a merge request.
Server says: read-only · toolset merge_requests
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
get_branch_diffsGet diffs between two branches or commits.
Server says: read-only · toolset merge_requests
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
get_draft_noteGet a single draft note from a merge request.
Server says: read-only · toolset merge_requests
list_draft_notesList draft notes for a merge request.
Server says: read-only · toolset merge_requests
list_merge_request_emoji_reactionsList all emoji reactions on a merge request.
Server says: read-only · toolset merge_requests
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
list_merge_request_note_emoji_reactionsList all emoji reactions on a merge request note.
Server says: read-only · toolset merge_requests
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
list_issue_emoji_reactionsList all emoji reactions on an issue.
Server says: read-only · toolset issues
list_issue_note_emoji_reactionsList all emoji reactions on an issue note.
Server says: read-only · toolset issues
list_todosList GitLab to-do items for the current user.
Server says: read-only · toolset issues
list_issue_linksList all issue links for a specific issue.
Server says: read-only · toolset issues
list_issue_label_eventsList an issue's label history: who added or removed which label, when.
Server says: read-only · toolset issues
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
list_issue_state_eventsList an issue's state history: who closed or reopened it, when.
Server says: read-only · toolset issues
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
get_issue_linkGet a specific issue link.
Server says: read-only · toolset issues
list_namespacesList all namespaces (users and groups) available to the current user.
Server says: read-only · toolset projects
get_namespaceGet details of a namespace (user or group) by ID or path.
Server says: read-only · toolset projects
verify_namespaceVerify if a namespace path exists.
Server says: read-only · toolset projects
list_group_membersList members of a GitLab group with optional name or username search.
Server says: read-only · toolset projects
get_labelGet a single label from a project.
Server says: read-only · toolset labels
list_group_projectsList projects in a group.
Server says: read-only · toolset projects
list_wiki_pagesList wiki pages in a project.
Server says: read-only · toolset wiki
get_wiki_pageGet details of a specific wiki page.
Server says: read-only · toolset wiki
list_group_wiki_pagesList wiki pages in a group.
Server says: read-only · toolset wiki
get_group_wiki_pageGet details of a specific group wiki page.
Server says: read-only · toolset wiki
list_pipelinesList pipelines with filtering options.
Server says: read-only · toolset pipelines
get_pipelineGet details of a specific pipeline.
Server says: read-only · toolset pipelines
get_pipeline_test_reportGet pipeline test report.
Server says: read-only · toolset pipelines
get_pipeline_test_report_summaryGet pipeline test report summary.
Server says: read-only · toolset pipelines
list_deploymentsList deployments with filtering options.
Server says: read-only · toolset pipelines
get_deploymentGet deployment details, including approval_summary, approvals, and pending_approval_count when GitLab provides them.
Server says: read-only · toolset pipelines
list_deployment_merge_requestsList merge requests shipped with a deployment.
Server says: read-only · toolset pipelines
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
list_environmentsList environments in a project.
Server says: read-only · toolset pipelines
get_environmentGet details of a specific environment.
Server says: read-only · toolset pipelines
list_pipeline_triggersList project pipeline trigger tokens.
Server says: read-only · toolset pipelines
get_pipeline_triggerGet a project pipeline trigger.
Server says: read-only · toolset pipelines
list_pipeline_jobsList all jobs in a specific pipeline.
Server says: read-only · toolset pipelines
list_pipeline_trigger_jobsList trigger jobs (bridges) in a pipeline.
Server says: read-only · toolset pipelines
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
get_pipeline_jobGet details of a GitLab pipeline job number.
Server says: read-only · toolset pipelines
validate_ci_lintValidate provided GitLab CI/CD YAML content for a project.
Server says: read-only · toolset ci
validate_project_ci_lintValidate an existing .gitlab-ci.yml configuration for a project.
Server says: read-only · toolset ci
list_ci_catalog_resourcesList GitLab CI/CD Catalog resources/components visible to the user.
Server says: read-only · toolset ci
get_ci_catalog_resourceGet details for a GitLab CI/CD Catalog resource, including versions and components.
Server says: read-only · toolset ci
list_pipeline_schedulesList pipeline schedules in a project, optionally filtered to active or inactive.
Server says: read-only · toolset pipelines
list_pipeline_schedule_pipelinesList the pipelines that a pipeline schedule has triggered.
Server says: read-only · toolset pipelines
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
wait_for_pipelineWait for a pipeline to reach a terminal status.
Server says: read-only · toolset pipelines
wait_for_jobWait for a job to reach a terminal status.
Server says: read-only · toolset pipelines
list_job_artifactsList artifact files in a job's archive.
Server says: read-only · toolset pipelines
get_job_artifact_fileGet content of a single file from a job's artifacts.
Server says: read-only · toolset pipelines
list_group_merge_requestsList merge requests across all projects of a group and its subgroups.
Server says: read-only · toolset merge_requests
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
list_milestonesList milestones with filtering options.
Server says: read-only · toolset milestones
get_milestoneGet details of a specific milestone.
Server says: read-only · toolset milestones
get_milestone_issueGet issues associated with a specific milestone.
Server says: read-only · toolset milestones
get_milestone_merge_requestsGet merge requests associated with a specific milestone.
Server says: read-only · toolset milestones
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
get_milestone_burndown_eventsGet burndown events for a specific milestone.
Server says: read-only · toolset milestones
list_group_milestonesList group milestones with filtering options.
Server says: read-only · toolset milestones
get_group_milestoneGet details of a specific group milestone.
Server says: read-only · toolset milestones
get_group_milestone_issueGet issues associated with a specific group milestone.
Server says: read-only · toolset milestones
get_group_milestone_merge_requestsGet merge requests associated with a specific group milestone.
Server says: read-only · toolset milestones
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
get_group_milestone_burndown_eventsGet burndown events for a specific group milestone.
Server says: read-only · toolset milestones
get_usersGet GitLab user details by usernames.
Server says: read-only · toolset users
get_userGet user details by ID.
Server says: read-only · toolset users
list_commit_statusesList statuses for a commit.
Server says: read-only · toolset branches
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
list_group_iterationsList group iterations with filtering options.
Server says: read-only · toolset projects
get_group_iterationGet a group iteration by ID, IID, or GraphQL GID.
Server says: read-only · toolset projects
list_project_iterationsList the iterations available to a project with filtering options.
Server says: read-only · toolset projects
list_group_iteration_cadencesList a group's iteration cadences with filtering options.
Server says: read-only · toolset projects
list_eventsList events for the authenticated user (before/after: YYYY-MM-DD).
Server says: read-only · toolset users
get_project_eventsList events for a project (before/after: YYYY-MM-DD).
Server says: read-only · toolset users
list_releasesList all releases for a project.
Server says: read-only · toolset releases
get_releaseGet a release by tag name.
Server says: read-only · toolset releases
download_release_assetDownload a release asset file by direct asset path.
Server says: read-only · toolset releases
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
list_tagsList repository tags for a project.
Server says: read-only · toolset tags
get_tagGet a repository tag by name.
Server says: read-only · toolset tags
get_tag_signatureGet the X.509 signature of a signed tag (404 if unsigned).
Server says: read-only · toolset tags
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
list_protected_tagsList protected tags in a project.
Server says: read-only · toolset tags
get_protected_tagGet details of a single protected tag or wildcard (create access levels).
Server says: read-only · toolset tags
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
list_snippetsList snippets — project snippets when project_id is given, otherwise personal snippets.
Server says: read-only · toolset snippets
get_snippetGet a snippet's metadata.
Server says: read-only · toolset snippets
get_work_itemGet a work item with full details including status, hierarchy, type, and widgets.
Server says: read-only · toolset workitems
list_work_itemsList work items with filters (type, state, search, assignees, labels).
Server says: read-only · toolset workitems
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
list_work_item_statusesList available statuses for a work item type (Premium/Ultimate).
Server says: read-only · toolset workitems
list_custom_field_definitionsList custom field definitions for a work item type.
Server says: read-only · toolset workitems
list_work_item_notesList notes and discussions on a work item.
Server says: read-only · toolset workitems
list_work_item_emoji_reactionsList all emoji reactions on a work item.
Server says: read-only · toolset workitems
list_work_item_note_emoji_reactionsList all emoji reactions on a work item note (comment, thread, or thread reply).
Server says: read-only · toolset workitems
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
get_timeline_eventsList timeline events for an incident.
Server says: read-only · toolset workitems
list_webhook_eventsList recent webhook events (past 7 days).
Server says: read-only · toolset webhooks
get_webhook_eventGet full details of a specific webhook event.
Server says: read-only · toolset webhooks
search_codeSearch for code across all projects (requires advanced search or Zoekt).
Server says: read-only · toolset search
search_project_codeSearch for code within a specific project (requires advanced search or Zoekt).
Server says: read-only · toolset search
search_group_codeSearch for code within a specific group (requires advanced search or Zoekt).
Server says: read-only · toolset search
get_dependency_proxy_settingsGet dependency proxy settings for a group.
Server says: read-only · toolset dependency_proxy
list_dependency_proxy_blobsList cached dependency proxy blobs for a group.
Server says: read-only · toolset dependency_proxy
list_project_vulnerabilitiesList vulnerabilities for a project with optional state, severity, and report type filters (GraphQL-backed, cursor pagination).
Server says: read-only · toolset vulnerabilities
get_vulnerabilityGet full details of a specific vulnerability.
Server says: read-only · toolset vulnerabilities
orbit_get_schemaFetch the current GitLab Orbit graph schema (node and edge types).
Server says: read-only · toolset orbit
orbit_get_statusCheck GitLab Orbit indexing status for the enabled scope.
Server says: read-only · toolset orbit
Our call: Marked read-only and kept by read-only mode, and it only reads. The checker takes a word in its name, such as merge, for a change.
orbit_list_toolsList the MCP tool definitions exposed by GitLab Orbit.
Server says: read-only · toolset orbit
list_project_runnersList runners available to a project.
Server says: read-only · toolset pipelines
get_runnerGet one runner by ID.
Server says: read-only · toolset pipelines
Let the reads run in Claude Code
Claude Code asks before every MCP tool it has no rule for. Added as gitlab, this server’s tools are named mcp__gitlab__<tool>. These allow rules, in .claude/settings.json or ~/.claude/settings.json, let the tools that only look run without a prompt. Everything else keeps asking, including any tool a later version of the server adds.
{
"permissions": {
"allow": [
"mcp__gitlab__get_merge_request_approval_state",
"mcp__gitlab__get_merge_request_conflicts",
"mcp__gitlab__list_merge_request_pipelines",
"mcp__gitlab__search_repositories",
"mcp__gitlab__get_file_contents",
"mcp__gitlab__get_branch",
"mcp__gitlab__list_branches",
"mcp__gitlab__list_protected_branches",
"mcp__gitlab__get_protected_branch",
"mcp__gitlab__get_merge_request",
"mcp__gitlab__get_merge_request_diffs",
"mcp__gitlab__list_merge_request_changed_files",
"mcp__gitlab__list_merge_request_diffs",
"mcp__gitlab__get_merge_request_file_diff",
"mcp__gitlab__list_merge_request_versions",
"mcp__gitlab__get_merge_request_version",
"mcp__gitlab__get_branch_diffs",
"mcp__gitlab__mr_discussions",
"mcp__gitlab__get_merge_request_discussion",
"mcp__gitlab__get_merge_request_note",
"mcp__gitlab__get_merge_request_notes",
"mcp__gitlab__get_draft_note",
"mcp__gitlab__list_draft_notes",
"mcp__gitlab__list_merge_request_emoji_reactions",
"mcp__gitlab__list_merge_request_note_emoji_reactions",
"mcp__gitlab__list_issue_emoji_reactions",
"mcp__gitlab__list_issue_note_emoji_reactions",
"mcp__gitlab__list_issues",
"mcp__gitlab__my_issues",
"mcp__gitlab__get_issue",
"mcp__gitlab__list_todos",
"mcp__gitlab__list_issue_links",
"mcp__gitlab__list_issue_discussions",
"mcp__gitlab__list_issue_label_events",
"mcp__gitlab__list_issue_state_events",
"mcp__gitlab__get_issue_link",
"mcp__gitlab__list_namespaces",
"mcp__gitlab__get_namespace",
"mcp__gitlab__verify_namespace",
"mcp__gitlab__get_project",
"mcp__gitlab__list_projects",
"mcp__gitlab__list_project_members",
"mcp__gitlab__list_group_members",
"mcp__gitlab__list_labels",
"mcp__gitlab__get_label",
"mcp__gitlab__list_group_projects",
"mcp__gitlab__list_wiki_pages",
"mcp__gitlab__get_wiki_page",
"mcp__gitlab__list_group_wiki_pages",
"mcp__gitlab__get_group_wiki_page",
"mcp__gitlab__get_repository_tree",
"mcp__gitlab__list_pipelines",
"mcp__gitlab__get_pipeline",
"mcp__gitlab__get_pipeline_test_report",
"mcp__gitlab__get_pipeline_test_report_summary",
"mcp__gitlab__list_deployments",
"mcp__gitlab__get_deployment",
"mcp__gitlab__list_deployment_merge_requests",
"mcp__gitlab__list_environments",
"mcp__gitlab__get_environment",
"mcp__gitlab__list_pipeline_triggers",
"mcp__gitlab__get_pipeline_trigger",
"mcp__gitlab__list_pipeline_jobs",
"mcp__gitlab__list_pipeline_trigger_jobs",
"mcp__gitlab__get_pipeline_job",
"mcp__gitlab__validate_ci_lint",
"mcp__gitlab__validate_project_ci_lint",
"mcp__gitlab__list_ci_catalog_resources",
"mcp__gitlab__get_ci_catalog_resource",
"mcp__gitlab__list_pipeline_schedules",
"mcp__gitlab__list_pipeline_schedule_pipelines",
"mcp__gitlab__wait_for_pipeline",
"mcp__gitlab__wait_for_job",
"mcp__gitlab__list_job_artifacts",
"mcp__gitlab__get_job_artifact_file",
"mcp__gitlab__list_merge_requests",
"mcp__gitlab__list_group_merge_requests",
"mcp__gitlab__list_milestones",
"mcp__gitlab__get_milestone",
"mcp__gitlab__get_milestone_issue",
"mcp__gitlab__get_milestone_merge_requests",
"mcp__gitlab__get_milestone_burndown_events",
"mcp__gitlab__list_group_milestones",
"mcp__gitlab__get_group_milestone",
"mcp__gitlab__get_group_milestone_issue",
"mcp__gitlab__get_group_milestone_merge_requests",
"mcp__gitlab__get_group_milestone_burndown_events",
"mcp__gitlab__get_users",
"mcp__gitlab__get_user",
"mcp__gitlab__whoami",
"mcp__gitlab__list_commits",
"mcp__gitlab__get_commit",
"mcp__gitlab__get_commit_diff",
"mcp__gitlab__get_file_blame",
"mcp__gitlab__list_commit_statuses",
"mcp__gitlab__list_group_iterations",
"mcp__gitlab__get_group_iteration",
"mcp__gitlab__list_project_iterations",
"mcp__gitlab__list_group_iteration_cadences",
"mcp__gitlab__health_check",
"mcp__gitlab__list_events",
"mcp__gitlab__get_project_events",
"mcp__gitlab__list_releases",
"mcp__gitlab__get_release",
"mcp__gitlab__download_release_asset",
"mcp__gitlab__list_tags",
"mcp__gitlab__get_tag",
"mcp__gitlab__get_tag_signature",
"mcp__gitlab__list_protected_tags",
"mcp__gitlab__get_protected_tag",
"mcp__gitlab__list_snippets",
"mcp__gitlab__get_snippet",
"mcp__gitlab__get_work_item",
"mcp__gitlab__list_work_items",
"mcp__gitlab__list_work_item_statuses",
"mcp__gitlab__list_custom_field_definitions",
"mcp__gitlab__list_work_item_notes",
"mcp__gitlab__list_work_item_emoji_reactions",
"mcp__gitlab__list_work_item_note_emoji_reactions",
"mcp__gitlab__get_timeline_events",
"mcp__gitlab__list_webhook_events",
"mcp__gitlab__get_webhook_event",
"mcp__gitlab__search_code",
"mcp__gitlab__search_project_code",
"mcp__gitlab__search_group_code",
"mcp__gitlab__get_dependency_proxy_settings",
"mcp__gitlab__list_dependency_proxy_blobs",
"mcp__gitlab__list_project_vulnerabilities",
"mcp__gitlab__get_vulnerability",
"mcp__gitlab__orbit_get_schema",
"mcp__gitlab__orbit_get_status",
"mcp__gitlab__orbit_list_tools",
"mcp__gitlab__list_project_runners",
"mcp__gitlab__get_runner",
"mcp__gitlab__discover_tools",
"mcp__gitlab__help"
]
}
}The command that adds the server:
claude mcp add gitlab -e GITLAB_PERSONAL_ACCESS_TOKEN=$GITLAB_TOKEN -e GITLAB_API_URL=https://gitlab.com/api/v4 -e GITLAB_PERMISSION_MODE=readonly -e GITLAB_ALLOWED_PROJECT_IDS=12345 -e ENABLE_STRICT_PROJECT_SCOPE=true -e GITLAB_DENIED_TOOLS_REGEX="variable|webhook|^get_pipeline_schedule$" -- npx -y @zereight/mcp-gitlab@2.3.31Send the rest to a person, not the terminal
A prompt in the terminal only works while someone is watching it. With this hook, every other tool of the server becomes a request in your VariantGate inbox, on your phone or in Slack, and Claude Code waits for the answer. The matcher names the look-only tools, so a tool added later is sent too. Put the key in VARIANTGATE_KEY, or run the one-command setup for Claude Code first.
{
"hooks": {
"PreToolUse": [
{
"matcher": "mcp__gitlab__(?!(get_merge_request_approval_state|get_merge_request_conflicts|list_merge_request_pipelines|search_repositories|get_file_contents|get_branch|list_branches|list_protected_branches|get_protected_branch|get_merge_request|get_merge_request_diffs|list_merge_request_changed_files|list_merge_request_diffs|get_merge_request_file_diff|list_merge_request_versions|get_merge_request_version|get_branch_diffs|mr_discussions|get_merge_request_discussion|get_merge_request_note|get_merge_request_notes|get_draft_note|list_draft_notes|list_merge_request_emoji_reactions|list_merge_request_note_emoji_reactions|list_issue_emoji_reactions|list_issue_note_emoji_reactions|list_issues|my_issues|get_issue|list_todos|list_issue_links|list_issue_discussions|list_issue_label_events|list_issue_state_events|get_issue_link|list_namespaces|get_namespace|verify_namespace|get_project|list_projects|list_project_members|list_group_members|list_labels|get_label|list_group_projects|list_wiki_pages|get_wiki_page|list_group_wiki_pages|get_group_wiki_page|get_repository_tree|list_pipelines|get_pipeline|get_pipeline_test_report|get_pipeline_test_report_summary|list_deployments|get_deployment|list_deployment_merge_requests|list_environments|get_environment|list_pipeline_triggers|get_pipeline_trigger|list_pipeline_jobs|list_pipeline_trigger_jobs|get_pipeline_job|validate_ci_lint|validate_project_ci_lint|list_ci_catalog_resources|get_ci_catalog_resource|list_pipeline_schedules|list_pipeline_schedule_pipelines|wait_for_pipeline|wait_for_job|list_job_artifacts|get_job_artifact_file|list_merge_requests|list_group_merge_requests|list_milestones|get_milestone|get_milestone_issue|get_milestone_merge_requests|get_milestone_burndown_events|list_group_milestones|get_group_milestone|get_group_milestone_issue|get_group_milestone_merge_requests|get_group_milestone_burndown_events|get_users|get_user|whoami|list_commits|get_commit|get_commit_diff|get_file_blame|list_commit_statuses|list_group_iterations|get_group_iteration|list_project_iterations|list_group_iteration_cadences|health_check|list_events|get_project_events|list_releases|get_release|download_release_asset|list_tags|get_tag|get_tag_signature|list_protected_tags|get_protected_tag|list_snippets|get_snippet|get_work_item|list_work_items|list_work_item_statuses|list_custom_field_definitions|list_work_item_notes|list_work_item_emoji_reactions|list_work_item_note_emoji_reactions|get_timeline_events|list_webhook_events|get_webhook_event|search_code|search_project_code|search_group_code|get_dependency_proxy_settings|list_dependency_proxy_blobs|list_project_vulnerabilities|get_vulnerability|orbit_get_schema|orbit_get_status|orbit_list_tools|list_project_runners|get_runner|discover_tools|help)$).*",
"hooks": [
{ "type": "command", "command": "variantgate hook claude-code", "timeout": 180 }
]
}
]
}
}Disagree with a tier, or run the server with other flags? Open these tools in the tool risk checker, change what you like, and copy the settings for your own setup. It runs in your browser and starts from its own reading, so a tool we marked as only looking by hand asks there until you change it.
Any MCP client: put the proxy in front
Claude Desktop, Cursor and most other MCP clients have no hook to send a call to a person. The VariantGate MCP proxy does it in the server’s place: it starts the server, lets the look-only tools above through, and holds every other call until someone approves it in the inbox. Run npx -y https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz login once to save a key, then use this in claude_desktop_config.json or ~/.cursor/mcp.json:
{
"mcpServers": {
"gitlab": {
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz",
"mcp-proxy",
"--name",
"gitlab",
"--look-only",
"get_merge_request_approval_state,get_merge_request_conflicts,list_merge_request_pipelines,search_repositories,get_file_contents,get_branch,list_branches,list_protected_branches,get_protected_branch,get_merge_request,get_merge_request_diffs,list_merge_request_changed_files,list_merge_request_diffs,get_merge_request_file_diff,list_merge_request_versions,get_merge_request_version,get_branch_diffs,mr_discussions,get_merge_request_discussion,get_merge_request_note,get_merge_request_notes,get_draft_note,list_draft_notes,list_merge_request_emoji_reactions,list_merge_request_note_emoji_reactions,list_issue_emoji_reactions,list_issue_note_emoji_reactions,list_issues,my_issues,get_issue,list_todos,list_issue_links,list_issue_discussions,list_issue_label_events,list_issue_state_events,get_issue_link,list_namespaces,get_namespace,verify_namespace,get_project,list_projects,list_project_members,list_group_members,list_labels,get_label,list_group_projects,list_wiki_pages,get_wiki_page,list_group_wiki_pages,get_group_wiki_page,get_repository_tree,list_pipelines,get_pipeline,get_pipeline_test_report,get_pipeline_test_report_summary,list_deployments,get_deployment,list_deployment_merge_requests,list_environments,get_environment,list_pipeline_triggers,get_pipeline_trigger,list_pipeline_jobs,list_pipeline_trigger_jobs,get_pipeline_job,validate_ci_lint,validate_project_ci_lint,list_ci_catalog_resources,get_ci_catalog_resource,list_pipeline_schedules,list_pipeline_schedule_pipelines,wait_for_pipeline,wait_for_job,list_job_artifacts,get_job_artifact_file,list_merge_requests,list_group_merge_requests,list_milestones,get_milestone,get_milestone_issue,get_milestone_merge_requests,get_milestone_burndown_events,list_group_milestones,get_group_milestone,get_group_milestone_issue,get_group_milestone_merge_requests,get_group_milestone_burndown_events,get_users,get_user,whoami,list_commits,get_commit,get_commit_diff,get_file_blame,list_commit_statuses,list_group_iterations,get_group_iteration,list_project_iterations,list_group_iteration_cadences,health_check,list_events,get_project_events,list_releases,get_release,download_release_asset,list_tags,get_tag,get_tag_signature,list_protected_tags,get_protected_tag,list_snippets,get_snippet,get_work_item,list_work_items,list_work_item_statuses,list_custom_field_definitions,list_work_item_notes,list_work_item_emoji_reactions,list_work_item_note_emoji_reactions,get_timeline_events,list_webhook_events,get_webhook_event,search_code,search_project_code,search_group_code,get_dependency_proxy_settings,list_dependency_proxy_blobs,list_project_vulnerabilities,get_vulnerability,orbit_get_schema,orbit_get_status,orbit_list_tools,list_project_runners,get_runner,discover_tools,help",
"--",
"npx",
"-y",
"@zereight/mcp-gitlab@2.3.31"
],
"command": "npx",
"env": {
"GITLAB_PERSONAL_ACCESS_TOKEN": "<GITLAB_TOKEN>",
"GITLAB_API_URL": "https://gitlab.com/api/v4",
"GITLAB_PERMISSION_MODE": "readonly",
"GITLAB_ALLOWED_PROJECT_IDS": "12345",
"ENABLE_STRICT_PROJECT_SCOPE": "true",
"GITLAB_DENIED_TOOLS_REGEX": "variable|webhook|^get_pipeline_schedule$"
}
}
}
}Already have it in Claude Desktop? One command rewrites the file for you, with these look-only tools filled in, and keeps the old one (setup vscode does the same for VS Code; how it works):
npx -y https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz setup claude-desktopThe same in Claude Code, instead of the hook. The proxy now asks about every call that matters, so an allow rule for the whole server, mcp__gitlab, keeps Claude Code from asking a second time in the terminal:
claude mcp add gitlab -e GITLAB_PERSONAL_ACCESS_TOKEN=$GITLAB_TOKEN -e GITLAB_API_URL=https://gitlab.com/api/v4 -e GITLAB_PERMISSION_MODE=readonly -e GITLAB_ALLOWED_PROJECT_IDS=12345 -e ENABLE_STRICT_PROJECT_SCOPE=true -e GITLAB_DENIED_TOOLS_REGEX="variable|webhook|^get_pipeline_schedule$" -- npx -y https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz mcp-proxy --name gitlab --look-only get_merge_request_approval_state,get_merge_request_conflicts,list_merge_request_pipelines,search_repositories,get_file_contents,get_branch,list_branches,list_protected_branches,get_protected_branch,get_merge_request,get_merge_request_diffs,list_merge_request_changed_files,list_merge_request_diffs,get_merge_request_file_diff,list_merge_request_versions,get_merge_request_version,get_branch_diffs,mr_discussions,get_merge_request_discussion,get_merge_request_note,get_merge_request_notes,get_draft_note,list_draft_notes,list_merge_request_emoji_reactions,list_merge_request_note_emoji_reactions,list_issue_emoji_reactions,list_issue_note_emoji_reactions,list_issues,my_issues,get_issue,list_todos,list_issue_links,list_issue_discussions,list_issue_label_events,list_issue_state_events,get_issue_link,list_namespaces,get_namespace,verify_namespace,get_project,list_projects,list_project_members,list_group_members,list_labels,get_label,list_group_projects,list_wiki_pages,get_wiki_page,list_group_wiki_pages,get_group_wiki_page,get_repository_tree,list_pipelines,get_pipeline,get_pipeline_test_report,get_pipeline_test_report_summary,list_deployments,get_deployment,list_deployment_merge_requests,list_environments,get_environment,list_pipeline_triggers,get_pipeline_trigger,list_pipeline_jobs,list_pipeline_trigger_jobs,get_pipeline_job,validate_ci_lint,validate_project_ci_lint,list_ci_catalog_resources,get_ci_catalog_resource,list_pipeline_schedules,list_pipeline_schedule_pipelines,wait_for_pipeline,wait_for_job,list_job_artifacts,get_job_artifact_file,list_merge_requests,list_group_merge_requests,list_milestones,get_milestone,get_milestone_issue,get_milestone_merge_requests,get_milestone_burndown_events,list_group_milestones,get_group_milestone,get_group_milestone_issue,get_group_milestone_merge_requests,get_group_milestone_burndown_events,get_users,get_user,whoami,list_commits,get_commit,get_commit_diff,get_file_blame,list_commit_statuses,list_group_iterations,get_group_iteration,list_project_iterations,list_group_iteration_cadences,health_check,list_events,get_project_events,list_releases,get_release,download_release_asset,list_tags,get_tag,get_tag_signature,list_protected_tags,get_protected_tag,list_snippets,get_snippet,get_work_item,list_work_items,list_work_item_statuses,list_custom_field_definitions,list_work_item_notes,list_work_item_emoji_reactions,list_work_item_note_emoji_reactions,get_timeline_events,list_webhook_events,get_webhook_event,search_code,search_project_code,search_group_code,get_dependency_proxy_settings,list_dependency_proxy_blobs,list_project_vulnerabilities,get_vulnerability,orbit_get_schema,orbit_get_status,orbit_list_tools,list_project_runners,get_runner,discover_tools,help -- npx -y @zereight/mcp-gitlab@2.3.31When the agent should write
Add the server a second time under its own name, such as gitlab-write, with GITLAB_PERMISSION_MODE=modify and a project access token with api and the Developer role, so the rules for mcp__gitlab__ do not cover it and every tool asks. Protect the default branch so that only Maintainers may push and merge there: the agent can then open merge requests but not land them, and not run a pipeline on a protected branch. Do not add api to its toolsets; gitlab_api_request skips the allowlist checks on anything but the path.
See it before you decide.
The playground runs the whole approval loop in your browser, no account needed. When it fits, the free plan covers 100 requests a month.