safe-fix-mcp
v0.1.1Finds real dead code and proposes a safe, test-gated branch+PR to remove it.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scan_dead_code
Scan a Python repository for real dead code (vulture) and dependency issues (deptry). Read-only — never modifies anything. Returns a human-readable list of findings, or "No real candidates found." repo_path: path to the repository to scan (must contain a pyproject.toml for the dependency checks to run; dead-code scanning works regardless). min_confidence: vulture's own confidence threshold (0-100). Lower values surface more candidates but more false positives.
| Parameter | Type | Description |
|---|---|---|
min_confidence | integer | |
repo_path | string |
propose_removal_pr
Propose a real branch+PR removing only unused imports (single-name import lines, >= 90% vulture confidence) from a Python repository. Runs the repo's own full test suite as a safety gate before ever committing or pushing — a failure there reverts everything and nothing is committed or pushed. If `gh` isn't available or PR creation otherwise fails, the branch is still committed and pushed for real; only the PR itself needs opening manually. A human always merges — this never merges anything itself. repo_path: path to a real git repository with a clean workin…
| Parameter | Type | Description |
|---|---|---|
repo_path | string |