Commit 5cfc840
fix: return 405 for standalone SSE GET requests
The MCP Go SDK sends a GET request for standalone SSE streams during
Connect(). Without this, mcp-go creates an orphan session and blocks
indefinitely, causing ~60s hangs for every MCP connection. This server
doesn't use server-initiated features (sampling, elicitation), so 405
is the correct MCP-spec-compliant response.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8c1a0c7 commit 5cfc840
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
343 | 347 | | |
344 | 348 | | |
345 | 349 | | |
| |||
0 commit comments