vk0dev avatar

Code Impact Mcp

vk0dev/code-impact-mcp

Before you commit that refactor, this server tells you what breaks. It builds a local dependency graph for TypeScript and JavaScript repos and exposes four stdio tools: gate_check runs a pre-commit safety gate that returns PASS/WARN/BLOCK verdicts based on blast radius and cycle detection, analyze_impact shows you the transitive ripple of changing specific files with a 0-1 risk score, detect_cycles surfaces strongly connected components so you catch circular dependencies before release, and get_dependencies maps import relationships for single files. No database, no cloud API. The install-hook command wires a Husky pre-commit gate if you want to block risky commits automatically. Useful when an AI agent is editing multiple files and you need a bounded go/no-go answer in seconds.

GitHub stars
1
tools
5
transport
STDIO
last updated
Jun 12, 2026

Tools

5 tools

Public tool metadata for what this MCP can expose to an agent.

gate_checkPre-commit safety gate. Analyzes specified changes and returns a PASS/WARN/BLOCK verdict with reasons.

Pre-commit safety gate. Analyzes specified changes and returns a PASS/WARN/BLOCK verdict with reasons.

No parameter schema in public metadata yet.

detect_cyclesReturn compact strongly connected components for circular dependencies in the current TS/JS graph.

Return compact strongly connected components for circular dependencies in the current TS/JS graph.

No parameter schema in public metadata yet.

analyze_impactAnalyze the blast radius of changing specific files. Returns which files would be directly and transitively affected, with a risk score (0-1).

Analyze the blast radius of changing specific files. Returns which files would be directly and transitively affected, with a risk score (0-1).

No parameter schema in public metadata yet.

get_dependenciesGet the import and importedBy relationships for a specific file.

Get the import and importedBy relationships for a specific file.

No parameter schema in public metadata yet.

refresh_graphRebuild the dependency graph from scratch.

Rebuild the dependency graph from scratch.

No parameter schema in public metadata yet.

Sponsors

Readme

CodeImpact MCP

npm License: MIT CI

Fast pre-commit dependency gate for AI-assisted code changes. Answers "is this safe to commit?" with a PASS/WARN/BLOCK verdict in seconds, so you can catch risky blast radius before a bad commit, not after it. No database, no heavy setup.

日本語 | 中文 | Русский | Español


View the full README on GitHub

Details

Repository
github.com/vk0dev/code-impact-mcp
Package
@vk0/code-impact-mcp
Transport
STDIO
Registry
MCP registry, active

More from vk0dev