Skip to content

Derive stateless HTTP headers from nested metadata#229

Closed
leehack wants to merge 2 commits into
spec/stateless-http-session-header-sanitizationfrom
spec/stateless-http-nested-meta-headers
Closed

Derive stateless HTTP headers from nested metadata#229
leehack wants to merge 2 commits into
spec/stateless-http-session-header-sanitizationfrom
spec/stateless-http-nested-meta-headers

Conversation

@leehack
Copy link
Copy Markdown
Owner

@leehack leehack commented Jun 1, 2026

Summary

  • derive MCP 2026 Streamable HTTP protocol/header behavior from params._meta when typed message meta is absent
  • ensure direct raw JSON-RPC transport sends still emit MCP-Protocol-Version, Mcp-Method, and Mcp-Name headers
  • ensure nested-metadata stateless sends strip legacy session headers

Validation

  • dart format .
  • dart analyze
  • dart test test/client/streamable_https_test.dart --name "send derives 2026 stateless HTTP headers from nested metadata"
  • dart test test/client/streamable_https_test.dart
  • dart test test/mcp_2026_07_28_test.dart
  • dart test
  • git diff --check
  • (cd packages/mcp_dart_cli && dart run mcp_dart_cli:mcp_dart conformance --suite all --json)

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.35%. Comparing base (2d3d1ca) to head (cd738ad).

Additional details and impacted files
@@                               Coverage Diff                                @@
##           spec/stateless-http-session-header-sanitization     #229   +/-   ##
================================================================================
  Coverage                                            88.35%   88.35%           
================================================================================
  Files                                                   47       47           
  Lines                                                 9273     9277    +4     
================================================================================
+ Hits                                                  8193     8197    +4     
  Misses                                                1080     1080           
Flag Coverage Δ
unittests 88.35% <100.00%> (+<0.01%) ⬆️

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 #270 (JSON-RPC metadata hardening); 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