Dead Code & Export Auditor

Dead Code & Export Auditor MCP Connector for Claude

A+

Identify unused exports and unreachable code paths using deterministic AST-driven reference counting.

3 tools Official Updated Oct 1, 2026 Official Vinkius Partner

The Dead Code & Export Auditor connects AI agents to your codebase's structural integrity. By parsing files into an Abstract Syntax Tree (AST), it builds a precise symbol table and performs deterministic reference counting to find unused exports and unreachable code blocks. Use audit_file to inspect specific files, audit_project for global dependency analysis across directories, or get_symbol_manifest to check the usage statistics of a specific identifier.

astdead-codetypescriptauditorrefactoring

3 tools expose this connector's capabilities to your AI agent.

audit_project

Performs a globalThis audit across an entire directory

audit_file

Analyzes a single file for unused exports and unreachable code

get_symbol_metadata

Retrieves usage statistics for a specific identifier

See how to talk to your AI agent using Dead Code & Export Auditor.

Check if there is any dead code in my current directory.

The audit of the current directory found 3 unused exports and 2 unreachable blocks, resulting in a dead code density ratio of 0.05.

Analyze src/utils/math.ts for unused symbols.

In src/utils/math.ts, the symbol `calculateInternalSum` is unused (line 42) and there is an unreachable block starting at line 55.

What is the reference count for the 'Config' class in src/config.ts?

The symbol `Config` in src/config.ts has a reference count of 12 and is not marked as an entry point.

The tool performs an AST traversal to build a symbol table and increments reference counts whenever a symbol is encountered. If `audit_project` finds a symbol with zero references, it is flagged as unused.

Related Connectors