Skip to content

v2.0.0 — The MCP Release

Choose a tag to compare

@om-tajne om-tajne released this 21 Sep 21:25
· 228 commits to main since this 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 like check_dependency and suggest_alternative to 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 setup and agent-setup commands 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.json policy.

📦 Installation

# Evaluate a package
npx -y pkgdiet@2.0.0 check moment

# Run the MCP server
npx -y pkgdiet@2.0.0 mcp