Skip to content

feat: mcp UI sidecar (WIP) #4268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

feat: mcp UI sidecar (WIP) #4268

wants to merge 3 commits into from

Conversation

Kvadratni
Copy link
Collaborator

@Kvadratni Kvadratni commented Aug 22, 2025

Add MCP UI sidecar panel for interactive tool interfaces

This PR introduces a collapsible sidecar panel that displays MCP UI resources alongside the main chat interface. When tools return UI resources (like forms, visualizations, or interactive components), users can open them in a dedicated side panel for better interaction.

Key Features:

  • Toggle button appears on tool responses with UI resources
  • Sidecar panel slides in from the right with smooth animations
  • Window automatically resizes to accommodate the panel
  • Context shared between main chat and sidecar for seamless interaction
  • Clean separation of concerns with dedicated SidecarContext

Technical Implementation:

  • New SidecarContext manages panel state and UI resource handling
  • MainPanelLayout updated to support flexible width with sidecar
  • IPC communication for window resizing when panel opens/closes
  • Responsive design maintains usability across different screen sizes
mcp-ui-sidecar-compressed.mp4

@Kvadratni Kvadratni marked this pull request as ready for review August 22, 2025 17:26
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.

1 participant