Skip to content

Conversation

@zhxie
Copy link
Contributor

@zhxie zhxie commented Oct 30, 2025

Some MCP servers do not support SSE, but when receiving a request, they return 400 Bad Request or 404 Not Found instead of the standard 405 Method Not Allowed. The TypeScript and Python SDK ignore this error, while the Go SDK terminates the session. This patch addresses the issue in the non-strict mode.

Fixed #610

@zhxie
Copy link
Contributor Author

zhxie commented Oct 30, 2025

CC @findleyr

findleyr
findleyr previously approved these changes Oct 31, 2025
@findleyr
Copy link
Contributor

Test failure looks real (albeit the error message is missing from the logs?)

I think there's another test that asserts on behavior given a 400. PTAL and let me know if it's not straightforward to fix.

@zhxie
Copy link
Contributor Author

zhxie commented Nov 3, 2025

@findleyr Fixed. It looks like that approval is required to run the CI.

Signed-off-by: Xie Zhihao <[email protected]>
@findleyr findleyr merged commit d297272 into modelcontextprotocol:main Nov 3, 2025
5 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.

Relax SSE connection response handling

2 participants