Skip to content

Fix URI template derivation and lookup #530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

eiriktsarpalis
Copy link
Member

Makes the following changes:

  • When deriving a resource URI template, converts the host component to lowercase.
  • Defaults the mimetype to "application/octetstream".

This should mitigate some of the issues described in #516.

@eiriktsarpalis eiriktsarpalis changed the title Use lowercase host in resource URI template derivation. Fix URI template derivation and lookup Jun 23, 2025
@eiriktsarpalis eiriktsarpalis merged commit 0b26b7b into modelcontextprotocol:main Jun 23, 2025
7 checks passed
@eiriktsarpalis eiriktsarpalis deleted the use-lowercase-derived-uritemplaes branch June 23, 2025 16:49
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.

MCP Resources without parameters don't work without mime-type specified
3 participants