fix: use profile parameter for MIME type instead of suffix (#75)
Change MIME type from `text/html+mcp` to `text/html;profile=mcp-app` to follow RFC 6838 recommendations for custom media types. The `+suffix` format (like `text/html+mcp`) is intended for structured syntax suffixes (e.g., `+json`, `+xml`) that describe the underlying format. Since MCP Apps doesn't define a new syntax but rather a profile of HTML, using a profile parameter is more semantically correct. Fixes #59 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
7eac6f6ae6
commit
0af15322af
1 changed files with 16 additions and 16 deletions
|
|
@ -68,7 +68,7 @@ const getServer = async () => {
|
|||
uri: "ui://raw",
|
||||
title: "Raw UI Template",
|
||||
description: "A simple raw HTML UI",
|
||||
mimeType: "text/html+mcp",
|
||||
mimeType: "text/html;profile=mcp-app",
|
||||
},
|
||||
rawHtml,
|
||||
);
|
||||
|
|
@ -99,7 +99,7 @@ const getServer = async () => {
|
|||
uri: "ui://vanilla",
|
||||
title: "Vanilla UI Template",
|
||||
description: "A simple vanilla JS UI",
|
||||
mimeType: "text/html+mcp",
|
||||
mimeType: "text/html;profile=mcp-app",
|
||||
},
|
||||
vanillaHtml,
|
||||
);
|
||||
|
|
@ -130,7 +130,7 @@ const getServer = async () => {
|
|||
uri: "ui://react",
|
||||
title: "React UI Template",
|
||||
description: "A React-based UI",
|
||||
mimeType: "text/html+mcp",
|
||||
mimeType: "text/html;profile=mcp-app",
|
||||
},
|
||||
reactHtml,
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue