Compresses circular dependency graphs into structured, token-efficient context for Claude
git clone https://github.com/camtisocial/depclean
cd depclean
npm install
npm run buildclaude mcp add --scope user depclean node /absolute/path/to/depclean/dist/src/mcp.jsRestart Claude Code. From any project, just ask:
"Fix the circular dependencies in this codebase"
Claude will automatically call analyze_dependencies, receive a pattern-classified list of clusters and the exact import lines forming each cycle, and apply surgical fixes.
# Detect cycles
node dist/src/index.js analyze ./your-project
# Get AI fix suggestions (requires ANTHROPIC_API_KEY)
node dist/src/index.js suggest ./your-project