About io.github.om-tajne/pkgdiet
io.github.om-tajne/pkgdiet is an MCP server published by om-tajne in the Healthcare category: put your node_modules on a diet - find unused dependencies, analyze health, and reduce size. Conduid read 5 tools from its source: check_dependencies, check_dependency, explain_verdict, get_policy and suggest_alternative. It is published to npm as pkgdiet and starts with npx.
The repository has 6 stars and 0 forks, and its last commit was on 24 Nov 2026. Conduid has no tagged release on record for it. Its topics include healthcare.
Install
claude mcp add io-github-om-tajne-pkgdiet -- npx -y pkgdietnpx -y pkgdietgit clone https://github.com/om-tajne/pkgdietTools (5)
check_dependenciesEvaluate multiple npm packages in a single batch request against the active PkgDiet policy. Use this read-only tool before scaffolding a new project or proposing multiple packages at once. Limit: 50 packages per request. It does not install packages, modify lockfiles, or alter the workspace.| Parameter | Type | Description |
|---|---|---|
| environment | string | The target environment to apply specific policy overrides. Defaults to 'dev'. |
| packageNames * | array | Array of valid npm package names to evaluate. Limit ${BATCH_MAX_SIZE} per request. |
check_dependencyexplain_verdictRetrieve an in-depth explanation of a package verdict, including detailed component health scores, matched policy rules, OSV vulnerability URLs, and evidence justification. Use this tool when an agent or developer needs to explain why a package was WARNED or BLOCKED without hallucinating.| Parameter | Type | Description |
|---|---|---|
| environment | string | The target environment to evaluate policy for. Defaults to 'dev'. |
| packageName * | string | The npm package name to explain (e.g. 'moment', 'request', 'lodash'). |
get_policyRetrieve the active PkgDiet dependency policy constraints for the current workspace. Use this read-only tool when interpreting a WARN or BLOCK verdict, or to understand the project's health and security rules before scaffolding. It does not modify the policy or any project files.| Parameter | Type | Description |
|---|---|---|
| environment | string | The target environment to retrieve the policy for. |
suggest_alternativeSuggest a lighter, healthier alternative for an npm package. Use this read-only tool when a developer asks for a package replacement, or when check_dependency returns a WARN or BLOCK verdict (e.g., due to bloat, security risks, or deprecation). It returns a curated list of alternative candidates, including compatibility notes, size guidance, and migration steps. Behavior: It queries the PkgDiet curated alternatives dataset for the given package name and returns ranked recommendations based on the specified runtime and reason. Guidelines: Always verify each recommended candidate with the check_dependency tool before actually installing it or presenting it as a final solution. Do not use this tool to install packages.| Parameter | Type | Description |
|---|---|---|
| includeMigrationNotes | boolean | If true, includes API compatibility warnings and migration guidance for the suggested alternatives. |
| maxResults | number | The maximum number of alternative candidates to return. Recommended: 3. |
| packageName * | string | The exact npm package name you want to replace (e.g., 'request', 'moment', 'lodash'). |
| reason | string | The primary reason you are seeking an alternative. Helps rank the best candidates (e.g., choose 'size' if replacing a bloated package). |
| runtime | string | The target runtime environment where the replacement package will be executed. |
Security checks
6 checks have not been run yet.