feat(mcp): Enable MCP dashboard webview
Description
This code change adds a new "MCP Dashboard" feature to a GitLab extension. The developers created a new menu command that users can click to open this dashboard, and they set it up to display in a separate tab within the code editor. They also made some improvements to how the system handles different types of dashboard names, making the code more flexible for future additions. The MCP Dashboard joins other existing features like security vulnerability details and knowledge graphs that can be displayed in the editor.
Related Issues
Resolves [MCP][Dash] Integrate MCP Dashboard via Command... (#2155 - closed)
How has this been tested?
- You'll need to build out to VSCode from the associated LS branch,
db/mcp-dash-theming, build with `npm run watch -- --editor=vscode --packages all - Then checkout this branch:
db/integrate-mcp-dash - Build VSCode locally using:
-
npm run wetch:desktopand then triggering the extension to build in the UI with theRun Extension (without build)command. Or, - just run the build command from the UI
Run Extension
-
- Using the command palette, execute the
GitLab: Show MCP Dashboardcommand. At this point with the way workspace URLs are executed, you need to send a message in agentic chat before the dashboard is activated. There is an issue open for this here: ISSUE_LINK
-
If src/browserorsrc/commonhas been modified, please consider interoperability with the Web IDE. See Running the Extension in WebIDE. -
Consider an end-to-end test for significant new features that aren't covered by integration tests.
Screenshots (if appropriate)
What CHANGELOG entry will this MR create?
-
fix:Bug fix fixes - a user-facing issue in production - included in changelog -
feature:New feature - a user-facing change which adds functionality - included in changelog -
BREAKING CHANGE:(fix or feature that would cause existing functionality to change) - should bump major version, mentioned in the changelog -
None - other non-user-facing changes
Edited by Dylan Bernardi