npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@reaatech/mcp-schema-evolution-cli

v0.0.0

Published

Command-line interface for MCP schema evolution

Readme

@reaatech/mcp-schema-evolution-cli

npm version License: MIT CI

Status: Pre-1.0 — APIs may change in minor versions. Pin to a specific version in production.

Command-line interface for MCP schema evolution. Compare tool snapshots, detect breaking changes, and integrate into CI pipelines with machine-readable JSON output.

Installation

npm install -g @reaatech/mcp-schema-evolution-cli
# or
pnpm add -g @reaatech/mcp-schema-evolution-cli

For per-project usage:

npm install --save-dev @reaatech/mcp-schema-evolution-cli
# or
pnpm add -D @reaatech/mcp-schema-evolution-cli

Feature Overview

  • Schema diffing — compare two tool snapshot JSON files and classify all changes
  • Dual output modes — human-readable text with color icons for developers, machine-readable JSON for CI
  • Exit codes — 0 on success (no breaking changes), 1 on breaking changes or errors
  • Comprehensive error reporting — clear, actionable error messages with suggestions

Quick Start

# Compare two snapshots
mcp-evolution diff tools.v1.json tools.v2.json

# JSON output (for CI pipelines)
mcp-evolution diff tools.v1.json tools.v2.json --json

# Use in scripts
mcp-evolution diff old.json new.json && echo "Safe to deploy!" || echo "Breaking changes detected!"

API Reference

mcp-evolution diff <old> <new> [options]

Compares two tool snapshot JSON files and reports detected schema changes.

Arguments:

| Argument | Required | Description | |----------|----------|-------------| | <old> | Yes | Path to the old tool snapshot JSON file | | <new> | Yes | Path to the new tool snapshot JSON file |

Options:

| Flag | Type | Default | Description | |------|------|---------|-------------| | --json | boolean (presence) | false | Output results as machine-readable JSON |

Output Formats

Text Output (default)

Detected 3 change(s):

🔴 [HIGH] tool_removed: Tool "legacy_search" was removed.
   → Remove usages of "legacy_search" or migrate to a replacement tool.
🟡 [MEDIUM] field_added: Field "limit" was added to search (optional)
   → No action needed; the new field is optional.
🔴 [HIGH] field_renamed: Field "query" was renamed to "q" in search
   → Update references from "query" to "q". Use a wrapper to map old field names to new ones.

⚠️  2 breaking change(s) found.
  • 🔴 = breaking change
  • 🟡 = non-breaking change
  • 🔵 = patch
  • Migration suggestions are prefixed with

JSON Output (--json)

{
  "ok": true,
  "changes": [
    {
      "type": "breaking",
      "category": "tool_removed",
      "toolName": "legacy_search",
      "path": "",
      "description": "Tool \"legacy_search\" was removed.",
      "severity": "high",
      "migration": {
        "suggestion": "Remove usages of \"legacy_search\" or migrate to a replacement tool.",
        "automated": false
      }
    }
  ]
}

Error output in JSON mode:

{
  "ok": false,
  "error": "File not found: snapshots/tools.json"
}

Exit Codes

| Code | Meaning | |------|---------| | 0 | No breaking changes detected (0 changes or only non-breaking changes) | | 1 | Breaking changes detected, or an error occurred (file not found, invalid JSON, etc.) |

In JSON mode, exit code 1 is returned if any change has type: "breaking", even when ok is true.

Input File Format

Tool snapshots are JSON arrays of MCP tool definitions:

[
  {
    "name": "search",
    "description": "Search the index",
    "inputSchema": {
      "type": "object",
      "properties": {
        "q": { "type": "string", "description": "Search query" },
        "limit": { "type": "integer", "default": 10 }
      },
      "required": ["q"]
    }
  }
]

Each tool must have a name (string) and an inputSchema with a type (string).

Error Messages

| Error Code | Message | |------------|---------| | FILE_READ_ERROR | File not found or cannot be read | | JSON_PARSE_ERROR | File contains invalid JSON | | INVALID_FORMAT | Root element is not an array | | INVALID_TOOL | An element does not match the expected Tool shape | | DIFF_ERROR | Internal error during schema comparison |

CI Integration

# Fail CI on breaking changes
mcp-evolution diff snapshots/base.json snapshots/head.json --json || exit 1

# Capture JSON output for reporting
mcp-evolution diff snapshots/base.json snapshots/head.json --json > report.json

Related Packages

License

MIT