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
  • package.search
  • Parameters
  • package.resolve
  • Parameters
  • package.update
  • Parameters
  • package.deprecate
  • Parameters
  • package.undeprecate
  • Parameters
  • package.unpublish
  • Parameters
  1. Registry
  2. /
  3. Agent Resources
  4. /
  5. MCP
  6. /
  7. Tools
  8. /
  9. Packages

Packages

Search a registry, resolve versions, and deprecate, unpublish or change the visibility of a package.

A package's $id looks like /account/<account>/registry/<registry>/package/<name>, with the name percent-encoded (@acme/utils is %40acme%2Futils). Read it from a registry's links or from package.search results, don't build it.

Example call
{
  "name": "package.deprecate",
  "arguments": {
    "target": "/account/acme/registry/main/package/%40acme%2Futils",
    "input": { "message": "Use @acme/utils2 instead." }
  }
}

package.search

Search the registry's packages by name, description and keywords.

  • Target: a Registry
  • Privilege: none. Offered to anyone who can read the registry.
  • Hints: Read-only Untrusted content

Parameters

ParameterTypeRequiredDescription
targetstringYesThe $id of the registry.
input.qstringYesWhat to search for, in natural language, such as date formatting. 1–1024 characters.
input.orderstringNoThe order of the packages: name asc, updatedAt desc, downloads desc or relevance desc. Defaults to name asc.

package.resolve

Resolve a semver range to the highest version of the package that matches it.

  • Target: a Package
  • Privilege: package:read. Offered to anyone who can read the package.
  • Hints: Read-only Untrusted content

Parameters

ParameterTypeRequiredDescription
targetstringYesThe $id of the package.
input.rangestringYesA semver range or an exact version.

package.update

Change whether the package is public.

  • Target: a Package. Not offered on public upstream mirrors.
  • Privilege: package:visibility
  • Hints: Untrusted content

Parameters

ParameterTypeRequiredDescription
targetstringYesThe $id of the package.
input.isPublicbooleanYesWhether anyone may read the package, including anonymous users and non-members.

package.deprecate

Mark every version of the package as deprecated.

  • Target: a Package
  • Privilege: package:write
  • Hints: Untrusted content

Parameters

ParameterTypeRequiredDescription
targetstringYesThe $id of the package.
input.messagestringYesDeprecation message shown to users. Must not be empty.

package.undeprecate

Clear the deprecation of every version of the package.

  • Target: a Package
  • Privilege: package:write
  • Hints: Idempotent

Parameters

ParameterTypeRequiredDescription
targetstringYesThe $id of the package.

package.unpublish

Unpublish every version of the package. This cannot be undone.

  • Target: a Package. Not offered on mirrors.
  • Privilege: package:write
  • Hints: Destructive Idempotent

Parameters

ParameterTypeRequiredDescription
targetstringYesThe $id of the package.

Previous: ReadRead any resource of the vlt.io API and follow its links.Next: Versions & Dist-tagsDeprecate or unpublish a single version, and move or remove dist-tags.

On this page

  • package.search
  • Parameters
  • package.resolve
  • Parameters
  • package.update
  • Parameters
  • package.deprecate
  • Parameters
  • package.undeprecate
  • Parameters
  • package.unpublish
  • 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