vlt / docs

  • PricingBenchmarks (opens in new window)Community (opens in new window)Feedback
  • Read
  • Packages
  • Versions & Dist-tags
  • Staging
  • Trusted Publishers
  • Projects
  • GitHub
  • Members & Invitations
  • Account & User
  • Connected Apps
  • stageItem.approve
  • Parameters
  • stageItem.reject
  • Parameters
  1. Registry
  2. /
  3. Agent Resources
  4. /
  5. MCP
  6. /
  7. Tools
  8. /
  9. Staging

Staging

Approve or reject versions staged with npm stage publish.

A staged version's $id looks like /account/<account>/registry/<registry>/stage/<id>. The registry's stage collection lists them; reading it takes package:stage.

Both decisions are offered only to a person, not a service token, and each asks for a second factor from the last 10 minutes. The client shows a vlt.io link, or asks you to open one, where you confirm it's you; then the call goes through. See Step-up verification.

When the version is no longer staged, for example because someone already decided on it, the actions are listed with available: false and a reason.

Example call
{
  "name": "stageItem.approve",
  "arguments": {
    "target": "/account/acme/registry/main/stage/4b1Xq0cZ8n3tR7wPz2sKfA"
  }
}

stageItem.approve

Publish the staged version under its dist-tag.

  • Target: a StageItem
  • Privilege: package:write, plus package:visibility when the staged version changes the package's visibility
  • Hints: Needs confirmation Step-up

Parameters

ParameterTypeRequiredDescription
targetstringYesThe $id of the staged version.

stageItem.reject

Delete the staged version and its files, so the version number can be staged again.

  • Target: a StageItem
  • Privilege: package:write
  • Hints: Destructive Idempotent Needs confirmation Step-up

Parameters

ParameterTypeRequiredDescription
targetstringYesThe $id of the staged version.

Previous: Versions & Dist-tagsDeprecate or unpublish a single version, and move or remove dist-tags.Next: Trusted PublishersTrust a GitHub Actions workflow to publish a package, or stop trusting it.

On this page

  • stageItem.approve
  • Parameters
  • stageItem.reject
  • Parameters
Edit this page

Deploy your package on vlt.io

Publish scoped and private packages, manage organizations and access, and give every developer and CI environment a consistent source for public and private JavaScript dependencies.

Publish now