mcp-shipcheck
mcp-shipcheck is a read-only auditing server for Node.js/TypeScript packages, helping you verify npm publish readiness, preview package contents, and understand audit failures.
shipcheck.audit: Analyze a local package folder to check npm publish readiness — validatingpackage.jsonfields,SHIP_GATE.md, versioning, dependencies, exports, and other shipcheck hard-gate criteria.shipcheck.packPreview: Show which files would be included bynpm packalong with size totals — useful for catching accidentally included or excluded files before publishing.shipcheck.explainFailure: Look up a specific shipcheck failure code (e.g.,PKG.EXPORTS.MISSING) and get a plain-language explanation plus suggested fixes.
All tools are read-only — no files are written, no network requests are made, and no telemetry is collected.
Provides tools to audit local package directories for npm publish-readiness, analyzing configuration files and previewing tarball contents to ensure a successful release.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-shipcheck audit the current folder for npm publish readiness"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Why
"Done" used to mean the code works. That's not enough. A product is code + safety + error handling + docs + identity + shipping hygiene. Shipcheck defines the bar.
Related MCP server: license-guardian
What's in here
Standard | What it covers |
31 hard-gate + 4 soft-gate pre-release checklist | |
2-tier structured error standard with code registry | |
Report email, response timeline, threat scope | |
Operational field manual for complex tools | |
Pre/post remediation scoring | |
Apply shipcheck to any repo in <30 minutes |
CLI usage
npx @mcptoolshop/shipcheck init # Copy templates into current repo
npx @mcptoolshop/shipcheck audit # Check SHIP_GATE.md progress
npx @mcptoolshop/shipcheck dogfood # Check dogfood freshness (Gate F)
npx @mcptoolshop/shipcheck front-door # Verify the AI-native front door (Gate G)
npx @mcptoolshop/shipcheck help # Show help
npx @mcptoolshop/shipcheck --version # Show versionSet SHIPCHECK_JSON=1 to get structured JSON error output instead of coloured text.
Quick start
Read ADOPTION.md
Run
npx @mcptoolshop/shipcheck initin your repo rootCheck off applicable items in
SHIP_GATE.md, mark non-applicable withSKIP:Run
npx @mcptoolshop/shipcheck audit— exits 0 when all hard gates passShip when audit passes
How it works
Hard gates (A-D) block release:
A. Security Baseline — SECURITY.md, threat model, no secrets, no telemetry, default safety posture
B. Error Handling — structured error shape (code/message/hint/retryable), safe output, graceful degradation
C. Operator Docs — README, CHANGELOG, LICENSE, tool documentation
D. Shipping Hygiene — verify script, version alignment, dependency scanning, lockfile
Soft gate (E) doesn't block but defines "whole":
E. Identity — logo, translations, landing page, repo metadata
Gate F — Dogfood Freshness (optional, requires dogfood-labs):
Checks for a fresh, verified, passing dogfood record
Supports enforcement modes:
required,warn-only,exemptConfigurable freshness window (default: 30 days)
Gate G — AI-native front door (optional, requires @mcptoolshop/site-theme >=2.0.0):
Verifies that the repo's AI-native front door (README / AGENTS.md / llms.txt) tells the truth — the machine-readable complement to the Operator Docs (C) and Identity (E) gates
Delegates to site-theme's
front-doorverifier (verify({ root })), which routes documented claims to evidence channels and returns a risk-ordered scorecardSurfaces counts by severity (contradicted · unbacked · stale · bloat · hygiene · style) plus the gate verdict; fails (exit 1) on contradicted / unbacked / stale claims
site-theme is an optional peer dependency (a hard dep would pull astro into this zero-dep CLI). When it isn't installed, the gate skips gracefully (exit 0) — it never crashes the audit
Executed gates — audit counts boxes; these read the artifact
shipcheck audit only tallies the checkboxes in SHIP_GATE.md — a box can be green while the fact is false. The gates below execute the check against the real artifact and exit 1 on the real defect. Each converts a specific Ship Gate line from a human attestation into a machine verification, and each ships with a RED meta-test that mutates the protected thing and proves the gate fires.
Gate H — publish surface (
shipcheck pack, D5): runsnpm pack --dry-runon every publishable workspace package; fails if any tarball lacks README/LICENSE, afiles[]entry doesn't resolve, orlicenseis unset.Gate I — secrets (
shipcheck secrets, A3): scans every publishable package's tarball surface for high-signal credentials (provider-prefixed keys, tokens, private-key blocks); matches are redacted;shipcheck-allow-secretwhitelists a documented example.Gate J — manifest (
shipcheck manifest, D2/D6/D7): every publishable package setsengines/requires-python(D6); a lockfile is committed (D7); the manifest version is not behind the newest released git tag (D2,--expect <ver>for a strict release match).Gate K — security-docs (
shipcheck security-docs, A1/A2): SECURITY.md exists with a reporting contact (not an empty stub), and the README states a trust/threat model with a substantive body. Verifies presence + contact, not threat-model quality.Gate L — ci (
shipcheck ci, provenance + dependency-scan config): reads.github/workflows— everynpm publishworkflow uses OIDC (id-token: write) and--provenance, and a recognized scanner is configured in CI (or dependabot is present).--registry <pkg>[@<ver>]also confirms the published tarball carries a provenance attestation on npm (intent and outcome).Gate M — deps (
shipcheck deps, the dependency-security outcome): runsnpm auditin every lockfile'd tree (root and subtrees — a scanner configured only for the root misses the rest), fails on vulnerabilities at/above--level(default high), and checks whether GitHub Dependabot alerts are even enabled.ciproves a scanner is configured;depsproves there are no known vulnerabilities — a repo can pass the first and fail the second.
Every gate's --json output is pure JSON (no header line), so it pipes cleanly into other tools.
The gate says what must be true, not how to implement it. Applicability tags ([all], [npm], [mcp], [cli], [desktop], [vsix], [container]) prevent checkbox shame on repos where items don't apply.
Error contract at a glance
Tier 1 — Shape (mandatory everywhere):
{
"code": "INPUT_TEXT_EMPTY",
"message": "Text must not be empty",
"hint": "Provide at least one character of text",
"retryable": false
}Tier 2 — Base type + exit codes (CLI/MCP/desktop):
Exit code | Meaning |
0 | OK |
1 | User error (bad input, missing config) |
2 | Runtime error (crash, backend failure) |
3 | Partial success (some items succeeded) |
Error codes use namespaced prefixes: IO_, CONFIG_, PERM_, DEP_, RUNTIME_, PARTIAL_, INPUT_, STATE_. Codes are stable once released.
Trust model
Data touched: reads package.json, pyproject.toml, and SHIP_GATE.md in the current working directory. Writes template files (SHIP_GATE.md, SECURITY.md, CHANGELOG.md, SCORECARD.md) to the current directory only.
No network requests. All operations are local file reads and writes.
No secrets handling. Does not read, store, or transmit credentials.
No telemetry collected or sent.
Reference implementation
mcp-voice-soundboard was the first repo to pass Ship Gate — scoring 46/50 after remediation.
Scorecard
Category | Score | Notes |
A. Security | 6/8 | SECURITY.md, trust model, no secrets/telemetry. MCP items skipped (not an MCP server) |
B. Error Handling | 3/7 | Structured error shape + exit codes + no raw stacks. MCP/desktop/vscode skipped |
C. Operator Docs | 4/7 | README, CHANGELOG, LICENSE, --help. Logging/MCP/complex skipped |
D. Shipping Hygiene | 6/9 | verify script, version=tag, npm audit in CI, engines.node, lockfile. Zero deps = no update mechanism |
E. Identity | 4/4 | Logo, translations, landing page, metadata |
Total | 23/31 | 14 items skipped with justification · |
License
Available Tools
3 toolsshipcheck.auditARead-only
Audit a local Node/TypeScript package for npm publish readiness (read-only).
Inputs: path (required).
shipcheck.explainFailureARead-only
Explain a shipcheck failure code and suggest fixes (read-only).
Inputs: code (required).
shipcheck.packPreviewARead-only
Show which files would be included by npm pack and report size totals (read-only).
Inputs: path (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose with no overlap: audit checks npm publish readiness, explainFailure decodes error codes, and packPreview shows file inclusions. An agent can easily distinguish between these three focused functions.
All tools follow a perfect verb_noun pattern (audit, explainFailure, packPreview) with consistent dot notation (shipcheck.*) and snake_case for multi-word names. The naming is highly predictable and readable throughout.
With 3 tools, this server is well-scoped for its purpose of npm package readiness checks. Each tool earns its place by covering distinct aspects (auditing, error explanation, and packing preview) without being overly sparse or bloated.
The toolset covers core npm package readiness workflows effectively: audit for checks, explainFailure for troubleshooting, and packPreview for validation. A minor gap exists in lacking a tool to directly fix issues (e.g., auto-correct or apply fixes), but agents can work around this using the explanations provided.
Maintenance
Related MCP Connectors
Check npm packages for typosquats, hallucinated names, install scripts and risky new releases.
Pre-install report for an npm or MCP package before giving it network or token access.
Detect malicious or vulnerable npm packages: registry search, OSV.dev and GitHub advisory lookups
Audit GitHub repos for malicious and supply-chain code before you depend on them.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAudits npm packages for supply-chain attacks (typosquatting, malicious install scripts, credential exfiltration) before installation, returning a SAFE/SUSPICIOUS/DANGEROUS verdict.MIT
- -licenseNot gradedqualityBmaintenanceAudits npm dependencies for license compatibility, catching copyleft and source-available traps before shipping.-
- AlicenseNot gradedqualityDmaintenanceAudits your package-lock.json for supply-chain attacks before install. Cross-checks every resolved entry against the live npm registry to detect integrity mismatches, new install scripts, and other malicious signals.MIT
- AlicenseNot gradedqualityCmaintenanceEnables auditing package.json files for real npm supply-chain attack mechanisms — typosquatted dependency names, malicious preinstall/install/postinstall scripts that pipe downloads into a shell or decode base64 payloads, and unpinned versions — plus live npm registry lookups that flag nonexistent, brand-new, deprecated, or typosquatted packages. It exposes dedicated tools for full manifest audits and single-name typosquat checks.MIT