create_token
Generate a new API token for the currently authenticated Verdaccio user by providing the account password, optionally restricting access with read-only mode or CIDR ranges.
Instructions
Create a new API token for the currently authenticated user in Verdaccio
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": {
"password": "<password>"
},
"name": "create_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cidr | No | CIDR ranges to whitelist for this token, e.g. ["192.168.1.0/24"] | |
| password | Yes | Current user password (required by Verdaccio to create tokens) | |
| readonly | No | Whether the token should be read-only (default false) |