MCP UI Glue Code Generator
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
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP UI Glue Code Generator Map this API response to this React component: {"user_id": "123", "name": "John Doe", "email": "john@example.com"}"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: Sunnyside Figma MCP
๐ Quick Start
# Install dependencies
npm install
# Build the server
npm run build
# Start the server
npm startServer 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):
{
"roo-cline.mcpServers": {
"glue-code-generator": {
"command": "node",
"args": ["d:/MCPUIPlugin/build/index.js"]
}
}
}Option 2: Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"glue-code-generator": {
"command": "node",
"args": ["d:/MCPUIPlugin/build/index.js"]
}
}
}๐ฎ Demo Walkthrough
The "Magic Moment"
Open your AI chat (VS Code with Roo Code, or Claude Desktop)
Paste this prompt:
Map this API response to this Vue component:
API Response:
{
"cust_id": "USR-12345",
"tx_timestamp": "2025-12-06T10:30:00Z",
"stat_cd": "STATUS_OK",
"amt_val": 1250.50,
"desc_txt": "Monthly subscription payment"
}
Vue Component:
<template>
<div class="ds-card" :class="variant">
<h3>{{ title }}</h3>
<p class="subtitle">{{ subtitle }}</p>
<span class="amount">{{ formattedAmount }}</span>
<span class="badge" :class="variant">{{ status }}</span>
</div>
</template>Result: The tool generates the Zod schema AND renders the actual card live in chat!
๐งช Testing with MCP Inspector
# Quick CLI test
npx @modelcontextprotocol/inspector --cli http://localhost:3000/mcp --method tools/list
# Or use the GUI
npx @modelcontextprotocol/inspector
# Then connect to http://localhost:3000/mcp with Streamable HTTP๐ฆ 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
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP Client โ
โ (VS Code / Claude Desktop / Goose) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP Protocol
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ glue-code-generator Server โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ generate_ui_schema Tool โ โ
โ โ โโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโ โ โ
โ โ โ Analyze โโ โ Generate โโ โ Render โ โ โ
โ โ โ API JSON โ โ Zod Schema โ โ UIResourceโ โ โ
โ โ โโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ๐ 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:
npm publish
# Users run: npx @yourname/glue-code-generatorOption 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
Available Tools
1 toolgenerate_ui_schemaA
Maps messy API JSON to Vue/React Design System component props using Zod schema. Returns both the generated schema code and a live UI preview. Optionally saves preview as HTML file.
Inputs: api_json_sample (required), vue_component_code (required), output_path.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly distinct and singular, making misselection impossible.
The single tool name follows a clear verb_noun pattern (generate_ui_schema). Since there is only one tool, consistency is inherently perfect with no deviations to assess.
A single tool is too few for a server named 'MCP UI Glue Code Generator', which suggests a broader scope involving UI generation tasks. This minimal set feels thin and underdeveloped for the implied purpose.
The tool surface is severely incomplete for the domain. While generate_ui_schema handles schema generation and preview, there are obvious gaps such as validation, customization, integration with other UI frameworks, or management of generated schemas, limiting agent workflows.
Related MCP Connectors
Live React design-system APIs, patterns, and code validation so AI agents build real UI, not slop.
Orvain UI design system for React and Vue: real component props, variants and tokens for AI tools
500+ typed UI atoms an agent composes into real rendered interfaces. Free, no API key.
Design systems your AI agent builds with and you reshape, plus standalone React components.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI-driven frontend component design and code generation from natural language requirements. Supports Vue, React, and Angular with intelligent component decomposition, API design, and complete project generation.43MIT
- FlicenseNot gradedqualityDmaintenanceConnects Figma designs to AI agents, enabling extraction of production-ready code, assets, and design tokens through natural language descriptions. Supports React, Vue, CSS, and Tailwind with real-time design system analysis.40-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to read Figma design files and automatically map responsive relationships between mobile and desktop screens to generate accurate frontend code. Eliminates manual copy-pasting by providing direct access to design tokens, dimensions, and screen layouts within AI-powered IDEs.ISC
- AlicenseNot gradedqualityDmaintenanceConnects Figma designs to React components using your actual component library, enabling AI tools to generate production-ready code with proper imports.1MIT