Skip to content

Conversation

@ochafik
Copy link
Collaborator

@ochafik ochafik commented Dec 11, 2025

Summary

Fix MCP App UIs to be responsive on narrow viewports (mobile, native WebViews).

Problem

The example apps had min-width: 425px which caused horizontal scrolling on narrow viewports like:

  • Mobile browsers
  • Native WebViews (iOS/Android)
  • Embedded iframes

Solution

Changed from:

min-width: 425px;

To:

width: 100%;
max-width: 425px;
box-sizing: border-box;

This allows the apps to shrink on narrow viewports while still having a maximum width on larger screens.

Files changed

  • examples/basic-server-react/src/mcp-app.module.css
  • examples/basic-server-vanillajs/src/mcp-app.css

🤖 Generated with Claude Code

Changed from min-width: 425px to:
- width: 100%
- max-width: 425px
- box-sizing: border-box

This allows the apps to shrink on narrow viewports (like mobile
or when embedded in native WebViews) instead of causing horizontal
scrolling.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@ochafik ochafik changed the title fix: Make MCP App UIs responsive for narrow viewports examples: make basic apps responsive for narrow viewports Dec 11, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 11, 2025

Open in StackBlitz

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/ext-apps@135

commit: 90e421d

@ochafik ochafik requested a review from liady December 11, 2025 18:56
@ochafik ochafik added the bugfix label Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants