provision_node_dependencies
installs a Node.js app's dependencies (`npm install` from `package.json` inside the app's virtualenv) for an owned app. For non-git apps (git deploys install via `.cpanel.yml`). App must already exist and `package.json` must be present under `app_root`. Potentially long-running; oversized trees return `install_too_large` steering to git + `.cpanel.yml`. Confirm with the user (runs package install scripts). Only suitable for small/medium dependency trees — LARGE apps frequently cannot be installed or built on the server (time/resource limits). For large projects deploy a PREBUILT app instead: run `npm install` and any build step locally or in CI and upload the resulting built/bundled output via deploy_site_from_url, or a private git repo + `.cpanel.yml` that copies the prebuilt files, rather than calling this tool — a bundled production build is self-contained, so `node_modules` does not need to be uploaded.
Invoked over the MCP transport with a tools/call request naming this tool.
Authorization #
Requires a valid OAuth 2.1 bearer access_token whose grant includes the cpanel:uapi scope — Manage your hosting account via cPanel — read and change settings on the cPanel features JetHost has enabled (this can modify your account). The broker resolves the caller from the token and returns only records the account owns.
Parameters #
Response #
200 · application/json
Errors #
| Result | When |
|---|---|
| { "error": "invalid_app_root" } | See the tool description for when this result is returned. |
| { "error": "unavailable_on_server" } | The backing module is not rolled out on that hosting server yet. |
| { "error": "not_found" } | The requested item does not exist, or it belongs to another account. Cross-account IDs are indistinguishable from missing ones by design. |