ŁUKASZ KORBASIEWICZ activity https://gitlab.com/lkorbasiewicz 2026-03-19T16:27:54Z tag:gitlab.com,2026-03-19:5223050264 ŁUKASZ KORBASIEWICZ opened merge request !228126: Add rake task to verify MCP server setup at GitLab.org / GitLab 2026-03-19T16:27:54Z lkorbasiewicz ŁUKASZ KORBASIEWICZ

What does this MR do and why?

Add rake task to verify MCP server setup

The check_oauth_discovery method was using Rails.application.routes.recognize_path to detect the MCP endpoint, which always fails because MCP is a Grape API endpoint mounted as a Rack application, not a Rails route. Replace with a check for the API::Mcp::Base Grape class and its registered routes.

Also add the rake task entry in duo.rake and spec coverage.

Changelog: added EE: true

References

Screenshots or screen recordings

~/dev/gdk/gitlab (lkorbasiewicz-mcpcheck-rake) $ bin/rake 'gitlab:duo:verify_mcp_server_setup'

═══════════════════════════════════════════════════════════════
GitLab MCP Server Setup Verification
═══════════════════════════════════════════════════════════════
This task verifies that the MCP server endpoint (/api/v4/mcp)
is correctly configured and accessible on this instance.

Collecting system information...
  GitLab 18.11.0-pre (EE) — http://gdk.test:3000

✔ License: Ultimate — :mcp_server feature is available.

✔ Duo availability: 'On by default' (duo_features_enabled=true, lock=false)

✔ duo_features_enabled: true

✗ instance_level_ai_beta_features_enabled: false
  The MCP server requires experiment and beta features to be enabled. Enable via: Admin > GitLab Duo > Turn on experiment and beta features.

✔ MCP Grape API endpoint is loaded (API::Mcp::Base).
  Endpoint: http://gdk.test:3000/api/v4/mcp
  OAuth discovery: http://gdk.test:3000/.well-known/oauth-authorization-server/api/v4/mcp
  Dynamic registration: http://gdk.test:3000/oauth/register

ℹ No instance-level access rules configured (Ai::FeatureAccessRule).
  All users with appropriate license will have access to Duo features.

ℹ No username provided. Skipping user-specific checks.
  Re-run with: rake gitlab:duo:verify_mcp_server_setup[username]

═══════════════════════════════════════════════════════════════
✗ 1 check(s) failed. MCP server may not work.
═══════════════════════════════════════════════════════════════


═══════════════════════════════════════════════════════════════
DIAGNOSTIC SUMMARY (sanitize before sharing with support)
═══════════════════════════════════════════════════════════════
{
  "system": {
    "gitlab_version": "18.11.0-pre",
    "gitlab_revision": "af6737553b2",
    "gitlab_edition": "EE",
    "rails_env": "development",
    "timestamp": "2026-03-19T15:53:40Z",
    "instance_url": "http://gdk.test:3000",
    "user": null
  },
  "license": {
    "status": "PASS",
    "message": "License: Ultimate — :mcp_server feature is available."
  },
  "duo_availability": {
    "status": "PASS",
    "message": "Duo availability: 'On by default' (duo_features_enabled=true, lock=false)"
  },
  "duo_features_enabled": {
    "status": "PASS",
    "message": "duo_features_enabled: true"
  },
  "instance_level_ai_beta_features_enabled": {
    "status": "FAIL",
    "message": "instance_level_ai_beta_features_enabled: false",
    "detail": "The MCP server requires experiment and beta features to be enabled. Enable via: Admin > GitLab Duo > Turn on experiment and beta features."
  },
  "oauth_discovery": {
    "status": "PASS",
    "message": "MCP Grape API endpoint is loaded (API::Mcp::Base).",
    "detail": "Endpoint: http://gdk.test:3000/api/v4/mcp\n  OAuth discovery: http://gdk.test:3000/.well-known/oauth-authorization-server/api/v4/mcp\n  Dynamic registration: http://gdk.test:3000/oauth/register"
  },
  "instance_access_rules": {
    "status": "INFO",
    "message": "No instance-level access rules configured (Ai::FeatureAccessRule).",
    "detail": "All users with appropriate license will have access to Duo features."
  }
}

NOTE: Review the above output and remove any sensitive information
before sharing with GitLab support.
~/dev/gdk/gitlab (lkorbasiewicz-mcpcheck-rake) $

How to set up and validate locally

gdk switch lkorbasiewicz-mcpcheck-rake
bin/rake 'gitlab:duo:verify_mcp_server_setup'
bin/rake 'gitlab:duo:verify_mcp_server_setup[root]'

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

tag:gitlab.com,2026-03-19:5223034246 ŁUKASZ KORBASIEWICZ pushed new project branch lkorbasiewicz-mcpcheck-rake at GitLab.org / GitLab 2026-03-19T16:24:10Z lkorbasiewicz ŁUKASZ KORBASIEWICZ

