
Glue Code Generator
- 1 repo stars
- Updated March 29, 2026
- Maverick7/mcp-glue-code-generator
glue-code-generator is a MCP server that maps API JSON to Vue/React components with Zod schemas and live previews.
About
glue-code-generator is a Model Context Protocol server that helps developers close the gap between messy API JSON and production-ready Vue or React UI. When you have endpoint responses but do not want to hand-write props, types, and validators, your agent can call MCP tools to propose components, attach Zod schemas, and preview layouts with live data. The server ships as mcp-glue-code-generator on npm at version 1.0.6 with stdio transport, sourced from Maverick7/mcp-glue-code-generator on GitHub. Use it in the Build phase while scaffolding dashboards, admin panels, or marketing apps that consume REST or JSON APIs—especially when iterating quickly with Claude Code or Cursor. It accelerates glue code between backend contracts and frontend files; you still own routing, auth, and design system polish. Not a replacement for full design skills or E2E tests, but a strong accelerator for API-driven UI bootstrapping.
- Maps API JSON payloads to Vue and React component scaffolding
- Generates Zod schemas aligned with response shapes for runtime validation
- Live UI previews to verify components against sample API data
- npm package mcp-glue-code-generator at version 1.0.6, stdio MCP
- GitHub source Maverick7/mcp-glue-code-generator
Glue Code Generator by the numbers
- Data as of Jul 7, 2026 (Skillselion catalog sync)
claude mcp add mcp-glue-code-generator -- npx -y mcp-glue-code-generatorAdd your badge
Show developers this MCP server is listed on Skillselion. Paste this into your README.
| repo stars | ★ 1 |
|---|---|
| Package | mcp-glue-code-generator |
| Transport | STDIO |
| Auth | None |
| Last updated | March 29, 2026 |
| Repository | Maverick7/mcp-glue-code-generator ↗ |
What it does
Turn real API JSON responses into typed Vue or React components with Zod validation and live UI previews through your agent’s MCP tools.
Who is it for?
Best when you're wiring new API endpoints to React or Vue UIs and want MCP-assisted codegen with validation and quick visual checks.
Skip if: Design-only mockups with no API contract, or teams standardizing on a single UI kit generator outside MCP.
What you get
After registering glue-code-generator, your agent can generate schema-backed components and preview them against real JSON without starting from an empty file.
- Vue or React component stubs mapped from API JSON
- Matching Zod schemas for response validation
- Live UI preview feedback loop inside agent-driven Build sessions
By the numbers
- npm mcp-glue-code-generator version 1.0.6
- stdio MCP transport
- Supports Vue and React with Zod schemas and live UI previews per catalog description
README.md
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
# Install dependencies
npm install
# Build the server
npm run build
# Start the server
npm 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):
{
"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 |
|---|---|---|
api_json_sample |
string | JSON response from backend API |
vue_component_code |
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-generator
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
Recommended MCP Servers
How it compares
API-to-UI glue MCP tool—not a full component library marketplace or a backend OpenAPI server generator.
FAQ
Who is glue-code-generator for?
It is for developers shipping API-backed frontends who want their agent to produce Vue or React components, Zod schemas, and previews from sample JSON.
When should I use glue-code-generator?
Use it during Build frontend work when endpoint shapes exist and you need fast, validated UI scaffolding before polishing styles and state management.
How do I add glue-code-generator to my agent?
Install npm package mcp-glue-code-generator, add a stdio MCP server block in Claude Code or Cursor, and invoke tools with your API JSON fixtures or live responses.