Skip to content

Tag extensions that contribute mcpServerDefinitionProviders as MCP - #1361

Merged
Federico Brancasi (federicobrancasi) merged 1 commit into
mainfrom
fbrancasi/mcp-server-definition-tags
Nov 29, 2026
Merged

Federico Brancasi (federicobrancasi) merged 1 commit into
mainfrom
fbrancasi/mcp-server-definition-tags

Conversation

@federicobrancasi

Copy link
Copy Markdown
Member

An extension that contributes MCP servers with the finalized contribution point, for example "contributes": { "mcpServerDefinitionProviders": [{ "id": "my-server", "label": "My Server" }] }, is packaged without the mcp and language-model-tools tags. The VSIX manifest only has <Tags>__web_extension</Tags>, so the extension does not show up in Marketplace searches by these tags, such as the @tag:language-model-tools search that VS Code opens from the chat tool picker. The TagsProcessor still checks contributes.modelContextServerCollections, which was the proposed name of this contribution point; VS Code finalized it as mcpServerDefinitionProviders and no longer reads the old name.

This PR checks mcpServerDefinitionProviders instead, the same way 70f3535 moved the language-models tag to languageModelChatProviders.

How to test

Command Result
npx mocha --grep "should automatically add mcp tag" 1 passing; the updated test "should automatically add mcp tag" fails without the change
npm test 405 passing, 5 pending; 4 collect tests fail before and after the change only because yarn is not installed on this machine
npx tsc --noEmit --typeRoots ./node_modules/@types passes

An extension that contributes MCP servers with the finalized contribution point, for example `"contributes": { "mcpServerDefinitionProviders": [{ "id": "my-server", "label": "My Server" }] }`, is packaged without the `mcp` and `language-model-tools` tags. The VSIX manifest only has `<Tags>__web_extension</Tags>`, so the extension does not show up in Marketplace searches by these tags, such as the `@tag:language-model-tools` search that VS Code opens from the chat tool picker. The `TagsProcessor` still checks `contributes.modelContextServerCollections`, which was the proposed name of this contribution point; VS Code finalized it as `mcpServerDefinitionProviders` and no longer reads the old name.

Co-authored-by: Copilot <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the update to Marketplace tagging based on the finalized MCP contribution point.

No open issues 🎉

What changed in this PR

Updates VSIX packaging to recognize the finalized MCP contribution point, allowing MCP provider extensions to receive the tags used for Marketplace discovery.

Changes:

  • Generate mcp and language-model-tools tags from mcpServerDefinitionProviders instead of the obsolete modelContextServerCollections.
  • Update the existing MCP tagging test to use the finalized contribution name.
File Description
src/​test/​package.test.ts Updates the MCP tagging test fixture.
src/​package.ts Detects the finalized MCP contribution point when generating tags.

Review effort: Balanced

@federicobrancasi
Federico Brancasi (federicobrancasi) marked this pull request as ready for review November 29, 2026 22:25
@federicobrancasi
Federico Brancasi (federicobrancasi) merged commit 92a7e53 into main Nov 29, 2026
8 checks passed
@federicobrancasi
Federico Brancasi (federicobrancasi) deleted the fbrancasi/mcp-server-definition-tags branch November 29, 2026 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants