Skip to content

Add MCP 2026 task HTTP routing headers#184

Closed
leehack wants to merge 1 commit into
spec/2026-task-extension-wirefrom
spec/2026-task-http-routing
Closed

Add MCP 2026 task HTTP routing headers#184
leehack wants to merge 1 commit into
spec/2026-task-extension-wirefrom
spec/2026-task-http-routing

Conversation

@leehack
Copy link
Copy Markdown
Owner

@leehack leehack commented May 31, 2026

Summary

  • map tasks/get, tasks/update, and tasks/cancel to Mcp-Name from params.taskId for 2026 stateless HTTP requests
  • enforce the same required task id name header on the Streamable HTTP server
  • add client/server regression tests for task HTTP metadata routing

Validation

  • dart analyze
  • dart test test/client/streamable_https_test.dart test/server/streamable_https_test.dart test/types/tasks_extension_test.dart
  • dart test -j 1
  • git diff --check

@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 85.75%. Comparing base (a9df586) to head (61600d5).

Additional details and impacted files
@@                        Coverage Diff                        @@
##           spec/2026-task-extension-wire     #184      +/-   ##
=================================================================
+ Coverage                          85.74%   85.75%   +0.01%     
=================================================================
  Files                                 46       46              
  Lines                               8234     8242       +8     
=================================================================
+ Hits                                7060     7068       +8     
  Misses                              1174     1174              
Flag Coverage Δ
unittests 85.75% <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 leehack force-pushed the spec/2026-task-extension-wire branch from d66853b to a9df586 Compare May 31, 2026 17:12
@leehack leehack force-pushed the spec/2026-task-http-routing branch from 2db6c28 to 61600d5 Compare May 31, 2026 17:13
@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 #267 (MCP 2026 feature foundation); 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