Skip to content

fix: update ui/message to pass an array#167

Merged
idosal merged 6 commits intomainfrom
fix/adapter-prompt
Dec 18, 2025
Merged

fix: update ui/message to pass an array#167
idosal merged 6 commits intomainfrom
fix/adapter-prompt

Conversation

@idosal
Copy link
Collaborator

@idosal idosal commented Dec 18, 2025

No description provided.

Copilot AI review requested due to automatic review settings December 18, 2025 16:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the ui/message request format in the MCP Apps adapter to align with the ext-apps specification by wrapping the content in an array instead of passing a single object.

Key Changes:

  • Updated two ui/message calls to use array format: content: [{ type: 'text', text: '...' }] instead of content: { type: 'text', text: '...' }
  • Added a test to verify the array format appears in the generated adapter script

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
sdks/typescript/server/src/adapters/mcp-apps/adapter-runtime.ts Fixed ui/message content field format for both prompt and intent message types to use array instead of single object
sdks/typescript/server/src/__tests__/adapters/mcp-apps-adapter.test.ts Added regex-based test to verify the generated script contains the array format for ui/message content

@idosal idosal requested a review from Copilot December 18, 2025 16:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 14 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

idosal and others added 2 commits December 18, 2025 18:53
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@idosal idosal merged commit 80cf222 into main Dec 18, 2025
13 checks passed
github-actions bot pushed a commit that referenced this pull request Dec 18, 2025
…er/v5.16.3) (2025-12-18)

### Bug Fixes

* **client:** use type-only imports for @modelcontextprotocol/sdk types ([#157](#157)) ([d84cb3e](d84cb3e))
* trigger TS release ([e28d1f6](e28d1f6))
* update adapter to latest MCP Apps spec ([#163](#163)) ([e342034](e342034))
* update MCP Apps adapter mimetype ([#162](#162)) ([c91e533](c91e533))
* update ui/message to pass an array ([#167](#167)) ([80cf222](80cf222))
@github-actions
Copy link

🎉 This PR is included in version 5.16.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Dec 18, 2025
…/v5.17.1...client/v5.18.0-alpha.1) (2025-12-18)

### Bug Fixes

* **client:** use type-only imports for @modelcontextprotocol/sdk types ([#157](#157)) ([d84cb3e](d84cb3e))
* revert externalUrl adapter for compatibility ([#159](#159)) ([3c5289a](3c5289a))
* trigger TS release ([e28d1f6](e28d1f6))
* update adapter to latest MCP Apps spec ([#163](#163)) ([e342034](e342034))
* update MCP Apps adapter mimetype ([#162](#162)) ([c91e533](c91e533))
* update ui/message to pass an array ([#167](#167)) ([80cf222](80cf222))

### Features

* **client:** expose MCP request handlers and AppBridge ref ([3cf3c37](3cf3c37))
* **client:** make Client optional with onReadResource alternative ([fece80e](fece80e))
* use ext-apps branch with setter-based MCP forwarding handlers ([a312e52](a312e52))
@github-actions
Copy link

🎉 This PR is included in version 5.18.0-alpha.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Dec 20, 2025
…nt/v5.17.2) (2025-12-20)

### Bug Fixes

* **client:** use type-only imports for @modelcontextprotocol/sdk types ([#157](#157)) ([d84cb3e](d84cb3e))
* revert externalUrl adapter for compatibility ([#159](#159)) ([3c5289a](3c5289a))
* trigger TS release ([e28d1f6](e28d1f6))
* update adapter to latest MCP Apps spec ([#163](#163)) ([e342034](e342034))
* update MCP Apps adapter mimetype ([#162](#162)) ([c91e533](c91e533))
* update ui/message to pass an array ([#167](#167)) ([80cf222](80cf222))
@github-actions
Copy link

🎉 This PR is included in version 5.17.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant