Skip to content

Epic: Implement Semver Library into all service-providers for version matching #677

Description

@n3rdc4ptn

Understand the Epic

Currently, service-providers perform exact string matching when resolving component versions. This is fragile and limits user flexibility.

By integrating a semver-aware library, service-providers can:

  • Match versions using semantic versioning rules (e.g. 1.2.3 satisfies >=1.0.0)
  • Support constraint-based filtering (e.g. ^2.0.0, ~1.5.0, >=2.0.0 <3.0.0)
  • Handle v/V prefixed versions correctly (e.g. v1.2.3 matches 1.2.3)
  • Handle pre-release and build metadata correctly

This aligns with how OCM core already handles versions using Masterminds/semver/v3.

Context / Background

The OCM project uses github.com/Masterminds/semver/v3 for version matching and constraint evaluation.

Relevant usage in OCM:

This library supports standard semver constraints like >=1.2.0, ^2.0.0, ~1.5.0, etc. The service-providers should use the same library for consistency with OCM core.

User Stories or tasks

No response

What is required to accept the Epic as finished.

Placeholder

Dependencies of this Epic

No response

Risks of this Epic

No response

Known Stakeholders of this Epic

No response

Milestone Definitions for this Epic.

No response

Metrics Definition for this Epic.

No response

Any further valuable resources.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/epicEpic covers multiple issues/tasksneeds/validationVerify Issue and Prio with POsig/extensibilityAll topics related to special interests group openMCP extensibility

    Type

    Projects

    Status
    Validation

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions