mcp-ship-check: A Pre-Flight Checker for MCP Servers, as a CLI, MCP Server and Claude Skill

An open-source checker I built after shipping my own MCP server and losing a day to avoidable problems: missing tool annotations, a directory build that could not start the server, no release, no test per tool. One command now reports what is wrong and how to fix it. It is a CLI with no dependencies, an MCP server and a Claude Code skill, and it checks itself in CI.

Open sourcePython
Illustration of the mcp-ship-check (PyPI) project
23
checks, 6 of them live against the running server
17
automated tests, CI on Python 3.11 and 3.13
0
runtime dependencies for the CLI
3
MCP tools: check_repo, check_live, list_checks
Terminal recording: mcp-ship-check reports three warnings on versereel, then passes after the fix
A real run on versereel: three findings, fixed in v0.1.3, score 95 to 98

The challenge

Most MCP servers listed in directories are abandoned or break on first run, and the reasons are mundane: missing tool annotations that some directories reject, a README that does not name the tools, a default build that cannot start the server, no test per tool.

I wanted the checklist from my own release as one command that works in CI, on a laptop and inside an AI assistant.

How I approached it

  1. 01

    Static checks that never run your code

    The scanner reads the repository with Python's ast module: it finds tool decorators, checks that all four annotation hints are explicit booleans, compares tool names against the README and the tests, and scans for key patterns. Documented placeholder keys are ignored, so it does not cry wolf.

  2. 02

    A live check with no SDK dependency

    An opt-in mode starts the server and speaks raw JSON-RPC over stdio: initialize, tools/list, then inspects the real tool list for descriptions, hints and parameter docs. It also catches stray print calls that corrupt the protocol. Because it is plain standard library, it works with any MCP SDK version.

  3. 03

    Fixes, not just failures

    Every warning carries a one-line fix, including the traps I hit: an extra that a default install does not get, an entry point missing from PATH, and a ready-to-paste build spec for Glama.

  4. 04

    Safe by design

    The MCP wrapper splits the tools: check_repo is read-only, check_live runs a command and is annotated destructive. A score from 0 to 100 and an exit code make it usable in CI.

  5. 05

    It checks itself

    CI runs the tool against its own MCP server on every push, which caught three of its own bugs before the first release.

Deliberate trade-offs

  • Static tool discovery understands Python decorators and simple TypeScript calls. Tools registered other ways are only seen in live mode.
  • The checks are heuristics, not a security audit.
  • Live mode executes the server, so it should only be used on code you trust.

What I built

  • Designed the check list from the real problems of my first release and wrote a phased plan before coding.
  • Built the scanner, the live stdio client, scoring, text, Markdown and JSON reports, and the CLI.
  • Wrote tests with a fake stdio server, so live-mode behaviour (noise on stdout, crashes, bad schemas) is covered without any SDK.
  • Ran it on my own versereel package, fixed what it found (v0.1.3) and recorded the before and after.
  • Published to PyPI, tagged a release and submitted the listing to the MCP directories.
MIT licensed. Install it with pip install mcp-ship-check.

What this project demonstrates

  • Shipping a developer tool end to end: design, tests, CI, PyPI, listings
  • Working at the protocol level (MCP over stdio) instead of through an SDK
  • Static analysis with Python's ast module
  • Writing tools that are safe by default

Related case studies

Python / MCP / ffmpeg / Pillow / numpyOpen Source

versereel: Poem Videos With Original Ambient Music, as a CLI, MCP Server and Claude Skill

An open-source Python package I published to PyPI. It turns a poem or quote into a calm text-only vertical video (Shorts, Reels, TikTok) with an ambient music bed that is synthesised from scratch, so there is nothing to license. It handles Urdu Nastaliq and other right-to-left scripts, and ships as a CLI, a Python API, an MCP server and a Claude Code skill. It grew out of my own poetry Shorts channel, where the same code produced over a hundred videos.

Python / MCP / Claude skill / Copyright-safe publishingOpen Source

quote-vetter: Check a Quote Is Real and Public Domain Before You Publish It

An open-source tool I built for my own quote and poetry Shorts. Before a quote goes into a video it answers three questions: is it public domain where I publish, did that person really say it, and what credit line should I add. It returns safe, review or avoid with every reason, as a CLI, an MCP server and a Claude Code skill, and it reads versereel poem specs directly.

Have a project like this in mind?

Tell me what you're building. I'll reply by email with questions or a suggested approach.