Skip to content

docs: correct stable-spec app initialization example - #779

Open
Michael-WhiteCapData wants to merge 1 commit into
modelcontextprotocol:mainfrom
Michael-WhiteCapData:docs/fix-app-initialize-example
Open

Michael-WhiteCapData wants to merge 1 commit into
modelcontextprotocol:mainfrom
Michael-WhiteCapData:docs/fix-app-initialize-example

Conversation

@Michael-WhiteCapData

Copy link
Copy Markdown

Summary

  • change the stable specification transport example from the base MCP initialize method to the Apps ui/initialize method
  • replace clientInfo and capabilities with the schema-defined appInfo and appCapabilities fields

This makes the example agree with McpUiInitializeRequest and the lifecycle/capabilities sections in the same specification. Implementations copied from the previous example produced a schema-invalid request and never completed the iframe handshake.

Closes #634.

Verification

  • npm test — 438 passed, 2 platform-specific skipped
  • npm run build
  • git diff --check

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.

Spec 2026-01-26: misleading "View initialize" example uses initialize + clientInfo instead of ui/initialize + appInfo

1 participant