Skip to content

mcp: accept parameterized Content-Type types - #890

Merged
jba merged 3 commits into
modelcontextprotocol:mainfrom
kalvinnchau:main
Apr 23, 2026
Merged

jba merged 3 commits into
modelcontextprotocol:mainfrom
kalvinnchau:main

Conversation

@kalvinnchau

Copy link
Copy Markdown
Contributor

Use a shared helper for Content-Type parsing in streamable transport request validation and client response handling.

Follow up to #853, where we did this for Accept headers.

This allows the streamable mcp server to validate the following header Content-Type: application/json;charset=utf-8

@kalvinnchau kalvinnchau changed the title mcp: simplify Content-Type parsing in streamable transport mcp: accept parameterized Content-Type types Apr 9, 2026
Comment thread mcp/streamable.go Outdated
Use a shared helper for Content-Type parsing in streamable transport
request validation and client response handling.
@maciej-kisiel
maciej-kisiel requested a review from jba April 23, 2026 12:42
@jba
jba merged commit 35f1b07 into modelcontextprotocol:main Apr 23, 2026
9 checks passed
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.

4 participants