Skip to content

Add MCP 2026 RC discovery foundation#178

Closed
leehack wants to merge 1 commit into
dev/2026-07-28-rcfrom
spec/2026-07-28-rc
Closed

Add MCP 2026 RC discovery foundation#178
leehack wants to merge 1 commit into
dev/2026-07-28-rcfrom
spec/2026-07-28-rc

Conversation

@leehack
Copy link
Copy Markdown
Owner

@leehack leehack commented May 31, 2026

Summary

  • add MCP 2026-07-28 RC version constants, stateless metadata helpers, and server/discover wire types
  • add server-side server/discover handling and stateless request metadata validation
  • add opt-in client discovery and stateless metadata propagation while keeping stable initialize behavior available
  • add regression coverage for discovery, stateless request metadata, and unsupported protocol errors

Stacked PR Plan

This is the parent PR for issue #177. Follow-up PRs should target this branch until it lands.

Planned stack:

  1. Discovery foundation (this PR)
  2. Streamable HTTP 2026 stateless/header behavior
  3. subscriptions/listen
  4. MRTR / InputRequiredResult
  5. task extension compatibility and dev release prep

Release Note

Do not merge or publish as stable until the official MCP 2026-07-28 spec is released. This PR is intended for RC/dev review only.

Validation

  • dart analyze
  • dart test test/mcp_2026_07_28_test.dart
  • dart test test/server/streamable_mcp_server_test.dart
  • dart test -j 1

Fixes part of #177.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 31, 2026

Codecov Report

❌ Patch coverage is 98.75776% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.20%. Comparing base (d0f706c) to head (4a81430).

Files with missing lines Patch % Lines
lib/src/server/server.dart 97.77% 1 Missing ⚠️
lib/src/types/json_rpc.dart 93.33% 1 Missing ⚠️
Additional details and impacted files
@@                  Coverage Diff                  @@
##           dev/2026-07-28-rc     #178      +/-   ##
=====================================================
+ Coverage              84.92%   85.20%   +0.28%     
=====================================================
  Files                     45       45              
  Lines                   7421     7579     +158     
=====================================================
+ Hits                    6302     6458     +156     
- Misses                  1119     1121       +2     
Flag Coverage Δ
unittests 85.20% <98.75%> (+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 changed the base branch from main to dev/2026-07-28-rc May 31, 2026 15:51
@leehack leehack force-pushed the spec/2026-07-28-rc branch from e49da5c to 4a81430 Compare May 31, 2026 17:03
@leehack leehack marked this pull request as ready for review June 1, 2026 08:56
@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