spec(draft): add missing HostCapabilities fields (updateModelContext and message)#653
Open
hydrosquall wants to merge 1 commit intomodelcontextprotocol:mainfrom
Conversation
hydrosquall
commented
May 6, 2026
| }; | ||
| }; | ||
| /** | ||
| * Host accepts context updates (ui/update-model-context) to be included in |
Contributor
Author
There was a problem hiding this comment.
Matches the ordering in the types
Lines 520 to 523 in 0008d3b
hydrosquall
commented
May 6, 2026
|
|
||
| ```typescript | ||
| /** Content block modalities that the host supports for a given capability. */ | ||
| interface SupportedContentBlockModalities { |
@modelcontextprotocol/ext-apps
@modelcontextprotocol/server-basic-preact
@modelcontextprotocol/server-basic-react
@modelcontextprotocol/server-basic-solid
@modelcontextprotocol/server-basic-svelte
@modelcontextprotocol/server-basic-vanillajs
@modelcontextprotocol/server-basic-vue
@modelcontextprotocol/server-budget-allocator
@modelcontextprotocol/server-cohort-heatmap
@modelcontextprotocol/server-customer-segmentation
@modelcontextprotocol/server-debug
@modelcontextprotocol/server-map
@modelcontextprotocol/server-pdf
@modelcontextprotocol/server-scenario-modeler
@modelcontextprotocol/server-shadertoy
@modelcontextprotocol/server-sheet-music
@modelcontextprotocol/server-system-monitor
@modelcontextprotocol/server-threejs
@modelcontextprotocol/server-transcript
@modelcontextprotocol/server-video-resource
@modelcontextprotocol/server-wiki-explorer
commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The draft spec is the source of truth for contributors and implementors, including those who may not know to look in
src/spec.types.tsfor the full picture.Two host capabilities present in the implementation were missing from the spec, making it less likely that new hosts would report these fields to client apps.
Changes
Adds two missing fields to
HostCapabilities:updateModelContext- signals the host acceptsui/update-model-contextrequests to inject context into future model turns.message- signals the host acceptsui/messagecontent from the view.Both fields use a new
SupportedContentBlockModalitieshelper interface (mirroringMcpUiSupportedContentBlockModalitiesin spec.types.ts) that describes which content block types the host supports for each capability.Testing
N/A