New mcp_ui module holds the template: preview each 9:16 clip inline, select the keepers and publish them via publish_clip from inside the conversation. One template, three data paths, because the ecosystem has not converged: baked-in JSON on the per-call embedded resource, the ChatGPT Apps window.openai bridge, and the MCP Apps ready/render-data postMessage handshake. Titles are JSON-escaped so a clip name cannot break out of the script tag, and the template is fully inline because host CSPs block external fetches. The server grows resources/list, resources/read and the resources capability; list_clips declares the template under both _meta.ui .resourceUri and openai/outputTemplate. Non-UI clients see the same text and structured content as before; the extra content entry is spec-tolerated. The unknown-method protocol test moves off resources/list, which is now a real method. |
||
|---|---|---|
| .. | ||
| public | ||
| seo | ||
| src | ||
| .gitignore | ||
| Dockerfile | ||
| eslint.config.js | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| tailwind.config.js | ||
| vite-plugin-seo.js | ||
| vite.config.js | ||
React + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.