mcp-ship-check
Pre-flight checker for MCP servers. One command tells you whether your repo is ready to publish and exactly what to fix: tool annotations, tests per tool, README, packaging, committed secrets, a live stdio handshake against the real server, and the Glama build spec that actually works.
Most MCP servers listed in directories are abandoned or break on first run. This is the checklist that avoids that, as a CLI, an MCP server and a Claude Code skill. No dependencies for the CLI.
$ pip install mcp-ship-check
$ mcp-ship-check path/to/your-server --live
PASS LICENSE file present
PASS tools discovered statically
5 tools: check_environment, fetch_poem, make_music_bed, plan_poem, render_poem
PASS every tool is named in a test
WARN mcp dependency declared where default installs get it
mcp is only in the optional extra [mcp]
fix: A plain `uv sync` or `pip install .` will not install it and the server will not start. ...
PASS stdio initialize and tools/list succeed
ready in 1.2s; versereel 2.x; 5 tools
PASS all four annotation hints on every tool (live)
WARN every parameter is described
17/17 parameters have no description, e.g. plan_poem.title, plan_poem.stanzas, ...
INFO recommended Glama build spec
Build steps: ["uv pip install --python /usr/local/bin/python --break-system-packages 'versereel[mcp]==0.1.2'", ...]
CMD arguments: ['mcp-proxy', '--', 'python', '-m', 'versereel.mcp_server']
score 95/100 (grade A) 18 pass, 3 warn, 0 fail
What it checks
| Area | Checks |
|---|---|
| Repo | LICENSE, README (install + client config + every tool named), CI runs tests, tests exist and name every tool, git tag for the version |
| Packaging | pyproject metadata, console-script entry point, python -m start-up guard, mcp dependency reachable by a default install |
| Tools (static, AST) | @x.tool(...) found; all four annotation hints (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) explicit; TypeScript server.tool(...) names found |
| Security | known key patterns (placeholders ignored), tracked .env/keys, eval/exec/shell=True to review |
| Live (opt-in) | stdio initialize + tools/list within 10 s, clean stdout (no stray print), real tool descriptions, all four hints, parameter descriptions, snake_case names |
| Glama | prints the build steps and command to paste into Glama's Admin > Dockerfile |
Score is 0-100 with grade A-D. Exit code is 1 on any FAIL (--strict: warnings too), so it works in CI.
mcp-ship-check . # static: reads files, never runs your code
mcp-ship-check . --live # also starts the repo's console script and inspects the real tools
mcp-ship-check . --command "my-server" # explicit launch command
mcp-ship-check . --markdown # paste into a PR; --json for CI; --list-checks
In CI
- run: pip install mcp-ship-check
- run: mcp-ship-check . --command my-server --strict
Safety
Static mode only reads files. --live / --command start the server process, so only use them on code you trust (ideally inside a container). The MCP server wrapper keeps these apart: check_repo is read-only; check_live is annotated as destructive because it runs a command.
As an MCP server
pip install "mcp-ship-check[mcp]"
{ "mcpServers": { "mcp-ship-check": { "command": "mcp-ship-check-mcp" } } }
Tools: check_repo (static, read-only), check_live (runs the server command), list_checks.
As a Claude Code skill
Copy skill/mcp-ship-check/ to ~/.claude/skills/mcp-ship-check/. It runs the checker, applies fixes in the right order, and walks through PyPI, release, Glama and directory listings (references/directories.md).
Why these checks
They come from shipping versereel: missing annotation hints, a Glama default build that could not start the server (extra not installed, entry point not on PATH), no release, and no test per tool each cost time. The checker dogfoods itself: CI runs it against its own MCP server.
Limits
Static tool discovery understands Python @x.tool(...) decorators and simple TypeScript server.tool("name", ...) calls; tools registered another way are only seen in live mode. The Glama spec assumes a package published on PyPI. Checks are heuristics, not a security audit.
Develop
git clone https://github.com/ali-saad-khan/mcp-ship-check && cd mcp-ship-check
uv venv && uv pip install -e ".[dev,mcp]" && pytest
Author
Built by Saad Ali Khan, a full stack and AI engineer. Portfolio: saadconsulting.tech. Available for freelance work on AI tooling, MCP servers and automation.
Licence
MIT
Metadata
Release files for mcp-ship-check 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mcp_ship_check-0.1.0.tar.gz | 22.1 kB | Without provenance | Details for mcp_ship_check-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcp_ship_check-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mcp_ship_check-0.1.0-py3-none-any.whl |
Total release size: 42.2 kB
Release files / mcp_ship_check-0.1.0.tar.gz
| Download URL | mcp_ship_check-0.1.0.tar.gz |
|---|---|
| Size | 22.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4c000be00f90992669ed527f90de63793f876ffba3b64c00be8c6d1ed59dbb9
|
|
BLAKE2b-256 checksum How to use checksums |
059af7cf0273dc5c05fc0566db0b465e52417c171061b3329d2b03c6d813831e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / mcp_ship_check-0.1.0-py3-none-any.whl
| Download URL | mcp_ship_check-0.1.0-py3-none-any.whl |
|---|---|
| Size | 20.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
23ed3f9b1531853448882bc3fc6bf6c5c2ec5c6faef7ac77a2964e559230dd11
|
|
BLAKE2b-256 checksum How to use checksums |
1e4251fb0b614041719bb57570b2e50a320714c193dafcf15968efd5cbc05d13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for mcp-ship-check 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.