Skip to content

fix(transport): cache tool headers when draining SSE replies - #1539

Draft
nuzzles wants to merge 2 commits into
modelcontextprotocol:mainfrom
nuzzles:simbleau/fix-sse-tool-header-cache
Draft

nuzzles wants to merge 2 commits into
modelcontextprotocol:mainfrom
nuzzles:simbleau/fix-sse-tool-header-cache

Conversation

@nuzzles

@nuzzles nuzzles commented Dec 1, 2026

Copy link
Copy Markdown
Member

Fixes #1520.

Reuse the existing tool-header cache update when forwarding queued SSE replies during stream shutdown or recovery.

Validated with the library and Streamable HTTP client concurrency tests, plus a local regression check for a queued tools/list reply.

@github-actions github-actions Bot added T-core Core library changes T-transport Transport layer changes labels Dec 1, 2026
@github-actions
github-actions Bot requested a review from connor4312 December 1, 2026 18:32
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

@connor4312 is on triage rotation this week and is the reviewer for this one.

Labels come from the PR labeler. Please review the change.

Automated triage. Labels are a first pass and the assigned maintainer has the final say.

@nuzzles

nuzzles commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Can't mark the PR as ready, but it is.

cc: @DaleSeo

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-core Core library changes T-transport Transport layer changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Streamable HTTP client: tools/list replies drained at stream end skip the x-mcp-header cache, so Mcp-Param-* headers go missing

1 participant