Dependency/import mapper MCP tool. Scans a directory and outputs which files import which packages and which local files reference each other. Useful for understanding blast radius before refactoring.
Go, Python, JavaScript/TypeScript, Zig, Rust, C/C++, Swift, Java/Kotlin, Ruby, Shell
go build -o imports
codesign -s - imports
sudo cp imports /usr/local/bin/Or with just:
just installRegister with Claude Code:
claude mcp add --transport stdio imports -- importsThen call via MCP:
{
"dir": "/path/to/project",
"recursive": true,
"ext": ".go"
}imports --cli --dir /path/to/project
imports --cli --dir /path/to/project --recursive
imports --cli --dir /path/to/project --ext .goReturns JSON with:
files— per-file imports with package name, type (stdlib/external/local/relative/system), and line numberpackages— reverse index mapping each package to the files that import itsummary— human-readable scan summary
MIT