Skip to content

Support for non-HTML View mimetypes #654

@liady

Description

@liady

Support for non-HTML View mimetypes

The current spec locks the View mimetype to text/html;profile=mcp-app. This was a deliberate MVP choice but the longer-term goal has always been to broaden this.
Filing this issue to start the conversation on what comes next and track the design discussion in one place.

Possible use cases:

  1. Generative UI use cases
  2. Non-HTML surfaces

The MVP currently leaves out some cases - most notably generative UI, where the server returns a JSON description and the host renders it with its own components. Remote DOM lands in similar territory, and native (non-web) hosts that might not be able to rely on HTML at all.

Currently mimeTypes is an array in capability negotiation, _meta.ui is mimetype-agnostic, and most ui/* methods (lifecycle, tool-input/result, host-context, display modes) don't depend on HTML.

Suggestion

We might want a path for adding new profiles (MIME naming convention, interactivity considerations, etc.)

Opening for discussion

  1. Should we support additional mime types, if so should the list be pre-defined or open?
  2. For generative UI purposes - should we rely on existing standards / specs with capabilities negotiation?
  3. Should we separate the generative UI discussion from the non-html surfaces discussion?

(also see #169)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions