Repository navigation
Closed
Labels
Description
Preamble
Title: Semantic Versioning for MCP SpecificationAuthors: Anurag Pant, Surbhi Bansal
Status: Draft
Type: Standards Track
Created: 08/28/2025
Abstract
Specification versioning is a critical aspect of API and service design that enables evolution while maintaining compatibility. This SEP proposes adopting semantic versioning (SemVer 2.0.0) for Model Context Protocol, replacing the current YYYY-MM-DD version format.Motivation
Current Model Context Protocol versioning strategy relies on a quarterly release schedule withYYYY-MM-DD version format. This presents several critical limitations:- Lack of Semantic Meaning: Date-based versions provide no information about the nature of changes, making it impossible for developers to assess upgrade risk or compatibility impact.
- Ecosystem Fragmentation: Without clear version relationships, SDK implementations may diverge in their protocol support, leading to compatibility issues across the ecosystem.
- Developer Experience: Developers cannot easily determine if an upgrade will introduce breaking changes or simply add new features.
2025-03-26 and removed in 2025-06-18) and a lot of churn to ensure support for the most recent specification.This SEP addresses these limitations by establishing semantic versioning as the foundation for protocol evolution.
- MCP would benefit from sticking to a standardized release format with a formal specification that is popular among developers. Sticking to a formal specification allows MCP contributors to avoid solving for problems that have already been addressed: https://semver.org/
- Promoting this versioning strategy will advocate a mindset shift wherein a new major version is released for the specification only when the breaking changes have reached a critical mass. Until then, minor version releases will be used to incrementally add features to the protocol.
- The ability to do incremental minor version releases will make it easier to launch backward compatible features quickly rather than waiting on 3 month release cycle.
Specification
Version Format
The Model Context Protocol SHALL adopt Semantic Versioning 2.0.0 (https://semver.org/) with the format:MAJOR.MINOR.PATCH[-PRERELEASE][+BUILD]Where:
- MAJOR: Incremented for incompatible API changes
- MINOR: Incremented for backward-compatible functionality additions
- PATCH: Incremented for backward-compatible bug fixes
- PRERELEASE: Optional identifier for pre-release versions (alpha, beta, rc)
- BUILD: Optional build metadata
Specification Version Semantics
Major Version Changes (X.0.0)
Examples of what could constitute a major version change:- Breaking changes to message formats or schemas
- Removal of required fields or capabilities
- Changes to core protocol behavior that break existing implementations
- Removal of deprecated features after appropriate notice period
Minor Version Changes (X.Y.0)
Examples of what could constitute a minor version change:- Addition of new message types or capabilities
- Addition of optional fields to existing messages
- New features that maintain backward compatibility
- Deprecation notices for future removal
Patch Version Changes (X.Y.Z)
Examples of what could constitute a patch version change:- Bug fixes that don't change the API
- Documentation clarifications
- Schema corrections that don't affect behavior
- Security fixes that maintain compatibility
Specification Version Handling in SDK Implementation
SDK releases may provide compatibility across a range of specification versions by implementing version-aware behavior. SDKs should conditionally implement features based on the negotiated specification version. For example, an SDK might need to add specific field values only when communicating with servers supporting version 1.2.0 or higher. When implementing version-dependent logic, SDKs should perform version comparisons following Semantic Versioning guidelines: https://semver.org/#spec-item-11Specification-SDK Version Mapping Strategy
- The table SHOULD only track the specification major and minor versions (not the patches) compliance.
Implementation Tracking Matrix
| Specification Version | Status | Python SDK | TypeScript SDK | Java SDK |
|---|---|---|---|---|
| 1 | ✅ Stable | ✅ 2.0.5 - 2.1.4 | ✅ 1.0.3 - 1.5.0 | ✅ 0.0.3 |
| 1.1 | ✅ Stable | ✅ 2.2.0 | ✅ 1.1.4 - 2.1.0 | ✅ 0.11.0 |
| 1.2 | 🚧 In Progress | 🚧 2.3.0-beta.1 | ✅ 2.2.0 | 🚧 main |
| 2 | 📋 Planned | ❌ Not Started | ❌ Not Started | ❌ Not Started |
Version Negotiation
Version Negotiation remains the same as it is today https://modelcontextprotocol.io/specification/2025-06-18/basic/lifecycle#version-negotiationInternally, the SDKs can maintain a range (track the minimum and maximum) instead of a set of supported semantic versions. This would help account for specification version patches that won’t affect the SDK behavior.
Conformance Testing
Specification maintainers should create language-agnostic conformance tests for each release to allow SDK maintainers to validate the SDKs behavior against the required feature-set and to act as an additional check for specification maintainers to validate that the changes scheduled for minor releases do not introduce a backward-incompatible behavior. The exact specifics of the conformance tests are intentionally left out of scope for this SEP.Rationale
Improved Conformance Test Development
Switching to semantic versioning makes it easier to develop language-agnostic conformance tests for each specification version release.- Major releases can add tests for new introduced behaviors and exclude tests from previous major version that are not relevant due to breaking changes. Tests not excluded from the previous major version can be carried over to this major version. This promotes centralization and reusability of the test suite.
- Each minor release can add new tests atop the ones already present for that major version. This will act as an additional check to ensure no breaking changes seep through in the minor versions.
- Successful conformance tests can be used as proof when updating the implementation tracking matrix with the SDK versions.
- Prevents implementation drift between SDKs
- Enables interoperability between SDKs
- Reduces bugs
- Builds confidence in SDK releases
Extendable to Per-Capability Versioning and Negotiation
This SEP leaves the door open for extension to the per-capability versioning and negotiation idea raised in the discussion #1055. Per-capability versioning would track implementation compliance at the individual capability level within a given specification version, addressing the reality that SDK development is often unsynchronized across different protocol features. The above specification already acknowledges the possibility of an SDK version having partial compliance with a specification version. Per-capability versioning formalizes the partial compliance state while making it easier to communicate the specification versions of the different capabilities in the release notes. It would be a 'purely additive' change atop the semantic specification version proposal in this SEP.How Semantic Versioning Enables Per-Capability Versioning
Semantic versioning at the specification level provides the foundational framework that would make per-capability versioning both meaningful and manageable.- Each specification semantic version defines the complete feature set across all capabilities. This would create a clear target for SDK implementations.
- Per-capability versioning would indicate an SDK version's capabilities are compliant with which specification version. For example, an SDK version release might support
[email protected],[email protected]and[email protected]. So Instead of binary specification version support, SDKs could provide granular capability specification compliance information, enabling more precise version compatibility negotiation.
Benefits for Server and Client Developers
Per-capability versioning combined with semantic versioning would provide server and client developers with crucial visibility into SDK implementation status.- Easily identify when desired capabilities are at incompatible semantic versions. A server requiring advanced tools and resources features might avoid an SDK version release where
[email protected]and[email protected]span multiple major versions, indicating potential compatibility issues or missing functionality. - Choose optimal SDK versions based on their server's/client's capability requirements without extensive release note analysis.
Backward Compatibility
Due to the early stage of the specification, SDKs have missed implementing certain features that were later removed from the protocol. For example, the batching feature was never implemented in the Java SDK before being removed from the specification. Rather than requiring maintainers to backfill these historical gaps, starting fresh with version 1.0.0 after this specification is accepted provides a clean baseline where all SDKs can achieve consistent feature parity moving forward.Transition Strategy: SDKs will continue supporting the existing date-based version format during the transition period. The first semantic version (1.0.0) will be launched after this specification is accepted, allowing SDK maintainers to achieve feature parity with the initial major version baseline. From that point forward, all versioning will follow semantic versioning principles.
Legacy Version Support: SDK maintainers retain full autonomy over legacy version support timelines. They can continue supporting older date-based versions until they decide to deprecate them, allowing each SDK to independently manage their transition schedule based on their user base and maintenance capacity.
Alternatives Considered
Listed below are some alternative approaches that were considered for implementing versioning in MCP SDKs.Specification Version Dictates SDK Release Tags
In this approach, release tags will be tightly coupled with MCP specification versions. Release tags will be used to mark different commits with specification versions. Specification will be semantically versioned. These release tags will signify that at that commit, the SDK code is compliant with the marked major.minor specification version. SDK owners would be able to independently increment patch numbers to introduce bug fixes. Branches would be tied to SDK implementations. SDKs would be able to use semantically versioned branches to signify minor or breaking SDK changes. If semantically versioned, the branch version (corresponding to the SDK semantic version) may differ from the release tag version that can be attached to its commits.Any official SDK would implement specification versions using aligned major.minor version tags in the repository:
- Specification version
1.2.0→ SDK version tag1.2.xon branch2.4 - Specification version
2.0.0→ SDK version tag2.0.xon branch3.1
Drawbacks
- Overly Prescriptive Limits flexibility while complicating release cycles and development process for SDK maintainers
- Version Confusion Between Releases and Branches Dual versioning system creates confusion where SDKs could have semantic versions for both releases and branches within SDKs. Leads to counterintuitive scenarios where release v1.4 can exist on branch 3.x.
- Package Manager Integration Issues Creates significant problems with external package managers (Cargo, PyPI, NPM) where published releases would correspond to specification versions. Would allow for SDK breaking changes within the same major version on package managers.
Specification Dictates SDK Implementation Details
This approach dictates the implementation details across the official SDKs. This can be done in a few ways:- Single Repository - Different Folders/Namespaces: All specification versions are maintained within the same repository but in separate folders/namespaces.
- Same Repository - Base Class with Subclasses + Conditional Statements: All specification versions share a common codebase with version-specific behavior implemented through inheritance and polymorphism.
- Different Repositories for Different Versions: Each specification version is maintained in a completely separate repository to create clear boundaries and allow for independent development.
Drawbacks
- Prescribes implementation details that might not be viable across different SDKs
- Introduces significant complexity due to either folder structure, polymorphic behavior, build system management or dependency management
- Leads to code duplication and inability to reuse common code. Increases maintenance overhead.
- Leads to increased storage and infrastructure requirements when trying to support multiple versions
Reacted by Luca Chang, Zachary German, Health Kowshik, Jonathan Poisson and Jonathan Langens
Reacted by Zachary German
Activity
[-]SEP: Semantic Versioning for MCP Specification[/-][+]SEP-1400: Semantic Versioning for MCP Specification[/+]tulshi commentedon Nov 21, 2025
Interesting proposal. I am on board with the major and minor version numbers of this Semantic Versioning scheme for the specification part, and the entire scheme for the SDK part.
I find it unusual to have a patch version for a released specification though.
In the development so far of the MCP specification, have we encountered the need to have patch versions of the specification?
In other standards bodies I've been in, there hasn't been a need for a patch version. Some specifications do end up publishing errata (see example here), and then publish a version with the same number that incorporates the errata (e.g. OIDC 1.0 Core).
As draft versions iterate, it probably also makes sense for the prerelease specification drafts to have build numbers.
It probably makes sense for an SDK to have patch versions.
I'd like to suggest that we go with a major.minor-prerelease.build version numbering for the specification, and the whole semantic versioning numbering scheme for SDKs.
github-actions commentedon Jan 19, 2026
State Transition: proposal → draft
This SEP has been transitioned from proposal to draft.
@dsp-ant has been assigned as the sponsor for this SEP.
This is an automated message from the SEP lifecycle bot.
sep-automation-bot commentedon Feb 2, 2026
Maintainer Activity Check
Hi @dsp-ant!
You're assigned to this SEP but there hasn't been any activity from you in 14 days.
Please provide an update on:
If you're no longer able to sponsor this SEP, please let us know so we can find another maintainer.
This is an automated message from the SEP lifecycle bot.
sep-automation-bot commentedon Feb 16, 2026
Maintainer Activity Check
Hi @dsp-ant!
You're assigned to this SEP but there hasn't been any activity from you in 14 days.
Please provide an update on:
If you're no longer able to sponsor this SEP, please let us know so we can find another maintainer.
This is an automated message from the SEP lifecycle bot.
sep-automation-bot commentedon Mar 9, 2026
Maintainer Activity Check
Hi @dsp-ant!
You're assigned to this SEP but there hasn't been any activity from you in 20 days.
Please provide an update on:
If you're no longer able to sponsor this SEP, please let us know so we can find another maintainer.
This is an automated message from the SEP lifecycle bot.
sep-automation-bot commentedon Mar 23, 2026
Maintainer Activity Check
Hi @dsp-ant!
You're assigned to this SEP but there hasn't been any activity from you in 14 days.
Please provide an update on:
If you're no longer able to sponsor this SEP, please let us know so we can find another maintainer.
This is an automated message from the SEP lifecycle bot.
sep-automation-bot commentedon Apr 6, 2026
Maintainer Activity Check
Hi @dsp-ant!
You're assigned to this SEP but there hasn't been any activity from you in 14 days.
Please provide an update on:
If you're no longer able to sponsor this SEP, please let us know so we can find another maintainer.
This is an automated message from the SEP lifecycle bot.
sep-automation-bot commentedon Apr 20, 2026
Maintainer Activity Check
Hi @dsp-ant!
You're assigned to this SEP but there hasn't been any activity from you in 14 days.
Please provide an update on:
If you're no longer able to sponsor this SEP, please let us know so we can find another maintainer.
This is an automated message from the SEP lifecycle bot.
sep-automation-bot commentedon May 4, 2026
Maintainer Activity Check
Hi @dsp-ant!
You're assigned to this SEP but there hasn't been any activity from you in 14 days.
Please provide an update on:
If you're no longer able to sponsor this SEP, please let us know so we can find another maintainer.
This is an automated message from the SEP lifecycle bot.
sep-automation-bot commentedon May 18, 2026
Maintainer Activity Check
Hi @dsp-ant!
You're assigned to this SEP but there hasn't been any activity from you in 14 days.
Please provide an update on:
If you're no longer able to sponsor this SEP, please let us know so we can find another maintainer.
This is an automated message from the SEP lifecycle bot.
sep-automation-bot commentedon Jun 1, 2026
Maintainer Activity Check
Hi @dsp-ant!
You're assigned to this SEP but there hasn't been any activity from you in 14 days.
Please provide an update on:
If you're no longer able to sponsor this SEP, please let us know so we can find another maintainer.
This is an automated message from the SEP lifecycle bot.
sep-automation-bot commentedon Jun 15, 2026
Maintainer Activity Check
Hi @dsp-ant!
You're assigned to this SEP but there hasn't been any activity from you in 14 days.
Please provide an update on:
If you're no longer able to sponsor this SEP, please let us know so we can find another maintainer.
This is an automated message from the SEP lifecycle bot.
sep-automation-bot commentedon Jul 6, 2026
Maintainer Activity Check
Hi @dsp-ant!
You're assigned to this SEP but there hasn't been any activity from you in 20 days.
Please provide an update on:
If you're no longer able to sponsor this SEP, please let us know so we can find another maintainer.
This is an automated message from the SEP lifecycle bot.
sep-automation-bot commentedon Jul 27, 2026
Maintainer Activity Check
Hi @dsp-ant!
You're assigned to this SEP but there hasn't been any activity from you in 20 days.
Please provide an update on:
If you're no longer able to sponsor this SEP, please let us know so we can find another maintainer.
This is an automated message from the SEP lifecycle bot.
langens-jonathan commentedon Jul 28, 2026
Thinking about 2026-07-28 MCP Release, semantic versioning makes a lot of sense. With this (and future changes of this magnitude) I can imagine taking some time to fully migrate an existing MCP Host and/or MCP Servers to the new version. It would be great to be able to agree between mcp host/client and mcp server on the protocol version just for that.
localden commentedon Jul 29, 2026
Closing this as it hasn't seen activity in some time. We can revisit this SEP if there is renewed interest.