Skip to content

Add client subscription listen support#207

Closed
leehack wants to merge 1 commit into
spec/2026-discovery-version-retryfrom
spec/2026-client-subscriptions-listen
Closed

Add client subscription listen support#207
leehack wants to merge 1 commit into
spec/2026-discovery-version-retryfrom
spec/2026-client-subscriptions-listen

Conversation

@leehack
Copy link
Copy Markdown
Owner

@leehack leehack commented May 31, 2026

Summary

  • add a client-side subscriptions/listen handle that correlates stream notifications by subscription id
  • validate subscription acknowledgments and notification filters before dispatching stream events
  • preserve _meta on typed list-changed notifications so stdio clients can demultiplex subscription streams

Validation

  • dart analyze
  • dart test test/types/subscriptions_test.dart
  • dart test test/mcp_2026_07_28_test.dart --name "client .*subscription|listenSubscriptions"
  • dart test
  • dart pub global run coverage:test_with_coverage
  • dart run bin/mcp_dart.dart conformance --suite all --json
  • 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 87.94%. Comparing base (152fd25) to head (e867775).

Additional details and impacted files
@@                          Coverage Diff                          @@
##           spec/2026-discovery-version-retry     #207      +/-   ##
=====================================================================
+ Coverage                              87.65%   87.94%   +0.28%     
=====================================================================
  Files                                     47       47              
  Lines                                   8821     8957     +136     
=====================================================================
+ Hits                                    7732     7877     +145     
+ Misses                                  1089     1080       -9     
Flag Coverage Δ
unittests 87.94% <100.00%> (+0.28%) ⬆️

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-client-subscriptions-listen branch from 5d7d6d7 to e867775 Compare May 31, 2026 23:23
@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