npm_publish_preflight
Run pre-publish checks for an npm package: verify auth token, 2FA, name availability, and maintainer access. Get a pass/fail/warn checklist with commands for issues requiring human action.
Instructions
Comprehensive pre-publish validation — run before publishing ANY npm package. Returns an actionable checklist with pass/fail/warn for each item.
ASSUMES NON-INTERACTIVE CONTEXT BY DEFAULT because MCP servers are called by AI agents that:
CANNOT open browsers (so --auth-type=web is useless)
CANNOT enter OTP codes
CANNOT retry with 2FA — this is a hand-off to the human
Checks: auth token validity, 2FA requirements, token type inference, org-level token reuse, package name availability, maintainer access, scoped package settings.
When issues are found, returns structured actions with exact commands for the HUMAN to run in their terminal — never suggests actions an agent cannot perform.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Package name to publish (e.g. '@yawlabs/npmjs-mcp') |