What it does
deadpath finds exported names that no module in a supplied set imports. Given each module's path, its exports and its imports, it reports dead export names and counts per module, a sorted flat list of dead {module, name} pairs, and set-wide totals including a dead_ratio rounded to four decimals. An export counts as used when another module in the set imports it by name, and a module importing its own names also counts. Modules marked entry keep all their exports as used, and side-effect imports with an empty names list keep nothing alive.
It suits cleanup of a codebase whose modules have accumulated exports nobody uses, such as helpers left behind after a caller was deleted. The flat list can drive a cleanup list or a CI check. It is also available as an MCP tool, find_dead_exports, which returns the same report.
It runs as a command-line tool that reads an args.json file containing the arguments object, or as an MCP server exposing find_dead_exports. The computation is pure and local, with no network access, configuration, or file reads beyond the input passed in. Exit codes are 0 on success, 1 on runtime errors including invalid input, and 2 on usage errors.
Limitations and requirements
Every import's from must name a module in the supplied set. An import pointing outside the set, a duplicate module path, a malformed exports entry or a non-boolean entry value returns a validation error naming the offending path, and no partial report is produced. The analysis covers only the modules passed in, so exports used outside the set are reported as dead unless their module is marked entry.
Safety
Our team has not reviewed this resource. Only automated rules checked it; resources with high-risk signals are not published. These are signals, not a guarantee that installing it is safe. Try it in a sandbox project first.
- Runs code or changes an assistant's behaviour
Sources
- Official MCP Registry first seen 13 Nov 2026 · last seen 13 Nov 2026 · its page on the source
io.github.CloudCorpRecords/deadpath
Find exported-but-never-used names across a module set, with import-graph proof.
v0.1.0As shown on registry.modelcontextprotocol.io when we last read it