Skip to content

Conversation

@connor4312
Copy link
Member

Align VS Code's MCP Apps implementation with the latest specification
from modelcontextprotocol/ext-apps:

  • Add availableDisplayModes to McpUiAppCapabilities interface
    (commit 89f58bf) to allow Views to declare supported display modes
    during initialization. VS Code supports only 'inline' mode currently.

  • Fix ui/request-display-mode handler to return { mode: 'inline' }
    per spec requirement, instead of empty response.

  • Update JSDoc comments to use 'View' terminology consistently
    instead of 'Guest UI' (following commit 4fc7165).

  • Verify CSP handling for script-src/style-src with resourceDomains
    is correct (commit df49e88). Already implemented correctly in
    chatMcpAppModel._injectPreamble().

Note: styles.css.fonts, ui.domain, and other changes either don't
require action or are already implemented.

(Commit message generated by Copilot)

Align VS Code's MCP Apps implementation with the latest specification
from modelcontextprotocol/ext-apps:

- Add availableDisplayModes to McpUiAppCapabilities interface
  (commit 89f58bf) to allow Views to declare supported display modes
  during initialization. VS Code supports only 'inline' mode currently.

- Fix ui/request-display-mode handler to return { mode: 'inline' }
  per spec requirement, instead of empty response.

- Update JSDoc comments to use 'View' terminology consistently
  instead of 'Guest UI' (following commit 4fc7165).

- Verify CSP handling for script-src/style-src with resourceDomains
  is correct (commit df49e88). Already implemented correctly in
  chatMcpAppModel._injectPreamble().

Note: styles.css.fonts, ui.domain, and other changes either don't
require action or are already implemented.

(Commit message generated by Copilot)
Copilot AI review requested due to automatic review settings January 26, 2026 18:23
@connor4312 connor4312 enabled auto-merge (squash) January 26, 2026 18:23
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 26, 2026
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 updates VS Code's MCP (Model Context Protocol) Apps implementation to align with the latest specification from the modelcontextprotocol/ext-apps repository. The changes ensure VS Code correctly implements the stable MCP Apps spec for handling Views (formerly "Guest UI") and their display modes.

Changes:

  • Update protocol version from "2025-11-21" to "2026-01-26" to reflect the latest spec
  • Add availableDisplayModes field to McpUiAppCapabilities interface to allow Views to declare supported display modes
  • Fix ui/request-display-mode handler to return { mode: 'inline' } instead of empty response, per spec requirement
  • Update JSDoc comments to use "View" terminology consistently with the latest spec

Reviewed changes

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

File Description
src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.ts Updates protocol version constant, adds availableDisplayModes field to app capabilities interface, and updates JSDoc comments to use "View" terminology
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.ts Fixes ui/request-display-mode handler to return proper response with inline mode, and updates JSDoc comment from "Guest UI" to "View"

@connor4312 connor4312 merged commit af666e3 into main Jan 26, 2026
27 of 28 checks passed
@connor4312 connor4312 deleted the connor4312/mcp-spec-updates branch January 26, 2026 18:45
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.

2 participants