Skip to content

Spec: ui/message shows content as an object, but the SDK and hosts require an array #851

Open

Description

@m-vdb

specification/2026-01-26/apps.mdx shows the ui/message request with content as a single content block:

{"method":"ui/message","params":{"role":"user","content":{"type":"text","text":"…"}}}

src/spec.types.ts (McpUiMessageRequest) types it as ContentBlock[], and Claude Desktop enforces the array. An app built from the prose spec gets:

Invalid params for ui/message: content: Invalid input: expected array, received object

We built from the prose, and our test host accepted the object form, so the bug only showed up on a real host.

Suggested fix: make the prose example an array, matching spec.types.ts.

Activity

  1. added
    bug
    on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions