Skip to content

Comments

Update MIME types for UI resources to include profile for MCP Apps#2078

Merged
mattdholloway merged 2 commits intomainfrom
update-mcp-apps-mime-type
Feb 24, 2026
Merged

Update MIME types for UI resources to include profile for MCP Apps#2078
mattdholloway merged 2 commits intomainfrom
update-mcp-apps-mime-type

Conversation

@mattdholloway
Copy link
Contributor

@mattdholloway mattdholloway commented Feb 24, 2026

Summary

Updates MCP Apps MIME types to include the correct profile

Why

For parity with the TypeScript SDK examples

What changed

MIME type updates for UI resources:

  • Changed the MIMEType for the "get_me_ui" resource and its response contents from "text/html" to "text/html;profile=mcp-app" to specify the MCP App profile.
  • Updated the MIMEType for the "issue_write_ui" resource and its response contents to "text/html;profile=mcp-app".
  • Set the MIMEType for the "pr_write_ui" resource and its response contents to "text/html;profile=mcp-app".

MCP impact

  • No tool or API changes
  • Tool schema or behavior changed
  • New tool added

Prompts tested (tool changes only)

Security / limits

  • No security or limits impact
  • Auth / permissions considered
  • Data exposure, filtering, or token/size limits considered

Tool renaming

  • I am renaming tools as part of this PR (e.g. a part of a consolidation effort)
    • I have added the new tool aliases in deprecated_tool_aliases.go
  • I am not renaming tools as part of this PR

Note: if you're renaming tools, you must add the tool aliases. For more information on how to do so, please refer to the official docs.

Lint & tests

  • Linted locally with ./script/lint
  • Tested locally with ./script/test

Docs

  • Not needed
  • Updated (README / docs / examples)

@mattdholloway mattdholloway marked this pull request as ready for review February 24, 2026 16:20
@mattdholloway mattdholloway requested a review from a team as a code owner February 24, 2026 16:20
Copilot AI review requested due to automatic review settings February 24, 2026 16:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the registered UI resource MIME types so MCP Apps clients can identify them via the profile=mcp-app media type parameter.

Changes:

  • Updated mcp.Resource MIME types for embedded UI resources to text/html;profile=mcp-app.
  • Updated the corresponding mcp.ResourceContents MIME types to match.

@mattdholloway mattdholloway merged commit 2b55513 into main Feb 24, 2026
16 checks passed
@mattdholloway mattdholloway deleted the update-mcp-apps-mime-type branch February 24, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants