semver-mcp
v1.0.2Semantic version toolkit: parse, compare, sort and range-check versions (npm-style ^ ~ and hyphen
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
parse_version
Break a version into major, minor, patch, prerelease and build parts.
| Parameter | Type | Description |
|---|---|---|
version * | string | Version string, e.g. 1.2.3-beta.1+build.5 |
compare_versions
Compare two versions by semver precedence.
| Parameter | Type | Description |
|---|---|---|
a * | string | First version |
b * | string | Second version |
sort_versions
Sort a list of versions from lowest to highest.
| Parameter | Type | Description |
|---|---|---|
versions * | array | Versions to sort |
descending | boolean | Highest first |
satisfies_range
Check a version against a range: ^ ~ x-ranges, comparisons, hyphen ranges and ||.
| Parameter | Type | Description |
|---|---|---|
range * | string | Range, e.g. ^1.2.0, ~1.4, >=1.2.3 <2.0.0 or 1.2.3 - 1.9.0 |
version * | string | Version to test, e.g. 1.4.2 |