Skip to content

Conversation

@antonpk1
Copy link
Collaborator

Summary

  • Adds mimeType to the resource declaration (third parameter of registerResource()) in all 9 example servers
  • Updates the quickstart documentation to show the correct pattern

Background

According to the spec, mimeType should be present in both:

  1. The resource declaration (when registering the resource)
  2. The resource content (when returning ReadResourceResult)

Previously, mimeType was only present in the resource content but missing from the resource declaration.

Test plan

  • All examples build successfully with npm run build:all

🤖 Generated with Claude Code

According to spec, mimeType should be present in both the resource
declaration and the resource content. This adds the missing mimeType
to the registerResource() declaration (third parameter) in all example
servers and the quickstart documentation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@antonpk1 antonpk1 force-pushed the fix/add-mimetype-to-resource-declarations branch from 528f314 to 98db6a6 Compare December 13, 2025 15:47
@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 13, 2025

Open in StackBlitz

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/ext-apps@149

commit: 568a836

…esource-declarations

# Conflicts:
#	examples/basic-server-react/server.ts
#	examples/basic-server-vanillajs/server.ts
#	examples/budget-allocator-server/server.ts
#	examples/customer-segmentation-server/server.ts
#	examples/scenario-modeler-server/server.ts
@ochafik ochafik merged commit 8550545 into main Dec 15, 2025
8 of 9 checks passed
@ochafik ochafik deleted the fix/add-mimetype-to-resource-declarations branch December 15, 2025 12:09
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.

3 participants