-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Overview
Explore the feasibility and design of OpenGenerativeUI as a Model Context Protocol (MCP) server. This would enable Claude and other AI systems to generate UIs directly through the MCP interface, making generative UI a first-class capability available to any MCP-compatible client.
Motivation
- Unified Interface: MCP standardizes how Claude and other AI systems interact with external tools
- Broader Access: Makes OpenGenerativeUI available beyond just the CopilotKit ecosystem
- Composability: Other MCP tools could request UI generation as part of their workflows
- AI-Native: Natural fit for AI systems to compose and generate UI structures
Use Cases
- Document Agent as MCP: Generate UIs for documents, forms, or reports through MCP
- Multi-Tool Workflows: An agent could call multiple MCPs (data fetch, transform, generate UI)
- Claude Integration: Direct Claude → MCP → OpenGenerativeUI → UI generation
- Third-Party Integration: Any MCP-compatible client can request UI generation
Design Exploration
-
MCP Resources: What would OpenGenerativeUI expose as resources?
- UI component library definitions
- Generated UI templates
- Available rendering targets
-
MCP Tools: What tools should the MCP provide?
generateUI(data, dataSchema, context)- Generate UI from datasaveTemplate(ui, metadata)- Save a generated UI as a templateapplyTemplate(data, templateId)- Apply saved template to datalistTemplates()- Browse available templates
-
Input/Output Format: How should UI data be represented?
- Current JSON/component structure in OpenGenerativeUI
- Integration with MCP's standard message format
- Validation/schema enforcement
-
Rendering: How are generated UIs rendered?
- Web-based renderer on the MCP client side
- Integration with CopilotKit's widget system
- Support for headless/CLI rendering
Implementation Questions
- Does OpenGenerativeUI's current architecture support exposing as an MCP server?
- What's the minimal viable MCP server for OpenGenerativeUI?
- How would the MCP handle complex stateful interactions?
- Authentication/authorization model for the MCP?
- Performance considerations for streaming UI generation over MCP?
Related Work
- CopilotKit MCP integration (existing)
- Other generative systems as MCPs
- Claude's native MCP support
- Existing OpenGenerativeUI architecture
Next Steps
- Audit current OpenGenerativeUI architecture for MCP compatibility
- Design MCP interface/contract for UI generation
- Create minimal MCP server prototype
- Test with Claude and other MCP clients
- Document patterns and best practices
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request