Skip to content

Enforce MCP 2026 stateless POST-only transport#193

Closed
leehack wants to merge 1 commit into
spec/2026-x-mcp-header-number-rejectionfrom
spec/2026-stateless-post-only
Closed

Enforce MCP 2026 stateless POST-only transport#193
leehack wants to merge 1 commit into
spec/2026-x-mcp-header-number-rejectionfrom
spec/2026-stateless-post-only

Conversation

@leehack
Copy link
Copy Markdown
Owner

@leehack leehack commented May 31, 2026

Summary

  • skip legacy Streamable HTTP GET SSE setup and DELETE session termination when the client transport is using an MCP 2026 stateless protocol version
  • route every stateless non-POST server request through the POST-only rejection path with Allow: POST
  • cover low-level and high-level Streamable HTTP behavior while preserving 2025 session semantics

Validation

  • dart format .
  • dart analyze
  • dart test test/client/streamable_https_test.dart
  • dart test test/server/streamable_https_test.dart
  • dart test test/server/streamable_mcp_server_test.dart
  • dart test
  • dart pub global run coverage:test_with_coverage

@codecov
Copy link
Copy Markdown

codecov Bot commented May 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.55%. Comparing base (4bb3d95) to head (b886e8d).

Additional details and impacted files
@@                             Coverage Diff                             @@
##           spec/2026-x-mcp-header-number-rejection     #193      +/-   ##
===========================================================================
- Coverage                                    86.57%   86.55%   -0.02%     
===========================================================================
  Files                                           46       46              
  Lines                                         8563     8570       +7     
===========================================================================
+ Hits                                          7413     7418       +5     
- Misses                                        1150     1152       +2     
Flag Coverage Δ
unittests 86.55% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@leehack
Copy link
Copy Markdown
Owner Author

leehack commented Jun 1, 2026

Closing this draft micro PR because the RC spec work has been consolidated into a smaller reviewable stack. This change is preserved in #268 (MCP 2026 transport enforcement); the consolidated tip is tree-identical to the previous micro-stack tip.

@leehack leehack closed this Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant