MCP Shipyard

Use it in CI

MCP Shipyard check for GitHub Actions

Scans a remote MCP server on every pull request, diffs its tools against a baseline, writes a job summary and keeps one updated comment on the PR.

Workflow stepyaml
- uses: mcpshipyard/check@v1
  with:
    url: https://my-preview.vercel.app/mcp
    baseline: tools.json
    fail-on: blocker

Inputs

  • urlRequired. The MCP endpoint to check.
  • baselineDefault none. A tools snapshot from `shipyard snapshot <url> > tools.json`. Removed tools or new required params fail the check.
  • fail-onDefault never. blocker or major: fail on failing findings at that severity or worse.
  • headerDefault none. A request header `Name: value` for protected previews. Pass it from a secret.
  • commentDefault true. Post or update the PR comment. Needs pull-requests: write.
  • pr-numberDefault auto. Detected from the PR event, or from the commit for deployment_status.
  • versionDefault latest. The npm version of mcpshipyard to run.

Output: exit-code.

Behavior

  • The PR comment starts with a hidden marker, so reruns edit the same comment.
  • If no PR is found for the commit, for example a push to main, the comment is skipped and the job summary still has the report.
  • The job exits with the scan's exit code: 1 for unreachable servers, fail-on hits and breaking tool changes.

Package note

The action runs npx -y mcpshipyard@latest scan .... That needs the CLI published to npm as mcpshipyard with the shipyard bin. Until it is published, vendor the repository and run the CLI from source.

Try it on a live server first. Scan needs no account.

Scan a server