detect_cycles
Find circular dependency chains
How to use it
detect_cycles is exposed by the FileScopeMCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the detect_cycles tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL FILESCOPEMCP LISTINGOther tools in FileScopeMCP (16)
Drop files/patterns from tracking (destructive)
Find all symbols that a named symbol calls (TS/JS call graph)
Find all symbols that call a named symbol (TS/JS call graph)
Top files by importance score with dependency counts
Resolve a symbol name to file + line range; supports prefix match via trailing
Louvain-clustered file groups by import coupling
Cycles involving a specific file
Everything about a file: summary, concepts, change impact, exports, deps, staleness
Files changed since a timestamp or git SHA
Full file tree (no args) or flat top-N by importance (with maxItems)
Queue files for LLM summarization via the broker
Search file metadata across symbols, summaries, purpose, and paths
Point at a different project
Manually set a file's importance score (0-10)
Manually set or override a file's LLM summary
Broker connection, queue depth, LLM progress, watcher state