What your agent can do in GitLab
GitLab maintains the list of actions, and it can change at any time. See GitLabβs MCP server documentation for the current list. The tools listed in Spaces > Tools > GitLab Cloud (or GitLab Self-Managed) are the ones your agents can use.Before you start
- In Dust: you need to be an admin to connect GitLab.
- In GitLab: a GitLab administrator must first allow access to the MCP server, for your top-level group on GitLab.com, or for the instance on GitLab Self-Managed and GitLab Dedicated. Self-Managed and Dedicated instances must run GitLab 18.6 or later, 19.5 or later recommended, and be reachable over HTTPS. Dynamic client registration must stay turned on for the instance, or the connection fails.
Connect GitLab
Only workspace admins can connect GitLab.
1
Open the tools of your workspace
Go to Spaces > Tools and click Add tools.
2
Pick GitLab
For GitLab.com, select GitLab Cloud, then click Next. For GitLab Self-Managed and GitLab Dedicated, select GitLab Self-Managed, enter your instanceβs MCP server URL in URL, like
https://gitlab.example.com/api/v4/mcp, then click Next.3
Sign in
Keep Personal accounts, selected by default, or pick Shared account. Click Setup connection, then sign in with your GitLab account.
Add GitLab to an agent
1
Open your agent in the Agent Builder
Create an agent, or open one you can edit.
2
Add the tool
In Capabilities and knowledge, click Add capabilities and select GitLab Cloud or GitLab Self-Managed.
3
Say what to work on
In the instructions, name the projects or groups the agent should use, and when it may open merge requests, commit, or run pipelines.
- High: needs explicit user approval.
- Low: users can completely disable confirmations.
- Never ask: runs automatically.
Related
Preconfigured MCP servers
All the third-party MCP servers you can connect.
Personal vs Shared Credentials
How each connection type works for tools.
Adding an MCP server
Add tools to your workspace and choose who can use them.