npm: Auth Status
npm_auth_statusDiagnose missing npm tools by checking auth status: token source, account, 2FA state, write access, and cached OTP. Call first when an expected tool is absent.
Instructions
Report what this server can and cannot do: whether a token is configured and where it came from, which npm account it belongs to, whether two-factor authentication is on, whether writes are enabled, and whether a one-time password is currently cached. Call this first when a tool you expected is missing — an absent tool means missing configuration rather than a bug. trusted_publishing_available is true, false, or "unknown" when a probe npm refused left the answer undetermined — read blockers and undetermined for which. It is an ACCOUNT-level answer: npm also refuses the trust endpoints per package, which this cannot see, so a true here is not a promise that any particular package will work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||