Semver check
Compare two semantic versions and see the structural diff — is it a major/minor/patch bump, and what changed?
When to use this pack
An agent is evaluating a dependency update or release decision and needs to know: which version is newer, what type of bump is it, and what's the structural difference? One call answers both questions.
Tools in this pack
-
Semver parse/compare
$0.001
POST /api/semver
Parse a semantic version, or compare two (a vs b → -1/0/1, with greater/lesser flags).
-
JSON diff
$0.002
POST /api/json-diff
Deep-compare two JSON values. Returns a list of changed/added/removed paths (capped at 1000 differences).
Workflow
- Compare the two versions with semver — returns which is greater, the difference type (major/minor/patch), and parsed components.
- Show the structural difference with json-diff — wraps each version in an object and diffs them, making the changed fields visible.
Run it in Claude
claude mcp add agent402 -s user -- npx -y agent402-mcp@latest
Then paste this prompt into Claude:
Compare versions using Agent402: (1) semver {a:"2.4.0", b:"2.10.1"} — compare. (2) json-diff {a:{version:"2.4.0"}, b:{version:"2.10.1"}} — structural diff. Return {comparison, diff}.
← All skill packs