Files
github--github-mcp-server/pkg/http/headers
Sam Morrow 3085e59f66 Reject unsupported subscription streams (#3073)
* fix(http): reject unsupported subscription streams

Use the Mcp-Method header to reject subscriptions/listen with the spec-defined 404 Method Not Found response instead of opening an idle SSE stream. Preserve SDK validation for missing or mismatched headers.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 06d5dda1-4086-4996-8d18-152e45e611b0

* refactor(http): clarify subscription rejection

Document why header validation precedes the unsupported-method rejection and use named SDK error constants in tests.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 06d5dda1-4086-4996-8d18-152e45e611b0

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 06d5dda1-4086-4996-8d18-152e45e611b0
2026-08-17 13:42:34 +02:00
..
2026-02-06 15:33:41 +01:00
2026-02-06 15:33:41 +01:00