Diagnose the project's install
diagnoseRuns a read-only health check of Node.js dependencies, compares versions and lockfiles, detects native module issues, and returns findings plus a minimal fix plan with a plan_id for apply_fix.
Instructions
Health check of installed dependencies: Node version vs .nvmrc/engines, node_modules vs lockfile, missing or out-of-range dependencies, native modules built for another Node/OS, mixed package managers. Returns findings and the smallest fix plan (with a plan_id for apply_fix). Read-only.
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": "diagnose"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Project root containing package.json. Defaults to the server's working directory. | |
| native | No | Load native addons to check their ABI (default true, slower). |