feat(core): add support for MCP 2026 stateless draft and auto-negotiation fallback#704
Merged
Merged
Conversation
9511caf to
261bb86
Compare
This reverts commit ee00b9e.
…stable and draft MCP versions
e821d64 to
caf7b85
Compare
Contributor
Author
|
This PR is rolled-up in #703 to override some of the intermediate changes and make it easier to review. |
anubhav756
added a commit
that referenced
this pull request
Jul 1, 2026
…tion fallback (#704) * feat(core): add support for MCP 2026 stateless draft and auto-negotiation fallback * fix: Keep the MCP_LATEST to stable version but point MCP_DRAFT to 2026 draft * chore: fix integration tests * chore: delint * chore: fix tests * test: increase integration test coverage * chore: delint * test: integrate the draft build with dual testing modes * fix(tests): correct pytest async fixtures and auto-format with black/isort * fix(tests): use pytest.fixture for sync fixtures and fix isort formatting * fix(tests): update binary URL for draft testing in all packages * chore: fix integration tests url and lint errors * chore: test with mcp-v202606 branch to fix unknown flag error * fix(test): core fallback and adk toolset import * chore: format files * Revert "chore: format files" This reverts commit ee00b9e. * chore(test): fix line length in bucket name selection * chore: bump TOOLBOX_VERSION to v1.6.0 * test: parameterize integration tests to run comprehensively for both stable and draft MCP versions
anubhav756
added a commit
that referenced
this pull request
Jul 1, 2026
…tion fallback (#704) * feat(core): add support for MCP 2026 stateless draft and auto-negotiation fallback * fix: Keep the MCP_LATEST to stable version but point MCP_DRAFT to 2026 draft * chore: fix integration tests * chore: delint * chore: fix tests * test: increase integration test coverage * chore: delint * test: integrate the draft build with dual testing modes * fix(tests): correct pytest async fixtures and auto-format with black/isort * fix(tests): use pytest.fixture for sync fixtures and fix isort formatting * fix(tests): update binary URL for draft testing in all packages * chore: fix integration tests url and lint errors * chore: test with mcp-v202606 branch to fix unknown flag error * fix(test): core fallback and adk toolset import * chore: format files * Revert "chore: format files" This reverts commit ee00b9e. * chore(test): fix line length in bucket name selection * chore: bump TOOLBOX_VERSION to v1.6.0 * test: parameterize integration tests to run comprehensively for both stable and draft MCP versions
anubhav756
added a commit
that referenced
this pull request
Jul 2, 2026
…tion fallback (#704) * feat(core): add support for MCP 2026 stateless draft and auto-negotiation fallback * fix: Keep the MCP_LATEST to stable version but point MCP_DRAFT to 2026 draft * chore: fix integration tests * chore: delint * chore: fix tests * test: increase integration test coverage * chore: delint * test: integrate the draft build with dual testing modes * fix(tests): correct pytest async fixtures and auto-format with black/isort * fix(tests): use pytest.fixture for sync fixtures and fix isort formatting * fix(tests): update binary URL for draft testing in all packages * chore: fix integration tests url and lint errors * chore: test with mcp-v202606 branch to fix unknown flag error * fix(test): core fallback and adk toolset import * chore: format files * Revert "chore: format files" This reverts commit ee00b9e. * chore(test): fix line length in bucket name selection * chore: bump TOOLBOX_VERSION to v1.6.0 * test: parameterize integration tests to run comprehensively for both stable and draft MCP versions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for the upcoming MCP 2026 stateless draft (
DRAFT-2026-v1) and introduces protocol auto-negotiation fallback to ensure smooth backward compatibility with older servers.MCP_DRAFTconstant pointing toDRAFT-2026-v1alongsideMCPandMCP_LATEST.UnsupportedProtocolVersionError, the client manually triggersProtocolNegotiationErrorand falls back to the server's preferred version.test_protocol_fallback_e2eto verify negotiation down to older versions.core,adk,langchain, andllamaindexintegrations.