test: support dual-server E2E integration tests and protocol negotiation fallbacks#413
Open
anubhav756 wants to merge 2 commits into
Open
test: support dual-server E2E integration tests and protocol negotiation fallbacks#413anubhav756 wants to merge 2 commits into
anubhav756 wants to merge 2 commits into
Conversation
anubhav756
changed the base branch from
anubhav-draft-negotiation
to
anubhav-sep-2243
July 17, 2026 16:02
anubhav756
force-pushed
the
anubhav-test-infra
branch
from
July 17, 2026 16:14
4e4fd46 to
91f49d9
Compare
anubhav756
force-pushed
the
anubhav-test-infra
branch
5 times, most recently
from
July 17, 2026 22:54
ee50bc8 to
618c662
Compare
anubhav756
force-pushed
the
anubhav-test-infra
branch
from
July 17, 2026 23:03
618c662 to
3c0859f
Compare
anubhav756
force-pushed
the
anubhav-test-infra
branch
from
July 18, 2026 04:35
8ae0d7a to
5106002
Compare
anubhav756
force-pushed
the
anubhav-test-infra
branch
from
July 19, 2026 12:12
5106002 to
8c56f1a
Compare
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.
Overview
This PR updates the E2E testing infrastructure to support running integration tests against multiple parallel server configurations, specifically:
5000).5001) run with the--enable-draft-specsflag.By verifying the SDK's behavior against both environments, we ensure robust fallback and negotiation behavior when newer protocol drafts are configured.
Changes
1. E2E Test Infrastructure & Multi-Server Orchestration
ToolboxServer1on port5000(stable).ToolboxServer2on port5001(with--enable-draft-specs).killServerto gracefully terminate both server processes and clean up assets.2. E2E Test Suites
@toolbox-sdk/coreand@toolbox-sdk/adkto run all test cases against both servers (localhost:5000andlocalhost:5001).Protocol Configuration E2E Testswhich:MCP_v20251125) if the target server does not support the client's configured draft protocol (MCP_DRAFT_2026_v1).3. Protocol & Client Updates
ToolboxClient's constructor that alerted when initializing with a version other thanMCP_LATEST.Note
This PR updates
Protocol.MCP_LATESTto point toProtocol.MCP_DRAFT_2026_v1. This will be updated in the next PR down the chain (#394).4. GCS Download Path Fix
vprefix from the version directory, resolving download failures during local test runs.5. Unit Test Adjustments
MockTransportin client/tool unit tests with a mockprotocolVersionproperty to satisfy current transport interface requirements.MCP_LATESTconsole warnings.Note
This PR mirrors Python SDK changes from googleapis/mcp-toolbox-sdk-python#706.