Skip to content

mcp: add a second-step fallback for legacy SSE - #249914

Merged
Connor Peet (connor4312) merged 1 commit into
mainfrom
connor4312/streamable-http-more-fallback
May 27, 2025
Merged

Connor Peet (connor4312) merged 1 commit into
mainfrom
connor4312/streamable-http-more-fallback

Conversation

@connor4312

Copy link
Copy Markdown
Member

Refs #246753 (comment) / antfu/nuxt-mcp-dev#21

This server implementation was legacy SSE but (incorrectly) returned a
2xx from a POST request. This PR adds a second attempt at falling back
to SSE to solve this. Streamable HTTP should never emit an 'endpoint'
event, so if we see this then we will now also trigger a fallback.

This is less correct than the normal fallback route for a well-behaving
server (messages could get lost or reordered) but in the current
initialization behavior this works alright.

Refs https://github.com/microsoft/vscode/issues/246753#issuecomment-2913275158 / antfu/nuxt-mcp-dev#21

This server implementation was legacy SSE but (incorrectly) returned a
2xx from a POST request. This PR adds a second attempt at falling back
to SSE to solve this. Streamable HTTP should never emit an 'endpoint'
event, so if we see this then we will now also trigger a fallback.

This is less correct than the normal fallback route for a well-behaving
server (messages could get lost or reordered) but in the current
initialization behavior this works alright.
@connor4312
Connor Peet (connor4312) deleted the connor4312/streamable-http-more-fallback branch May 27, 2025 18:16
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Jul 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants