Skip to content

feat: experimental SSR + hydration#201

Merged
valebearzotti merged 22 commits intobasementstudio:canaryfrom
fveiraswww:feat/experimental_ssr
Oct 22, 2025
Merged

feat: experimental SSR + hydration#201
valebearzotti merged 22 commits intobasementstudio:canaryfrom
fveiraswww:feat/experimental_ssr

Conversation

@fveiraswww
Copy link
Contributor

@fveiraswww fveiraswww commented Oct 19, 2025

Important: Please ensure your pull request is targeting the canary branch. PRs to other branches may be closed or require retargeting.

Summary

adds SSR + hydration support for react components in MCP tools. Instead of writing tools that return plain text or JSON, you can now write tools as React components (.tsx files) that are:

  • server-rendered to .html
  • sent to the client as a resource via ui://widget/{tool-name}.html
  • hydrated on the client to become fully interactive

Type of Change

  • Bug fixing
  • Adding a feature
  • Improving documentation
  • Adding or updating examples
  • Performance - bundle size improvement (if applicable)

Affected Packages

  • xmcp (core framework)
  • create-xmcp-app
  • init-xmcp
  • Documentation
  • Examples

Screenshots/Examples

Related Issues

@vercel
Copy link
Contributor

vercel bot commented Oct 19, 2025

@fveiraswww is attempting to deploy a commit to the basement Team on Vercel.

A member of the Team first needs to authorize it.

@fveiraswww fveiraswww marked this pull request as draft October 19, 2025 15:07
cursor[bot]

This comment was marked as outdated.

@fveiraswww fveiraswww changed the title Feat/experimental ssr feat: experimental SSR + hydration Oct 20, 2025
@valebearzotti valebearzotti marked this pull request as ready for review October 22, 2025 00:53
@valebearzotti valebearzotti merged commit 5a30176 into basementstudio:canary Oct 22, 2025
3 of 4 checks passed
0xKoller pushed a commit that referenced this pull request Jan 7, 2026
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.

2 participants