-
Notifications
You must be signed in to change notification settings - Fork 305
Fix: Add Session ID and Header Support to SSE Transport (#660) #661
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
Merged
deathbyknowledge
merged 15 commits into
cloudflare:main
from
MCPCat:feat/mcp-sse-header-parity
Nov 25, 2025
Merged
Changes from 7 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
bb22203
feat: add header and auth parity to SSE transport in MCP
naji247 2a4fc7b
chore: add changeset for SSE transport fixes
naji247 0411599
fix: remove transport initialization check
naji247 d767e73
refactor: update McpSSETransport to use options object for constructo…
naji247 4effb09
fix: revert auth inclusion on SSE transport
naji247 3702f31
feat: implement header and auth echo tool for SSE and Streamable HTTP…
naji247 acb8a95
Merge branch 'main' into feat/mcp-sse-header-parity
naji247 3497dc4
refactor: simplify McpSSETransport initialization by using getCurrent…
naji247 65c36f5
refactor: replace buildMessageExtraInfo with direct MessageExtraInfo …
naji247 9b2d2af
Merge branch 'main' into feat/mcp-sse-header-parity
naji247 3f1e4f4
fix: ts check errors
naji247 2eb4334
Merge branch 'main' into feat/mcp-sse-header-parity
naji247 2289674
patch: remove header deletions
naji247 67a42fe
Merge upstream/main into feat/mcp-sse-header-parity
naji247 f0e7d86
fix: typechecks
naji247 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| "agents": patch | ||
| --- | ||
|
|
||
| fix: add session ID and header support to SSE transport | ||
|
|
||
| The SSE transport now properly forwards session IDs and request headers to MCP message handlers, achieving closer header parity with StreamableHTTP transport. This allows MCP servers using SSE to access request headers for session management. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.