Skip to content

SEP: Extension Versioning #1848

Closed
Closed

Description

@tulshi

Extension versioning

Track: Standards
Author: Atul Tulshibagwale
Status: WIP

Changelog

  • 2025-11-21:
    • Added build numbering to development versions.
    • Clarified what it means for a version of an extension to be compatible with a previous version.

Abstract

This SEP establishes how MCP extensions are versioned, including support for development versions.

Motivation

Although the extensions SEP defines what extensions are and specifies that they are versioned, it does not specify how versions work.

Versioning

As a particular extension grows in its use and need, it is inevitable that it will need to evolve as well. This might mean changes to the extension specification that are either backward compatible with previous versions, or those that are incompatible with previous versions. For example, consider an extension defines how an MCP client and server greet each other. The extension is defined as follows:

# Greetings Extension

## Introduction
This extension defines how an MCP client and an MCP server greet each other.

## Purpose and Scope
It is important for AI agents to be polite to other AI agents, and a greeting at the beginning of the conversation is sufficient to demonstrate such politeness.

## Specification
### MCP Server
An MCP Server MUST support a "greet" tool, which the client can invoke to greet the MCP server.

### MCP Client
When an MCP client initializes its conversation with the MCP server, the client MUST call the `greet` tool before it calls any other tool. The client MUST provide a suitable greeting depending upon the time of the day.

## Examples
The following are example greetings:
* "Good morning"
* "Good afternoon"

At a later date, the Greetings Extension may be enhanced to say that in addition to the initial greeting, the client MUST wish the server "Happy birthday" on any anniversary of the creation date of the server. This is an example of a backward compatible change.

If at a later date, the Greetings Extension needs to support multiple languages, it may be enhanced to specify that the client needs to understand languages supported by the server, and then greet the server in a language preferred by the currently logged in user. This may be considered incompatible with previous behavior because the clients' initial greeting will change. This is an example of a backward incompatible change.

Specification

Versions

Version Format

A version is a string containing exactly one decimal point, with numbers on both sides, optionally followed by a development suffix.

  • Release format: major.minor (e.g., 1.0, 2.14)
  • Development format: major.minor-suffix.build (e.g., 1.0-draft, 2.1-beta, 3.0-rc.1)
  • Both major and minor components are required, even when zero (e.g., 1.0 not 1)
  • The suffix, when present, MUST be preceded by a hyphen (-), MUST start with a lowercase letter, and MAY contain alphanumeric characters and hyphens
  • A build number MAY be included after a development suffix. Build numbers are numeric values. Newer builds MUST have higher build numbers than older builds of the same development version.

Development vs Release Versions

  • Release versions have no suffix and represent stable, finalized specifications
  • Development versions have a suffix and represent work-in-progress specifications that may change without notice
  • Build numbers MAY be added to a development version by suffixing a “.” to the development suffix, and then specifying a numeric value.
  • Development versions SHOULD NOT be used in production systems
  • The backward compatibility requirements specified in this document apply only to release versions

Extension Naming

The full extension name MUST include the version and follows this pattern:

namespace/extension-name/version

Examples:

io.modelcontextprotocol/greetings/1.0
io.modelcontextprotocol/greetings/2.0-draft
io.modelcontextprotocol/greetings/2.0-beta.1
io.modelcontextprotocol/greetings/2.0

Extensions MUST always be referenced by their full name, including the version.

Compatibility

A new version may or may not be compatible with existing versions. A newer version is considered compatible to an older version iff:

  1. A client or server that implements an older version can still operate as though the other party uses the exact same version, even if it has implemented a newer version.
  2. A client or server that implements a newer version can communicate with the other party with the understanding that features added since the older version will not be available, but those features that are common with the older version will operate exactly the same way in both versions.

Version Numbering

Version Ordering

Versions are ordered as follows:

  1. Versions are first compared by major version number
  2. Within the same major version, they are compared by minor version number
  3. Within the same major.minor version:
    • Any development version is considered less than its corresponding release version
    • Development versions with the same major.minor are ordered lexicographically by suffix

