Getting Started
Install
Section titled “Install”npm install -g @mcptoolshop/brandRequires Node.js 18 or later.
Verify your logos
Section titled “Verify your logos”If you already have a logos/ directory and manifest.json:
brand verifyThis computes SHA-256 hashes for every image file under logos/ and compares them against the stored manifest. You’ll see a summary of verified, changed, added, and removed files.
Generate a manifest
Section titled “Generate a manifest”Starting fresh or added new logos? Regenerate the manifest:
brand manifestThis scans logos/ for image files (.png, .jpg, .jpeg, .svg, .webp), computes their hashes, and writes manifest.json.
Run in CI
Section titled “Run in CI”Use check mode to fail the build if the manifest is stale:
brand manifest --checkThis is the recommended CI gate — it ensures every logo change is accompanied by a manifest update.
Audit other repos
Section titled “Audit other repos”Point Brand at a directory of cloned repos to find broken logo references:
brand audit --repos /path/to/clonesThe audit checks for:
- Broken
raw.githubusercontent.comlogo URLs - shields.io badge URLs that look like brand logos (badge collision)
- Markdown indentation traps (4+ spaces creating code blocks)
Migrate READMEs
Section titled “Migrate READMEs”Rewrite logo URLs in other repos to point at the brand repo:
# Preview changes firstbrand migrate --repos /path/to/clones --dry-run
# Apply changesbrand migrate --repos /path/to/clonesThe migration uses multi-gate regex to distinguish actual brand logos from shields.io badges and other image references. Always dry-run first.
View registry stats
Section titled “View registry stats”brand statsbrand stats --jsonShows total logo count, format breakdown (PNG vs JPEG vs SVG), and sync status.