Skip to content

ui/size-change vs ui/notification/size-change discrepency #68

@khandrew1

Description

@khandrew1

The MCP Apps spec defines changing the size via ui/size-change. Though the SDK's app.sendSizeChange sends a ui/notification/size-change message. This discrepancy causes confusion.

From SEP:

{
  jsonrpc: "2.0",
  method: "ui/size-change",
  params: {
    width: number,   // Viewport width in pixels
    height: number   // Viewport height in pixels
  }
}

SDK Behavior:

{
  "jsonrpc":"2.0",
  "method":"ui/notifications/size-change",
  "params": { 
      "width": 753,
      "height": 318
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions