npm_org_member_set
Assign or update an npm user's role in an organization, preserving their current role when none is specified. Prevents accidental demotion by re-sending the existing role explicitly.
Instructions
Add a user to an org or change their role. Roles: 'developer', 'admin', 'owner'. If the user is already in the org, updates the role. Omitting role keeps the member's current role: this tool reads the roster first and re-sends the existing role explicitly, because the registry DEFAULTS an omitted role to 'developer' rather than preserving it (which would silently demote an admin or owner). For a user who is not yet a member, omitting role adds them as 'developer'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | Yes | Organization name (with or without leading @) | |
| role | No | Role to assign | |
| user | Yes | npm username | |
| confirm | Yes | Must be literally true. Guards against accidental org membership changes. |