ŁUKASZ KORBASIEWICZ (5109a2e5) at 19 Mar 16:24

Add rake task to verify MCP server setup

tag:gitlab.com,2026-03-19:5221760440 ŁUKASZ KORBASIEWICZ pushed to project branch lkorbasiewicz-update-dap-training at GitLab.com / GitLab Support Team / Support Training 2026-03-19T11:47:21Z lkorbasiewicz ŁUKASZ KORBASIEWICZ

ŁUKASZ KORBASIEWICZ (b3c6775a) at 19 Mar 11:47

Edit GitLab Duo Agent Platform.md

tag:gitlab.com,2026-03-19:5221756206 ŁUKASZ KORBASIEWICZ pushed to project branch lkorbasiewicz-update-dap-training at GitLab.com / GitLab Support Team / Support Training 2026-03-19T11:46:23Z lkorbasiewicz ŁUKASZ KORBASIEWICZ

ŁUKASZ KORBASIEWICZ (ee92b941) at 19 Mar 11:46

Apply 1 suggestion(s) to 1 file(s)

tag:gitlab.com,2026-03-19:5221676169 ŁUKASZ KORBASIEWICZ commented on issue #583989 at GitLab.org / GitLab 2026-03-19T11:26:17Z lkorbasiewicz ŁUKASZ KORBASIEWICZ

@jpcyiza is there a better place for this request? We have a Customer that would like to be able to select a default namespace even if instance level is "Off by default"

tag:gitlab.com,2026-03-18:5216753393 ŁUKASZ KORBASIEWICZ approved merge request !18953: Update file usage_billing.md at GitLab.com / Content Sites / handbook 2026-03-18T10:23:08Z lkorbasiewicz ŁUKASZ KORBASIEWICZ

Why is this change being made?

Adding a missing link

Author and Reviewer Checklist

Please verify the check list and ensure to tick them off before the MR is merged.

  • Provided a concise title for this Merge Request (MR)
  • Added a description to this MR explaining the reasons for the proposed change, per say why, not just what
    • Copy/paste the Slack conversation to document it for later, or upload screenshots. Verify that no confidential data is added, and the content is SAFE
  • Assign reviewers for this MR to the correct
    • The when to get approval handbook section explains when DRI approval is required
    • The who can approve handbook section explains how to identify the DRI
    • If the MR does not require DRI approval, consider asking someone on your team, such as your manager.
    • The approver may merge the MR. If they approve but don't merge, you can merge.
  • For transparency, share this MR with the audience that will be impacted.
    • Team: For changes that affect your direct team, share in your group Slack channel
    • Department: If the update affects your department, share the MR in your department Slack channel
    • Division: If the update affects your division, share the MR in your division Slack channel
    • Company: If the update affects all (or the majority of) GitLab team members, post an update in #whats-happening-at-gitlab linking to this MR

Commits

  • Update file usage_billing.md

tag:gitlab.com,2026-03-18:5216753304 ŁUKASZ KORBASIEWICZ commented on merge request !18953 at GitLab.com / Content Sites / handbook 2026-03-18T10:23:07Z lkorbasiewicz ŁUKASZ KORBASIEWICZ

LGTM!

tag:gitlab.com,2026-03-17:5212207654 ŁUKASZ KORBASIEWICZ commented on issue #588861 at GitLab.org / GitLab 2026-03-17T10:54:50Z lkorbasiewicz ŁUKASZ KORBASIEWICZ

Thanks! cc @juan-silva

tag:gitlab.com,2026-03-17:5211560029 ŁUKASZ KORBASIEWICZ commented on issue #583989 at GitLab.org / GitLab 2026-03-17T08:38:17Z lkorbasiewicz ŁUKASZ KORBASIEWICZ

We have a Customer interested in the ability to select a default namespace in Self-Managed (internal ZD ticket)

tag:gitlab.com,2026-03-16:5207808837 ŁUKASZ KORBASIEWICZ commented on issue #588861 at GitLab.org / GitLab 2026-03-16T11:32:20Z lkorbasiewicz ŁUKASZ KORBASIEWICZ

We have another Customer reporting this as a DAP adoption blocker - @ohoral @ealcantara shall we add severity2 ?

tag:gitlab.com,2026-03-11:5192945918 ŁUKASZ KORBASIEWICZ commented on merge request !1715 at GitLab.com / GitLab Support Team / Support Training 2026-03-11T14:55:28Z lkorbasiewicz ŁUKASZ KORBASIEWICZ

Thanks again @faleksic I cleaned it up a little and added all (I hope) missing links

tag:gitlab.com,2026-03-11:5192941825 ŁUKASZ KORBASIEWICZ pushed to project branch lkorbasiewicz-update-dap-training at GitLab.com / GitLab Support Team / Support Training 2026-03-11T14:54:43Z lkorbasiewicz ŁUKASZ KORBASIEWICZ

ŁUKASZ KORBASIEWICZ (aeeb7fa0) at 11 Mar 14:54

Add missing links