tool: validate_change
input: { filePath: string, symbol?: string, changeType: "modify" | "delete" | "add" }
output: {
riskScore: number (0-1),
blastRadius: number,
affectedFiles: string[],
affectedTests: string[],
metrics: { pageRank, betweenness, coupling, tension },
recommendation: "low-risk" | "review-recommended" | "high-risk-review-required",
hints: string[]
}
Summary
Add a
validate_changeMCP tool that lets AI agents submit proposed changes and receive risk scoring before modifying code. This is the missing feedback loop — research proves static analysis feedback reduces AI-generated bugs by 70-80% (arXiv 2508.14419).Motivation
Proposed API
Acceptance Criteria
detect_changesfor diff-aware risk scoringPriority
Immediate — This is the #1 opportunity from competitive analysis. No other MCP tool provides this.