Repository navigation
v2.0.0 — The MCP Release
Welcome to the biggest update to PkgDiet yet! This release transforms PkgDiet from a standalone CLI into a fully integrated AI guardrail via the Model Context Protocol (MCP).
🚀 Major Features
- Native MCP Server: PkgDiet now runs as a standard MCP server (
npx pkgdiet mcp), exposing tools likecheck_dependencyandsuggest_alternativeto compatible AI agents. - Universal Agent Compatibility: Works out-of-the-box with Claude Desktop, Claude Code, Cursor, Windsurf, Cline, CrewAI, and the Microsoft Agent Framework.
- Zero-Config Integrations: New
setupandagent-setupcommands automatically detect your environment and configure agent files for you. - Enhanced Policy Engine: Stricter enforcement against legacy, bloated, and deprecated packages to prevent AI hallucination loops.
- CI/CD Hardening: Updated GitHub Action workflows for evaluating PR lockfile drift against your
.pkgdietrc.jsonpolicy.
📦 Installation
# Evaluate a package
npx -y pkgdiet@2.0.0 check moment
# Run the MCP server
npx -y pkgdiet@2.0.0 mcp