MCP Server Studio
Dependency policy and MCP server to stop AI coding agents from installing risky npm packages.
Registry name: io.github.om-tajne/pkgdiet
Add to claude_desktop_config.json:
{
"mcpServers": {
"pkgdiet": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Run in your terminal:
claude mcp add pkgdiet -- npx -y [email protected]Add to .cursor/mcp.json:
{
"mcpServers": {
"pkgdiet": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"pkgdiet": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"pkgdiet": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}