[VS Code] Add command to open MCP user settings (JSON) in VS Code

Problem to solve

As a VS Code GitLab extension user, I want an easy way to open and edit my MCP (Model Configuration Provider) user settings file (~/.gitlab/duo/mcp.json), so I can manage my local MCP configuration without manually creating directories or searching for the file location.

Proposal

  • Add a new user command: GitLab MCP: Open User Settings (JSON).
  • This command should:
    • Resolve the user’s home directory cross-platform.
    • Ensure the .gitlab/duo directory exists under the user’s home folder.
    • Create the mcp.json file with default content if it does not exist.
      {
        "mcpServers": {}
      }
    • Open the file in VS Code for editing.

Further details

Links / references