Skip to main content
Glama

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

Related MCP server: SilentFail

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

Available Tools

3 tools
check_liveA
Destructive

Run all static checks plus live checks: start the server with command (default: the repo's console script) over stdio, do the MCP handshake and inspect the real tool list. This EXECUTES the repository's code: only use it on code you trust.

Inputs: path (required), command, timeout.

check_repoA
Read-onlyIdempotent

Statically check an MCP server repository for shipping readiness (license, README, tests, annotations, packaging, secrets, Glama build spec). Reads files only and never runs the repository's code. Returns score, grade and results with fixes.

Inputs: path (required).

list_checksA
Read-onlyIdempotent

List every check id with a one-line description.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 3 tools

    Disambiguation4/5

    check_repo and check_live are distinct but overlapping: check_live is a documented superset of check_repo, so an agent must read descriptions carefully to pick the cheaper static-only path. list_checks is clearly separate. Overall the boundary is understandable but not perfectly crisp.

    Naming Consistency5/5

    All three tools follow a consistent verb_noun pattern (check_repo, check_live, list_checks) with uniform snake_case. Predictable and readable.

    Tool Count4/5

    Three tools is on the lean side but well matched to a narrow, single-purpose auditing server; each tool earns its place. A slightly richer surface (e.g., per-check execution) would justify more, but nothing feels padded.

    Completeness3/5

    The surface covers static audit, live audit, and check discovery, but list_checks exposes check ids with no tool to run or inspect an individual check, and there is no way to apply or preview the suggested fixes. Minor gaps like output format or targeting a specific check will force workarounds.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Diagnose MCP servers — health checks, tool testing, token cost audits, conflict detection, and security scanning with 50+ prompt injection patterns. Works as CLI or MCP server inside Claude Desktop.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables developers to expose a single set of tool definitions as MCP server tools over stdio or Streamable HTTP, so Claude Code, Codex, Claude Desktop and Cursor can call them with risk-based annotations, human-approved irreversible writes, typed structured results and long-running job handling built in. It also ships the same tools as a CLI from one source, keeping both surfaces in parity.
      569 npm
      Apache 2.0