Skip to content

Support Versioning for MCP Servers #5469

@tee0paw

Description

@tee0paw

Expected Behavior

It would be nice if the mcp server could be versioned in the sense that a client can make a request and specify the required version, and then the appropriate tools for that version are returned.
This would be very useful for production mcp servers where the newest version must be tested before switching the version.

Possible example:

  • /mcp?version=1.0.0 -> returns only tools that are annotated with this version tag (@McpToolVersion="<2.0.0)
  • /mcp?version=2.0.0 -> returns updated tools and some more new tools (@McpToolVersion=">=2.0.0)
  • If no version is given the latest version should be returned

Current Behavior

It's not possible to serve different/updated tools in parallel to test the newest version first before switching on client-side. It should be possible to have tools with the same name if they exists in different versions.

Context

For us it would be perfect to have this feature because we then could test the newest version of the mcp server first on dev environment E2E with the agent and if the agent performs as expected we can switch the to the newest mcp server version on production.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions