vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Agent Customizations shows default MCP Marketplace servers when chat.mcp.gallery.enabled is false

Open t-anderson opened this issue 1 month ago • 2 comments

Type: Bug

When "chat.mcp.gallery.enabled": false is configured, the default MCP Marketplace servers are correctly hidden from the MCP Servers view in the Extensions panel.

However, when opening Chat: Open Customizations > MCP Servers, servers from the default MCP Marketplace are still displayed under Available.

I am using a GitHub Enterprise-managed private MCP registry. I expect the Agent Customizations MCP Servers view to honor chat.mcp.gallery.enabled=false in the same way as the Extensions MCP Servers view, so that servers from the default MCP Marketplace are not presented.

Steps to Reproduce

  1. Configure VS Code User Settings:

{ "chat.mcp.gallery.enabled": false }

  1. Reload VS Code and sign in to GitHub Copilot chat.
  2. Open the Extensions view and view MCP Servers.
  3. Confirm that servers from the default MCP Marketplace are not shown.
  4. Run Chat: Open Customizations.
  5. Select MCP Servers.
  6. Expand Available.

Actual Behavior

The Agent Customizations MCP Servers view continues to display servers from the default MCP Marketplace.

The Extensions MCP Servers view honors chat.mcp.gallery.enabled=false and does not display those servers.

Expected Behavior

When chat.mcp.gallery.enabled=false, servers from the default MCP Marketplace should not be displayed in Chat: Open Customizations > MCP Servers, consistent with the behavior of the Extensions MCP Servers view.

Enterprise scenario

A GitHub Enterprise MCP Registry is configured, and MCP access is restricted to Registry only and the mcp gallery settings is false in VSCode.

The desired behavior is for developers to see the servers provided by the enterprise registry without also being presented with servers from the disabled default MCP Marketplace.

VS Code version: Code 1.141.0 (2a59476c9bfcb90b3ddc372c36762471b7dfad1c, 2026-10-06T10:15:52+02:00) OS version: Windows_NT x64 10.0.26200 Modes:

t-anderson avatar Oct 09 '26 16:10 t-anderson

same issue in our company setup, still reproducible with

Version: 1.143.1 (user setup) Commit: e646868227c3e3a9e3f24277c8c7220be42c0be7 Date: 2026-10-22T17:23:22Z Electron: 43.7.7 ElectronBuildId: 15743441 Chromium: 150.0.7871.250 Node.js: 24.21.0 V8: 15.0.245.31-electron.0 @github/copilot: 1.0.100-1 @github/copilot-sdk: 1.0.23-preview.5 OS: Windows_NT x64 10.0.26200

till-llit avatar Oct 28 '26 13:10 till-llit

Sharing media and context from merged PR #347747 for verification:

This change makes chat.mcp.gallery.enabled consistently control the product-provided GitHub MCP Registry across the Extensions MCP Servers view and Chat Customizations. It keeps separately configured custom or enterprise registries available, refreshes both surfaces when relevant settings change, and prevents stale asynchronous manifest updates from restoring an older registry state.

Behavior

User setting Effective state Extensions before Extensions after Customizations before Customizations after
false Product registry disabled Product registry entries could remain visible Product registry entries are hidden MCP Gallery results and source could remain visible Product results are hidden and the MCP Gallery source is omitted
true Product registry enabled Product registry entries are shown Product registry entries are shown MCP Gallery results and source are shown MCP Gallery results and source are shown
Not set on Stable false from the registered default Product registry entries could remain visible Product registry entries are hidden MCP Gallery results and source could remain visible Product results are hidden and the MCP Gallery source is omitted
Not set on Insiders undefined because the setting is not registered Product registry entries are shown Product registry entries are shown MCP Gallery results and source are shown MCP Gallery results and source are shown

A configured registry URL that differs from the product registry remains available in every state.

Validation

  • pnpm run compile — passed
  • pnpm run typecheck-client — passed
  • git diff --check — passed
  • .\scripts\test.bat --reporter dot --run src\vs\workbench\services\mcp\test\browser\mcpGalleryManifestService.test.ts --run src\vs\platform\customizationMarketplace\test\common\mcpGalleryMarketplaceProvider.test.ts --run src\vs\platform\customizationMarketplace\test\electron-browser\customizationMarketplaceService.test.ts --run src\vs\workbench\contrib\chat\test\browser\aiCustomization\mcpListWidget.test.ts — passed, 165 tests
  • Targeted ESLint over all 13 changed TypeScript files — passed
  • Manually verified in an isolated Code OSS launch that disabling the product registry removes its Extensions entries and the Customizations source while leaving the workbench healthy

Screenshot Changes

Base: f42f0a11 Current: 6484d4e5

Changed (7)

chat/aiCustomizations/aiCustomizationManagementEditor/LegacyMcpAvailableWithoutMarketplace/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpServersAllStates/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpServersSearch/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/OrgMcpAllowlist/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/OrgMcpOrganizationOnly/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpServersTabScrolled/Light
Before After
before after

Screenshot report: https://github.com/microsoft/vscode/pull/347747#issuecomment-6808502362

Source PR: https://github.com/microsoft/vscode/pull/347747