mcpField
C
chat-apps-ui-sdk

chat-apps-ui-sdk

github.com/pproencaDevelopment218124 installsUpdated 11w ago
Repository

About chat-apps-ui-sdk

A reference skill for designing and reviewing interactive chat apps built on MCP Apps. It organizes 46 rules covering tool design, UI wiring, host bridges, security, and cross-host portability.

Key features

  1. 0146 rules across 8 categories
  2. 02MCP tool and UI resource design
  3. 03Host-component bridge guidance
  4. 04Responsive layout and state patterns
  5. 05Security and cross-host portability

Use cases

  1. 01Designing an MCP tool and its UI contract
  2. 02Connecting a tool to an interactive UI resource
  3. 03Reviewing ChatGPT-app, Claude-app, or MCP-UI code

MCP support

Covers the MCP Apps standard and guidance for exposing MCP tools alongside UI resources, including tool-to-resource wiring and host-component communication.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pproenca/dot-skills --skill chat-apps-ui-sdk

After installing, type/chat-apps-ui-sdkin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

AGENTS.md
metadata.json
assets/templates/
_template.md
references/
_sections.md
bridge-call-tools-app-visibility.md
bridge-followup-vs-silent-call.md
bridge-handle-all-mcpui-actions.md
bridge-render-from-notifications.md
bridge-use-host-apis.md
bridge-validate-postmessage-origin.md
design-inherit-native-typography.md
design-limit-actions-hierarchy.md
design-meet-wcag-contrast.md
design-render-loading-empty-error.md
design-respect-reduced-motion.md
design-restrain-brand-color.md
display-avoid-nested-scroll.md
display-pick-the-right-mode.md
display-report-intrinsic-height.md
display-request-mode-with-fallback.md
display-respect-theme.md
display-responsive-breakpoints.md
dist-build-on-mcp-apps-standard.md
dist-degrade-without-ui.md
dist-feature-detect-host-apis.md
dist-provide-submission-metadata.md
sec-avoid-frame-domains.md
sec-declare-csp-allowlist.md
sec-enforce-server-side-auth.md
sec-minimize-restricted-data.md

Details

From the project README

Chat Apps UI SDK Best Practices

A reference for building beautiful, review-ready apps that render interactive UI inside the chat surface of ChatGPT and Claude. As of January 2026 these platforms share one foundation — the MCP Apps standard (@modelcontextprotocol/ext-apps), rendered by Claude, ChatGPT, VS Code, and Goose. The OpenAI Apps SDK is a superset adding the window.openai bridge, and MCP-UI (@mcp-ui/server / @mcp-ui/client) is the community implementation. This skill contains 46 rules across 8 categories, ordered by impact so the highest-leverage decisions come first.

The mental model: an app is an MCP tool first, UI second. The model invokes a tool; the tool returns data plus a link to a UI resource; the host renders that resource in a sandboxed iframe; the iframe talks back over a defined bridge. Mistakes early in that chain mean nothing renders; mistakes later mean it renders broken, unsafe, or unpolished.

When to Apply

Reference these guidelines when:

  • Designing the MCP tool and structuredContent / content / _meta contract for a chat app
  • Wiring a tool to a component (_meta.ui.resourceUri, the text/html;profile=mcp-app MIME type, the ui:// scheme)
  • Writing the iframe component and its bridge (window.openai, ui/notifications/*, MCP-UI onUIAction)
  • Choosing display modes, widget state, theming, and responsive layout
  • Hardening a chat app (CSP, sandbox, secrets, OAuth) or preparing it for directory submission
  • Reviewing or refactoring existing ChatGPT-app / Claude-app / MCP-UI code

Rule Categories by Priority

PriorityCategoryImpactPrefix
1MCP Tool & Discovery DesignCRITICALtool-
2UI Resource Wiring & TemplatesCRITICALwire-
3Host–Component Data BridgeHIGHbridge-
4Display Modes & Responsive LayoutHIGHdisplay-
5State & Model ContextHIGHstate-
6Security & Data BoundariesHIGHsec-
7Visual Design & UX PolishMEDIUM-HIGHdesign-
8Distribution & Cross-Host PortabilityMEDIUMdist-

Quick Reference

1. MCP Tool & Discovery Design (CRITICAL)
2. UI Resource Wiring & Templates (CRITICAL)
3. Host–Component Data Bridge (HIGH)
4. Display Modes & Responsive Layout (HIGH)
5. State & Model Context (HIGH)
6. Security & Data Boundaries (HIGH)
7. Visual Design & UX Polish (MEDIUM-HIGH)
8. Distribution & Cross-Host Portability (MEDIUM)

How to Use

Read the individual reference files for full explanations and incorrect-vs-correct code examples. Start at the top — category 1 (tool-) and category 2 (wire-) gate whether anything renders at all, so resolve those before touching display or design.

Reference Files

FileDescription
references/_sections.mdCategory definitions and impact ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference URLs

Related Skills

  • build-mcp-server — Entry point for designing the MCP server shape (deployment model, tool patterns) this skill's UI rules build on top of.

Comments

Markdown supported