Skip to content

mcp: accept parameterized Content-Type types #890

Open
kalvinnchau wants to merge 2 commits intomodelcontextprotocol:mainfrom
kalvinnchau:main
Open

mcp: accept parameterized Content-Type types #890
kalvinnchau wants to merge 2 commits intomodelcontextprotocol: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.
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