feat(core): update protocol definitions to use MCPLatest for draft specs#281
Open
anubhav756 wants to merge 1 commit into
Open
feat(core): update protocol definitions to use MCPLatest for draft specs#281anubhav756 wants to merge 1 commit into
anubhav756 wants to merge 1 commit into
Conversation
anubhav756
force-pushed
the
anubhav-sep-2243
branch
from
July 3, 2026 08:30
408d92c to
65fba9a
Compare
anubhav756
force-pushed
the
anubhav-mcp-latest
branch
from
July 3, 2026 08:41
838a1bc to
4276bd6
Compare
anubhav756
force-pushed
the
anubhav-mcp-latest
branch
from
July 3, 2026 22:40
4276bd6 to
13da1cb
Compare
dishaprakash
reviewed
Jul 6, 2026
| // Initialize the Transport based on the selected Protocol. | ||
| var transportErr error | ||
|
|
||
| if slices.Contains(GetSupportedMcpVersions(), string(tc.protocol)) && tc.protocol != MCPLatest { |
Contributor
There was a problem hiding this comment.
Are we removing this warning SDK - wide?
If this is only because of the new draft spec being latest, should we keep MCPLatest as the latest released version?
| switch version { | ||
| case MCPDRAFT2026v1: | ||
| case MCPLatest: | ||
| return mcp20260618.New(tc.baseURL, tc.httpClient, tc.clientName, tc.clientVersion) |
Contributor
There was a problem hiding this comment.
This may cause a breakage when we bump the MCPLatest variable in the future. Can we use the explicit name (MCPDRAFT2026v1) instead?
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.
Description
This PR introduces user-facing protocol version aliases to simplify configuration and abstract away explicit date-based versions.
Protocol.MCP_LATESTmaps to the stable2025-11-25release.Protocol.MCP_DRAFTmaps to the experimental 2026 Draft release.