pkgtruth
A tool that verifies npm and PyPI package names before AI coding agents install them.
What does it do?
Agents can query the MCP server for package information, while a Claude Code hook checks package names in shell commands before installation. If it finds a risky or nonexistent name, it rejects the command and returns the reason to the agent so it can choose another package. People can check names through the CLI, and teams can add checks at the pull request stage through CI or a GitHub Action. It covers npm and PyPI packages and says installation commands without a specified package name pass without a network lookup.
Key features
- Check whether npm and PyPI package names exist and show risk signals
- Handle agent package verification requests through an MCP server
- Block risky installation commands with a Claude Code hook
- Check CI and pull requests with a CLI and GitHub Action
- Return reasons for blocked commands to help agents select another package