| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
There was a problem hiding this comment.
Rejects unsupported subscriptions/listen requests to prevent idle SSE streams.
Changes:
| File | Description |
|---|---|
| pkg/http/headers/headers.go | Defines the MCP method header. |
| pkg/http/handler.go | Rejects unsupported subscription streams. |
| pkg/http/handler_test.go | Verifies rejection and header validation. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
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
| Back | FazBrowse Home | New Git URL |
Summary
Reject subscriptions/listen requests instead of opening an idle SSE stream when the HTTP server cannot provide change notifications.
Why
The remote server exposes a static MCP catalog and does not emit change notifications. Under MCP 2026-07-28, accepting subscriptions/listen would leave clients on a stream that cannot deliver useful events.
N/A — no linked issue.
What changed
MCP impact
MCP transport behavior changes for subscriptions/listen; no tool schemas changed.
Prompts tested (tool changes only)
Security / limits
Tool renaming
Lint & tests
Docs