Prototype app-rendered elicitation in MCP Apps#1723
Draft
krubenok wants to merge 2 commits into
Draft
Conversation
Open
9 tasks
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.
Summary
This draft provides a reference implementation for app-rendered elicitations as an experimental addition to the existing MCP Apps extension.
It:
elicitationcapability underio.modelcontextprotocol/ui;_meta.ui.resourceUrito an otherwise standard form elicitation only when the client negotiated both core form elicitation and MCP Apps elicitation support;InputRequiredResult/ retry flow;The public API is marked with the existing MCP Apps experimental diagnostic (
MCPEXP003) while the proposal is discussed.Proposed wire convention
{ "elicitation": { "form": {} }, "extensions": { "io.modelcontextprotocol/ui": { "mimeTypes": ["text/html;profile=mcp-app"], "elicitation": {} } } }When negotiated, the server may add:
{ "_meta": { "ui": { "resourceUri": "ui://portfolio/assign-manager" } } }The underlying request remains a standard
elicitation/create, including a completerequestedSchema. A client that does not negotiate the nested Apps capability therefore receives the native form request unchanged.Validation
dotnet build ModelContextProtocol.slnx --no-restoredotnet build src/ModelContextProtocol.Extensions.Apps/ModelContextProtocol.Extensions.Apps.csproj --no-restore(net10.0, net9.0, net8.0, netstandard2.0)McpAppElicitationtests2026-07-28:InputRequiredResultcontains a normal form elicitation without app metadata;_meta.ui.resourceUri;Context
SEP-3118 cites this draft as its reference implementation. Until that proposal settles, the earlier two-extension prototype remains available on
krubenok:feature/apps-elicitationfor experiments that need an independently negotiated extension.AI assistance disclosure
This proposal and implementation were developed with substantial assistance from OpenAI Codex. The author directed the design, reviewed the implementation, and validated the end-to-end behavior.