npm_hook_add
Add a webhook to the npm registry for a package, scope, or user, directing POST events to your HTTPS endpoint and using a secret to HMAC-sign payloads.
Instructions
Create a registry webhook. Target is 'pkg' or '@scope/pkg' for a package, '@scope' for a scope, or '~user' for a user's packages. Endpoint is the HTTPS URL to POST events to; secret is used to HMAC-sign payloads. The secret is never echoed back in tool responses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| secret | Yes | Secret used to HMAC-sign webhook payloads | |
| target | Yes | Hook target: 'pkg', '@scope/pkg', '@scope', or '~user' | |
| endpoint | Yes | HTTPS URL that will receive POST events |