Upgrade planner
upgrade_plannerGenerate a ranked upgrade plan from lockfiles to fix vulnerabilities, including the smallest fixing version, commands, and run order.
Instructions
Ranked upgrade plan for one project (project_path), computed by this server from its lockfiles on disk: the smallest version that fixes each vulnerability, whether a lockfile refresh or a parent upgrade reaches it, the commands and run_order. With the 4DA app attached, app_plan_check compares the app's stored plan; only project_path "*" returns the app's plan across every project (unverified), and its summary starts NOT CHECKED when it cannot. Call when the user asks what to upgrade.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upgrade_planner"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | No | Plan for this one package only (exact name, any ecosystem). Default: every dependency. | |
| include_dev | No | Dev-only packages (labelled isDev). Default (unset): vulnerable devDependencies and dev-only transitive packages are planned, as in vulnerability_scan; true also checks every devDependency for newer releases and deprecation; false leaves dev-only packages out and the summary counts them. | |
| project_path | No | Project directory to plan for, from its lockfiles on disk. "*" for every project: with the 4DA app attached, the app's stored plan across every project it tracks (not checked against the lockfiles). Default: the project the server was started in, when that directory is a project. | |
| risk_threshold | No | Only show upgrades at or above this risk level. Default: all | |
| max_recommendations | No | Max recommendations to return. Default: 20 |