Add MCP 2026 stateless HTTP headers#179
Closed
leehack wants to merge 1 commit into
Closed
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## spec/2026-07-28-rc #179 +/- ##
======================================================
+ Coverage 85.20% 85.32% +0.11%
======================================================
Files 45 45
Lines 7579 7770 +191
======================================================
+ Hits 6458 6630 +172
- Misses 1121 1140 +19
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
e49da5c to
4a81430
Compare
5e69d19 to
b1bad7e
Compare
Owner
Author
|
Closing this draft micro PR because the RC spec work has been consolidated into a smaller reviewable stack. This change is preserved in #267 (MCP 2026 feature foundation); the consolidated tip is tree-identical to the previous micro-stack tip. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MCP-Protocol-Version,Mcp-Method,Mcp-Name, and presentMcp-Param-*headersStreamableMcpServerto route 2026 stateless POST requests without anMcp-Session-Id, while preserving legacy unknown-session behavior405 Method Not Allowedthrough the transportStack
Base: #178 (
spec/2026-07-28-rc)This is the second PR in the MCP 2026-07-28 RC stack for #177.
Notes
This PR focuses on the standard Streamable HTTP stateless/header behavior. Full tool-schema-driven
x-mcp-headerdiscovery/filtering for client-emittedMcp-Param-*headers can land as a separate follow-up if we want that isolated for review.Validation
dart analyzedart test test/server/streamable_https_test.dart test/client/streamable_https_test.dart test/server/streamable_mcp_server_test.dart test/mcp_2026_07_28_test.dartdart test -j 1