Maps messy API JSON responses to React Design System components using Zod schemas, with automated glue code generation and live UI previews
Generates Zod schemas to map API JSON responses to Vue or React component props, enabling type-safe data transformation between backend APIs and frontend design systems
MCP UI Glue Code Generator
๐ฏ The Grand Slam Demo: Maps messy API JSON to Vue OR React Design System components using Zod schemas, with live UI previews via MCP-UI.
โจ What is this?
This is a Two-Stage System for automating frontend integration:
Stage 1 (Factory): Takes "Messy API JSON" + "Design System Component" (Vue or React) โ Generates Zod Schema mapping
Stage 2 (Runtime): Renders a live preview using
mcp-uidirectly in your chat
๐ Quick Start
Server will be running at:
Health Check: http://localhost:3000/
MCP Endpoint: http://localhost:3000/mcp
๐ง VS Code Integration
Option 1: Roo Code / Cline Extension
Add to your VS Code settings (settings.json):
Option 2: Claude Desktop
Add to claude_desktop_config.json:
๐ฎ Demo Walkthrough
The "Magic Moment"
Open your AI chat (VS Code with Roo Code, or Claude Desktop)
Paste this prompt:
Result: The tool generates the Zod schema AND renders the actual card live in chat!
๐งช Testing with MCP Inspector
๐ฆ Tool Reference
generate_ui_schema
Maps API JSON to Vue component props.
Inputs:
Parameter | Type | Description |
| string | JSON response from backend API |
| string | Vue component from Design System |
Outputs:
Generated Zod schema code
Mapped data preview
Live HTML card rendered via
mcp-ui
๐๏ธ Architecture
๐ Publishing & Distribution
Option 1: Smithery (MCP Marketplace)
The official way for users to discover and install MCP servers:
Create account at smithery.ai
Submit your server with metadata
Users can browse and add via:
smithery install glue-code-generator
Option 2: npm Package
Publish to npm for npx usage:
Option 3: GitHub
Users clone/download and configure manually in their MCP client settings.
Note: VS Code doesn't have a built-in MCP browser yet. Users configure MCP servers in their settings or use extensions like Roo Code/Cline.
๐ License
MIT