Skip to content

Conversation

@connor4312
Copy link
Member

Copilot AI review requested due to automatic review settings November 12, 2025 17:30
@connor4312 connor4312 enabled auto-merge (squash) November 12, 2025 17:30
@connor4312 connor4312 self-assigned this Nov 12, 2025
@vs-code-engineering vs-code-engineering bot added this to the November 2025 milestone Nov 12, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adopts SEP-1330 to enhance enum picker support in the MCP (Model Context Protocol) implementation. It introduces a JSON Schema 2020-12 compliant approach for enum schemas with display titles, replacing the non-standard enumNames property.

Key changes:

  • Splits enum schema definitions into single-select and multi-select variants, each with titled and untitled options
  • Introduces oneOf with const/title for single-select and anyOf with const/title for multi-select enums
  • Maintains backward compatibility with the legacy enumNames pattern

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
src/vs/workbench/contrib/mcp/common/modelContextProtocol.ts Defines new schema interfaces for single-select, multi-select, titled, and untitled enum schemas, plus legacy support
src/vs/workbench/contrib/mcp/browser/mcpElicitationService.ts Implements type guards and handlers for the new enum schema types, including a new multi-select enum field handler

@connor4312 connor4312 merged commit c6c12e7 into main Nov 12, 2025
33 of 34 checks passed
@connor4312 connor4312 deleted the connor4312/mcp-sep-1330 branch November 12, 2025 17:58
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Dec 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants