Skip to content

Enforce MCP 2026 task extension capabilities#185

Closed
leehack wants to merge 1 commit into
spec/2026-task-http-routingfrom
spec/2026-task-extension-capabilities
Closed

Enforce MCP 2026 task extension capabilities#185
leehack wants to merge 1 commit into
spec/2026-task-http-routingfrom
spec/2026-task-extension-capabilities

Conversation

@leehack
Copy link
Copy Markdown
Owner

@leehack leehack commented May 31, 2026

Summary

  • enforce task extension capability checks for stateless tasks/get, tasks/update, tasks/cancel, and task subscriptions
  • reject removed legacy tasks/list and tasks/result methods under stateless MCP 2026 metadata
  • keep legacy task execution metadata and task request hints out of stateless tool flows

Spec context

Validation

  • dart format .
  • dart analyze
  • dart test test/mcp_2026_07_28_test.dart
  • dart test test/mcp_2025_11_25_test.dart test/server/tasks_test.dart test/client/task_client_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

❌ Patch coverage is 92.40506% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.00%. Comparing base (61600d5) to head (c9a341c).

Files with missing lines Patch % Lines
lib/src/server/mcp_server.dart 86.36% 3 Missing ⚠️
lib/src/server/server.dart 94.73% 3 Missing ⚠️
Additional details and impacted files
@@                       Coverage Diff                       @@
##           spec/2026-task-http-routing     #185      +/-   ##
===============================================================
+ Coverage                        85.75%   86.00%   +0.24%     
===============================================================
  Files                               46       46              
  Lines                             8242     8294      +52     
===============================================================
+ Hits                              7068     7133      +65     
+ Misses                            1174     1161      -13     
Flag Coverage Δ
unittests 86.00% <92.40%> (+0.24%) ⬆️

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-capabilities branch from a15bd6d to c9a341c Compare May 31, 2026 17:46
@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