pkgtruth for Zed
io.github.hxckya/pkgtruth
Catches hallucinated and slopsquatted npm and PyPI packages before an agent installs them.
client:Zed
transport:stdio
runtime:npm
Install pkgtruth in Zed
~/.config/zed/settings.json · windows: %APPDATA%\Zed\settings.json
{
"context_servers": {
"pkgtruth": {
"command": "npx",
"args": [
"-y",
"pkgtruth"
],
"env": {
"PKGTRUTH_REGISTRY": "<PKGTRUTH_REGISTRY>",
"PKGTRUTH_DOWNLOADS_API": "<PKGTRUTH_DOWNLOADS_API>",
"PKGTRUTH_CACHE_DIR": "<PKGTRUTH_CACHE_DIR>",
"PKGTRUTH_TIMEOUT_MS": "<PKGTRUTH_TIMEOUT_MS>"
}
}
}
}
Merge this into your existing settings object — do not replace the file. Zed docs