Add MCP Server Configuration to Duo Settings

User problem to solve

Admins do not have in application control whether external AI tools (Claude Desktop, Cursor, etc.) access their GitLab instance via MCP.

Current state:

  • MCP server controlled by feature flag only
  • No admin UI control
  • Security risk if enabled without knowledge

Proposal

  • Not enabled by default
    • Admins must check the box and save changes
  • In the GitLab Duo Configuration page (/settings/gitlab_duo/configuration) add the following section to the bottom of the page
On Off Disabled (Duo Set to Off)
Configuration.png Configuration-1.png Configuration-2.png

Content:

Title: 

Model Context Protocol (MCP) server

Checkbox:

Turn on GitLab MCP server

Help text:

Allow external MCP clients to securely connect to your GitLab repositories and access
GitLab tools like issues, merge requests, and CI/CD pipelines through OAuth authentication.
All operations respect your existing GitLab permissions.
[What tools are available](https://docs.gitlab.com/user/gitlab_duo/model_context_protocol/mcp_server/#available-tools)?

Warning:

By turning on this setting, external tools can access
GitLab data through authenticated MCP connections.
Edited by 🤖 GitLab Bot 🤖