SemVer Compare
Compare two SemVer 2.0.0 versions — get direction (upgrade / downgrade / equal) and the diff kind.
A → B
upgrademajor
1.4.2→2.0.0-rc.1
</>Use this tool programmaticallycurl · JavaScript · MCP
Same tool, callable from any HTTP client or from Claude (via MCP). Anonymous: 100 req/day per IP. Sign up for 1,000 req/day.
curl
curl https://api.b-e-a-d.com/tools/semver-compare/run \
-H "Content-Type: application/json" \
-d '{
"a": "a",
"b": "a"
}'JavaScript (fetch)
const res = await fetch("https://api.b-e-a-d.com/tools/semver-compare/run", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"a": "a",
"b": "a"
}),
});
const data = await res.json();
console.log(data.result);MCP (Claude Desktop / Claude Code)
# In Claude Desktop / Claude Code, add to your MCP config:
{
"mcpServers": {
"bead": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.b-e-a-d.com"]
}
}
}
# Then ask Claude to call:
mcp__bead__bead_semver_compareFull reference: developer docs · OpenAPI spec
Comparison rules
Strictly per SemVer 2.0.0: major / minor / patch as numbers, then prerelease identifiers compared part-by-part (numeric vs alphanumeric). Build metadata is ignored.
What you get
- Direction (
up/down/equal) - Diff kind (
major/minor/patch/prerelease/build/none) - Per-component breakdown
You might also like
- Diff CheckerCompare two pieces of text side-by-side with line- and word-level highlighting.
- JSON Structural DiffCompare two JSON values by structure — added / removed / changed paths with old and new values. Optional unordered-array mode.
- SQL DiffCompare two SQL queries or schemas after canonical formatting — ignore whitespace and casing noise.
- package.json ValidatorValidate npm package.json — name, SemVer, scripts, dependencies, license, engines. Preview scripts.