Skip to content

Conversation

@jba
Copy link
Contributor

@jba jba commented Jul 23, 2025

If the getServer function passed to NewSSEHandler or NewStreamableHTTPHandler returns nil, serve a 400 instead of panicking.

Fixes #161.

If the getServer function passed to NewSSEHandler or
NewStreamableHTTPHandler returns nil, serve a 400 instead of panicking.
@jba jba requested a review from samthanawalla July 23, 2025 20:41
@jba jba enabled auto-merge (squash) July 23, 2025 20:41
@jba jba merged commit c879ac3 into modelcontextprotocol:main Jul 24, 2025
3 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.

Nil pointer dereference when trying MCP SSE example

2 participants