| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The constant in src/Common/McpHttpHeaders.cs now gates more than just whether the standard MCP request headers are required: it also gates whether resources/read returns InvalidParams (-32602) instead of the legacy ResourceNotFound (-32002). Its old name referred only to headers, and the `Min` prefix wrongly implied an ordered/`>=` comparison even though the helpers do exact ordinal matches against a single value. Rename the constant to `DraftProtocolVersion` and update its XML docs to describe both gated behaviors. Pure rename plus doc clarification -- no behavior change. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Renames the draft protocol version gate constant in McpHttpHeaders to better reflect its broadened role (not just header enforcement) and clarifies the associated XML documentation.
Changes:
| File | Description |
|---|---|
| src/Common/McpHttpHeaders.cs | Renames the draft protocol version gate constant and updates documentation/references accordingly. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM!
Sorry, something went wrong.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
Follow-up cleanup to #1558.
That PR added a second use of the MinVersionForStandardHeaders constant in src/Common/McpHttpHeaders.cs — it now gates both:
The old name referred only to headers, so it no longer reflects the constant's broader role. The Min... prefix was also misleading: it implied an ordered/>= comparison, even though the helpers (SupportsStandardHeaders, UseInvalidParamsForMissingResource) just do exact ordinal matches against a single-element set.
Changes
Not changed
Validation