Skip to content

Conversation

@idosal
Copy link
Collaborator

@idosal idosal commented Oct 13, 2025

No description provided.

@idosal idosal requested a review from Copilot October 13, 2025 22:02
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

The PR separates concerns by extracting MIME type determination from HTML wrapping functionality. It splits the wrapHtmlWithAdapters function into two distinct functions: one for wrapping HTML content and a new getAdapterMimeType function for determining MIME types.

  • Extracts MIME type logic from wrapHtmlWithAdapters into a dedicated getAdapterMimeType function
  • Simplifies wrapHtmlWithAdapters to only handle HTML wrapping and return a string instead of an object
  • Updates all tests and documentation to reflect the new separated functionality

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
sdks/typescript/server/src/utils.ts Adds getAdapterMimeType function and simplifies wrapHtmlWithAdapters to return string
sdks/typescript/server/src/index.ts Updates imports and usage to call separated functions
sdks/typescript/server/src/tests/utils.test.ts Adds tests for new getAdapterMimeType function and updates existing tests
sdks/typescript/server/src/tests/adapters/adapter-integration.test.ts Updates tests to use simplified return values and adds integration tests for getAdapterMimeType
sdks/typescript/server/README.md Updates documentation to show usage of both functions

@idosal idosal changed the title separate concerns fix: separate adapter wrappers for flexibility Oct 13, 2025
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 13, 2025

Deploying mcp-ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: f9b2337
Status: ✅  Deploy successful!
Preview URL: https://e9cc9a8b.mcp-ui.pages.dev
Branch Preview URL: https://fix-appssdk.mcp-ui.pages.dev

View logs

@idosal idosal merged commit a636844 into alpha Oct 13, 2025
9 checks passed
github-actions bot pushed a commit that referenced this pull request Oct 13, 2025
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.

3 participants