For example: 1.0-alpha < 1.0-beta.1 < 1.0-beta.2 < 1.0 < 1.1-draft < 1.1 < 2.0

Release Version Requirements

Each new release version of an extension MUST be greater than all previous release versions.

Minor Updates

An updated extension MAY choose a version number that only updates the minor version number. This is called a minor update. A minor update to a release version MUST be backward compatible with all other previously existing release versions that share the same major version number.

Example progression: 1.0 → 1.1-draft → 1.1-beta → 1.1 → 1.2

Major Updates

An updated extension MAY choose a version number that updates the major version number. In that case, it MUST set the minor version number to zero. This is called a major update. A major update need not be backward compatible with any previously existing versions.

Example progression: 1.5 → 2.0-draft → 2.0-rc.1 → 2.0

Development Version Guidelines

  • Development versions MAY be published at any time without regard to ordering constraints
  • Multiple development versions MAY exist for the same target release version
  • Development versions SHOULD indicate their maturity level through meaningful suffixes (e.g., -draft, -alpha, -beta, -rc.1)
  • Implementers SHOULD expect breaking changes between any two development versions
  • A development version MAY be superseded by another development version or a release version at any time

Activity

  1. added
    enhancement
    on Nov 19, 2025
  2. pja-ant commented on Nov 21, 2025

    @pja-ant
    Contributor

    Thanks for putting this together @tulshi, a few thoughts:

    1. If we're going to specify a version format, why not https://semver.org? I don't really have strong opinions on what is the "best" format, but semver at least is well known and understood / has libraries for parsing etc. It feels like this is mostly SemVer, just without the patch number. We should probably first decide how we're going to format versions of the protocol itself and align with that for extensions so that we don't end up with multiple versioning schemes. See SEP-1400: Semantic Versioning for MCP Specification #1400

    2. Are the backwards compatibility guarantees purely aesthetic or do they have any semantic meaning? e.g. if my client supports extension v1.1 and server support v1.2 - can their negotiation succeed? (maybe a question for the negotiation sep)

    3. The current extension SEP has extension capabilities field which is keyed on the extension name. Should that key include the full version? If so, doesn't that mess with negotiation (I can't specify keys in a backwards compatible way since the key always changes).

  3. tulshi commented on Nov 21, 2025

    @tulshi
    Author

    @pja-ant Thanks for the feedback. I've updated the issue with clarifications on backward compatibility and build numbering. Here's my response to the rest of your comments:

    1. If we're going to specify a version format, why not https://semver.org? I don't really have strong opinions on what is the "best" format, but semver at least is well known and understood / has libraries for parsing etc. It feels like this is mostly SemVer, just without the patch number. We should probably first decide how we're going to format versions of the protocol itself and align with that for extensions so that we don't end up with multiple versioning schemes. See SEP-1400: Semantic Versioning for MCP Specification #1400

    I made this comment in the Semantic Versioning SEP (see comment here), but I don't know if the patch version makes sense for specifications. I does make sense for SDKs.

    1. Are the backwards compatibility guarantees purely aesthetic or do they have any semantic meaning? e.g. if my client supports extension v1.1 and server support v1.2 - can their negotiation succeed? (maybe a question for the negotiation sep)

    I've addressed this in the updated description. I will address the negotiation part in the negotiations SEP

    1. The current extension SEP has extension capabilities field which is keyed on the extension name. Should that key include the full version? If so, doesn't that mess with negotiation (I can't specify keys in a backwards compatible way since the key always changes).

    The versions must be specified with their names in the ServerCapabilities and ClientCapabilities sections because the implementation will have to be aware of which specific version it has implemented. So the example will be:

    "extensions": {
      "com.modelcontextprotocol/greetings/1.1": {
        "defaultLanguage": "MR-IN"
      }
    }

    This won't cause any incompatibility because when a server or client implementation updates to a newer implementation of the extension, they will need to update the relevant extension section in the ClientCapabilities to match their version of the extension implementation.

  4. localden commented on Jun 24, 2026

    @localden
    Contributor

    @tulshi closing this as SEPs have since moved to pull requests. If this is still a relevant project to pursue, feel free to create a new SEP PR and build support in our contributor Discord.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions