compare_semver

Pack: semver · Endpoint: https://gateway.pipeworx.io/semver/mcp

Compare two semver strings. Returns -1 (a<b), 0 (equal), or 1 (a>b), honoring prerelease precedence.

Parameters

NameTypeRequiredDescription
astringyesFirst version.
bstringyesSecond version.

Example call

Arguments

{
  "a": "1.2.3",
  "b": "1.2.4"
}

curl

curl -X POST https://gateway.pipeworx.io/semver/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"compare_semver","arguments":{"a":"1.2.3","b":"1.2.4"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('compare_semver', {
  "a": "1.2.3",
  "b": "1.2.4"
});

More examples

{
  "a": "2.0.0-beta",
  "b": "2.0.0"
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "semver": {
      "url": "https://gateway.pipeworx.io/semver/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 15, 2026