detect_clones
Find duplicated code (Type 1/2/3 clones)
How to use it
detect_clones is exposed by the Fossil MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the detect_clones tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Fossil MCP
claude mcp add fossil fossil-mcpOther tools in Fossil MCP (7)
Detect unreachable code with configurable confidence
Find AI scaffolding: phased comments, TODOs, placeholders, and temp files
Get rich context about a specific finding
Inspect call graph, data flow, control flow, or blast radius for any function
Incremental re-analysis after file changes (fast)
Find call paths between two functions — understand how code connects
Run all analyses (dead code + clones + scaffolding) on a project