Skip to content

Support task metadata on elicitation requests#253

Closed
leehack wants to merge 1 commit into
spec/image-content-theme-parse-onlyfrom
spec/elicit-request-task-compat
Closed

Support task metadata on elicitation requests#253
leehack wants to merge 1 commit into
spec/image-content-theme-parse-onlyfrom
spec/elicit-request-task-compat

Conversation

@leehack

@leehack leehack commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • add current-spec task metadata support to ElicitRequest params
  • keep 2026 MRTR embedded elicitation/create input requests free of legacy task metadata
  • add stable and draft regression coverage for typed round-trip and malformed MRTR input

Spec context

MCP 2025-11-25 ElicitRequestFormParams/ElicitRequestURLParams include legacy task augmentation, while the 2026 draft embedded ElicitRequest params do not include task. This keeps stable/current round-trip support while preserving the 2026 core MRTR shape.

Part of #177.

Tests

  • dart format .
  • dart test test/types_test.dart test/mcp_2025_11_25_test.dart test/mcp_2026_07_28_test.dart test/elicitation_test.dart
  • git diff --check
  • dart analyze
  • dart test

@codecov

codecov Bot commented Jun 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.49%. Comparing base (6357227) to head (703a7dc).

Additional details and impacted files
@@                         Coverage Diff                          @@
##           spec/image-content-theme-parse-only     #253   +/-   ##
====================================================================
  Coverage                                88.48%   88.49%           
====================================================================
  Files                                       47       47           
  Lines                                     9353     9358    +5     
====================================================================
+ Hits                                      8276     8281    +5     
  Misses                                    1077     1077           
Flag Coverage Δ
unittests 88.49% <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 commented Jun 1, 2026

Copy link
Copy Markdown
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 #271 (type/schema validation); 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