modelcontextprotocol / modelcontextprotocol/ext-apps

ui/message content format discrepancy: SEP-1865 specifies object

Open
#48 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
2.9k
Forks
387
Avg merge
3h 21m
Merged PRs (30d)
6

Description

The @modelcontextprotocol/ext-apps SDK sends ui/message with content as an array, but SEP-1865 specifies it as a single object.

From SEP

  // ui/message request
  {
    jsonrpc: "2.0",
    id: 2,
    method: "ui/message",
    params: {
      role: "user",
      content: {
        type: "text",
        text: string
      }
    }
  }

SDK Behavior

  {
    jsonrpc: "2.0",
    id: 2,
    method: "ui/message",
    params: {
      role: "user",
      content: [{ type: "text", text: "..." }]  // Array, not object
    }
  }

Hosts implementing strictly per SEP-1865 will fail to extract text from SDK-generated ui/message requests.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the SDK's ui/message request generation with the SEP-1865 example linked in the issue. Trace where the content value is assembled and verify the resulting request shape. Done means SDK-generated requests use the single text object specified by SEP-1865 and strict hosts can extract the text.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.