npm_hook_add
Create an npm registry webhook to receive POST notifications for package, scope, or user events. Specify target, HTTPS endpoint, and secret for HMAC-signed 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>",
"endpoint": "<endpoint>",
"secret": "<secret>"
},
"name": "npm_hook_add"
}
}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 |