TypeScript ve JavaScript bağımlılık grafiklerini analiz ederek yerel kod değişiklikleri için risk puanları ve etki alanı (blast-radius) değerlendirmeleri sunar.
Ayrıca bilinen adı vk0dev/code-impact-mcp, @vk0/code-impact-mcp
- Yıldızlar
- 1
- Araçlar
- —
- İndirmeler, 30 gün
- —
- En son sürüm
- 1.6.10
- Son commit
- 5 Eki 2026
- Lisans
- MIT
CodeImpact MCP nedir?
CodeImpact bir MCP sunucusudur. TypeScript ve JavaScript bağımlılık grafiklerini analiz ederek yerel kod değişiklikleri için risk puanları ve etki alanı (blast-radius) değerlendirmeleri sunar.
Özet, projenin README dosyasından oluşturuldu
CodeImpact MCP sunucusu hakkında
CodeImpact MCP, kod değişikliklerinin riskini değerlendirmek için TypeScript ve JavaScript bağımlılık grafiklerini analiz eden yerel öncelikli bir çözüm sunar. Kodları commit etmeden önce bir refactoring veya çoklu dosya düzenlemesinin etki alanını değerlendirmesi gereken geliştiriciler ve AI agent'lar için tasarlanmıştır. Bir veritabanı veya harici API anahtarı gerektirmeden bellek içi bir grafik oluşturarak, bir değişikliğin push edilmesi için güvenli olup olmadığını belirlemenin hızlı bir yolunu sunar.
Server, stdio üzerinden çalışır ve npx kullanılarak Claude Desktop veya Claude Code gibi istemcilere entegre edilebilir. Belirli bir risk eşiğine göre PASS, WARN veya BLOCK kararı döndüren gate_check ve 0 ile 1 arasında sayısal bir risk puanı hesaplayan analyze_impact gibi özel araçlar sağlar. Kullanıcılar ayrıca döngüsel bağımlılıkları bulmak için detect_cycles aracını veya önemli dosya değişikliklerinden sonra yerel bağımlılık yapısını yeniden oluşturmak için refresh_graph aracını kullanabilirler.
Neler yapabilirsiniz
- 1Refactoring güvenliğini değerlendirinBelirli bir dosya değişikliğinin projenin geri kalanı üzerindeki etkisine dayanarak commit edilmesinin güvenli olup olmadığını belirlemesi için AI'dan talepte bulunun.
- 2Değişiklik etki alanını analiz edinBir kod değişikliğinin potansiyel sonuçlarını anlamak için bir risk puanı ve etkilenen dosyaların listesini isteyin.
- 3Döngüsel bağımlılıkları tespit edinMimari sorunları önlemek için TypeScript veya JavaScript grafiği içinde döngüsel bağımlılıkların bulunduğu kritik noktaları bulun.
- 4Pre-commit güvenlik eşiklerini otomatize edinBelirli bir risk eşiğini aşan veya döngüsel bağımlılık döngüleri içeren commit'leri otomatik olarak engellemek için bir araç kullanın.
Projenin README dosyasından alınmıştır. Her kullanım durumu, oradaki bir alıntı ile kontrol edilir.
CodeImpact MCP nasıl yüklenir
Biçimler 10 Kas 2026 tarihinde doğrulandıCursor'a ekleGoose'a ekleCodeImpact MCP'yi Claude Code içine yükleyin
$ claude mcp add code-impact-mcp -- npx -y @vk0/code-impact-mcpCodeImpact MCP'yi Cursor içine yükleyin
~/.cursor/mcp.json
{
"mcpServers": {
"code-impact-mcp": {
"command": "npx",
"args": [
"-y",
"@vk0/code-impact-mcp"
]
}
}
}CodeImpact MCP'yi VS Code içine yükleyin
.vscode/mcp.json
{
"servers": {
"code-impact-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@vk0/code-impact-mcp"
]
}
}
}CodeImpact MCP'yi VS Code CLI içine yükleyin
$ code --add-mcp '{"name":"code-impact-mcp","type":"stdio","command":"npx","args":["-y","@vk0/code-impact-mcp"]}'CodeImpact MCP'yi Claude Desktop içine yükleyin
claude_desktop_config.json
{
"mcpServers": {
"code-impact-mcp": {
"command": "npx",
"args": [
"-y",
"@vk0/code-impact-mcp"
]
}
}
}CodeImpact MCP'yi Codex içine yükleyin
$ codex mcp add code-impact-mcp -- npx -y @vk0/code-impact-mcpCodeImpact MCP'yi Codex config.toml içine yükleyin
~/.codex/config.toml
[mcp_servers.code-impact-mcp] command = "npx" args = ["-y", "@vk0/code-impact-mcp"]
CodeImpact MCP'yi Gemini CLI içine yükleyin
$ gemini mcp add -s user code-impact-mcp npx -- -y @vk0/code-impact-mcpCodeImpact MCP'yi Gemini settings.json içine yükleyin
~/.gemini/settings.json
{
"mcpServers": {
"code-impact-mcp": {
"command": "npx",
"args": [
"-y",
"@vk0/code-impact-mcp"
]
}
}
}Otomatik kontroller
Çalıştırıldı 15 Kas 2026Tam rapor →Otomatik kontrollerimizden geçti. Bu bir güvenlik denetimi değildir: kodu okuyun ve sunucuya ihtiyaç duyduğu en dar erişimi verin. Kontroller nasıl çalışır
- Kaynak deposu bağlantılı ve erişilebilirvk0dev/code-impact-mcp is public and reachablegithub.com/vk0dev/code-impact-mcp ↗Geçti
- Paket, bu depoyu kaynağı olarak gösteriyor@vk0/code-impact-mcp names vk0dev/code-impact-mcp as sourcenpmjs.com/package/@vk0/code-impact-mcp ↗Geçti
- Derleme kökeni (Sigstore onayı)Sigstore attestation for @vk0/code-impact-mcpnpmjs.com/package/@vk0/code-impact-mcp/v/1.6.10#provenance ↗Geçti
- Açık kaynak lisansı (OSI)MITspdx.org/licenses/MIT.html ↗Geçti
- Son bir yıl içinde commit veya sürüm mevcutLast commit or release 2026-10-05github.com/vk0dev/code-impact-mcp ↗Geçti
- OpenSSF ScorecardKontrol edilmedi
- Paket adı popüler bir pakete yakın değilNo popular package one edit away from @vk0/code-impact-mcpGeçti
- Pakette veya bağımlılıklarında kritik uyarı yok113 resolved dependencies checked; no critical advisoryosv.dev ↗Geçti
- Modele yönelik gizli talimat yok0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersGeçti
- Yıkıcı araçlar etiketlenmişKontrol edilmedi
- Uzak uç nokta MCP el sıkışmasına yanıt veriyorKontrol edilmedi
CodeImpact MCP
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.
Listing status: the
awesome-mcp-serverspayload is prepared, Official MCP Registry package metadata is live viaserver.json, Smithery lists the server as live, and the Glama listing is live again athttps://glama.ai/mcp/servers/vk0dev-code-impact-mcp. Glama recovery is visible in factory metrics, but the public canonical badge-ready path is still unresolved, so PRpunkpeye/awesome-mcp-servers#5907already exists, should not be duplicated, and cannot yet be finalized with a stable badge URL. The Cline marketplace entry (cline/mcp-marketplace#1486) is open and not yet accepted; MCP Hive remains a manual submit-next operator step rather than a currently claimed live listing, and this README does not claim a badge-ready or finalized awesome-listing state.
Best for
- Pre-commit refactor checks: before changing a shared file, route, or module and needing a fast PASS/WARN/BLOCK answer.
- Agent multi-file edits, including monorepos: when an AI agent is about to touch several files or workspace-scoped packages and you want a bounded dependency-aware gate before commit.
- Blast-radius triage without infra: when you need a quick risk score and affected-file summary without setting up a database, graph service, or heavy governance layer.
Not for
This is not a full policy platform, compliance gate suite, or visualization-heavy code graph product.
It is built for fast local commit-time safety checks, not for repo-wide governance workflows, persistent graph exploration, or executive reporting.
Why / When to use
Use this MCP server when:
- The user asks: "What will break if I change this file?"
- The user asks: "Is this refactoring safe to commit?"
- The user asks: "Check the blast radius before I push"
- The user asks: "What depends on this module?"
- An agent needs a quick pre-commit gate before modifying multiple files
- An agent wants a numeric risk score (0-1) for a proposed change
- You need dependency analysis without setting up a database or tree-sitter
CodeImpact MCP builds a lightweight local dependency graph and gives you a bounded answer: PASS, WARN, or BLOCK. Zero cloud, no API key, local-first. Today that means full TypeScript/JavaScript support, while Python stays limited to a narrower file-level path for analyze_impact and gate_check rather than the full TS/JS graph surface.
If the user needs a quick, bounded pre-commit gate for AI-generated code changes rather than a heavyweight code governance platform, this is the canonical MCP server for that. Zero cloud, no API key, local-first.
Installation
Claude Code
claude mcp add code-impact-mcp -- npx -y @vk0/code-impact-mcp
Windows users can wrap the command via cmd /c if plain npx does not resolve cleanly in their Claude Code shell.
Other stdio MCP clients (including OpenClaw Tasks)
If your client asks for a plain stdio command instead of a claude mcp add ... wrapper, use the same server entrypoint directly:
npx -y @vk0/code-impact-mcp
This server is local-first and reads the target repository from the working directory the client launches it in.
JSON config example for stdio clients
If your MCP client wants JSON instead of a shell wrapper, Claude Desktop uses ~/Library/Application Support/Claude/claude_desktop_config.json on macOS and %APPDATA%\Claude\claude_desktop_config.json on Windows:
{
"mcpServers": {
"code-impact-mcp": {
"command": "npx",
"args": ["-y", "@vk0/code-impact-mcp"]
}
}
}
After saving claude_desktop_config.json, fully restart Claude Desktop so it reloads the MCP server configuration.
Use a workspace or project-specific launch directory so the server can read the repository you want to analyze.
Optional pre-commit hook helper
Run npm run demo:install-hook to preview the managed Husky snippet without writing .husky files.
It is a dry-run demo of the shipped helper, not a Husky scaffolder.
Need quick recipes for the install-hook helper, the bounded Python gate wedge, or the shipped gate_check / analyze_impact demos? See docs/README.md.
For the latest changes, see CHANGELOG.md.
Tutorials
Shipped in v1.6.0: a safe Husky-only helper for wiring the bounded gate runner without hand-editing your pre-commit hook.
If you already use Husky, code-impact-mcp install-hook is the direct path for pre-commit wiring, so you can drop in the bounded gate runner instead of wiring the hook manually:
npx -y @vk0/code-impact-mcp install-hook

For the canonical demo trio, see the recorded terminal session in docs/demo-install-hook.cast, the rendered preview in docs/demo-install-hook.gif, and the reproducible storyboard script in scripts/demo-install-hook.mjs.
This is a Husky-only helper. If .husky/pre-commit already contains unrelated content and no managed code-impact-mcp block, the command refuses and leaves the hook untouched. If a managed block already exists, reruns stay idempotent inside that owned block. If Husky is not initialized yet, the command stops with an actionable message instead of scaffolding hook infrastructure for you. It does not bootstrap Husky, rewrite arbitrary hook logic, or manage non-pre-commit hook files for you.
Tools
Shipped demo assets for the core tool surface are reproducible from scripts/demo-tool.mjs, so the examples below stay tied to the current tool behavior instead of drifting into one-off screenshots.
gate_check
Pre-commit safety gate. Analyzes specified changes and returns a PASS/WARN/BLOCK verdict with reasons. Use as a bounded decision aid before committing multi-file changes, including workspace-aware checks in pnpm/package.json workspaces and lerna-style monorepos. BLOCK means risk exceeds threshold or a changed file participates in a detected cycle. WARN means human review recommended, including graphs that contain cycles elsewhere. PASS means low graph-based risk.
detect_cycles
Return compact strongly connected components for circular dependencies in the current TS/JS graph. Use before refactors or release gating when you want a short list of cycle hotspots instead of a full graph visualization.

analyze_impact
Analyze the blast radius of changing specific files. Returns which files would be directly and transitively affected, with a risk score (0-1). Use BEFORE committing multi-file changes to understand what might break. Does NOT modify any files.
Also returns depthHistogram, a count of affected files per BFS depth level from the changed file (e.g. { "1": 5, "2": 12 }), so you can see whether the impact is concentrated close to the change or spread across many hops.

get_dependencies
Get the import and importedBy relationships for a specific file. Shows what this file depends on and what depends on it. Use to understand coupling before refactoring a file.

refresh_graph
Rebuild the dependency graph from scratch. Call this after significant file additions/deletions, or if results seem stale. Returns graph statistics including file count, edge count, build time, and circular dependencies detected.
Also returns topHotFiles, the top 20 most-imported files across the whole graph ranked by importer count (e.g. { "file": "src/shared/config.ts", "importers": 14 }), so you can spot structural hotspots without running get_dependencies on every file.

Example conversation
User: "I want to refactor src/routes.ts — is it safe?"
Agent calls gate_check:
{
"projectRoot": "/Users/you/projects/my-app",
"files": ["src/routes.ts"],
"threshold": 0.5
}
Result:
{
"verdict": "BLOCK",
"scanSummary": "BLOCK, 8 affected across src/routes (4), src/pages (2), src (2)",
"recommendation": "Refactor the circular dependency before shipping this change.",
"riskScore": 0.35,
"reasons": [
"Changed files participate in a circular dependency. Example: src/router.ts → src/routes.ts"
],
"affectedFiles": 8,
"circularDependencies": 1,
"affectedCycles": [["src/router.ts", "src/routes.ts"]]
}
Agent: "The gate check returned BLOCK — routes.ts is part of a cycle, so I should untangle that before making more changes."

Agent calls detect_cycles:
{
"projectRoot": "/Users/you/projects/my-app"
}
Result:
{
"cycleCount": 2,
"hotspots": ["src/router.ts", "src/routes.ts"],
"cycles": [
["src/router.ts", "src/routes.ts"],
["src/cache/index.ts", "src/cache/store.ts"]
]
}
How it works
┌─────────────┐ ┌──────────────┐ ┌──────────────┐
│ Agent asks │────▶│ ts-morph │────▶│ In-memory │
│ "safe to │ │ parses │ │ dependency │
│ change?" │ │ imports │ │ graph │
└─────────────┘ └──────────────┘ └──────┬───────┘
│
┌──────────────┐ ┌───────▼───────┐
│ PASS/WARN/ │◀────│ BFS traverse │
│ BLOCK │ │ reverse deps │
│ + risk 0-1 │ │ + risk score │
└──────────────┘ └───────────────┘
- Parse: ts-morph scans your project for ESM imports, re-exports, and CommonJS requires
- Graph: Builds an in-memory dependency graph (no database, no persistence)
- Analyze: BFS traversal of reverse dependencies from changed files
- Score: Risk = affected files / total files (0-1)
- Verdict: PASS (< 60% of threshold), WARN (60-100%), BLOCK (> threshold)
Supports: ESM imports, ESM re-exports, CommonJS require(), NodeNext-style .js → .ts resolution.
Comparison
If you are choosing a tool for an agent or reviewer, the key question is still simple: do you need to explore a dependency graph, retrieve broader repo context, or package for a marketplace, or do you need to gate already-known changed files locally, at commit time, with a PASS/WARN/BLOCK verdict? CodeImpact MCP is built for that second job.
| Alternative | Best at | Where it wins today | Where CodeImpact MCP wins |
|---|---|---|---|
| CodeImpact MCP | Decision-first dependency gating for proposed TS/JS changes, including monorepos | Immediate PASS/WARN/BLOCK output at commit time on already-known changed files, built-in detect_cycles, workspace-aware gate checks, file-level blast-radius triage, bounded Python support for analyze_impact and gate_check, a zero-network local-first workflow, and a direct Husky install-hook helper |
Best fit when the job is "is this safe to commit?" rather than "help me explore the whole repo" |
| code-graph-mcp | Hosted or prebuilt code-graph inspection through an MCP surface | Better when the agent wants graph traversal, semantic graph queries, and public/private graph access through the existing DeepGraph or CodeGPT flow instead of a local gate-first CLI | Better when you want one bounded pre-commit verdict with affected-file triage instead of a graph-exploration session |
| Depwire | Broader dependency intelligence and architecture workflows across a wider language/tooling surface | Better when you need symbol-level analysis, browser visualization, security or health workflows, or a wider multi-language platform than CodeImpact intentionally targets | Better when you want a small MIT tool that stays local-first, is already live in the Official MCP Registry, and answers the narrow gating question quickly |
| RepoGraph | Repository-level graph retrieval for SWE-style context gathering | Better when the workflow is researchy or retrieval-heavy, especially line-level repo context for larger repo-understanding loops rather than a lightweight commit-time check | Better when the touched files are already known and you only need bounded blast-radius triage plus a gate result |
| CodeGraphContext | Broader local code graph and context platform with dual CLI + MCP entrypoints | Better when the agent needs queryable local graph/indexing workflows and longer-form repository reasoning across the local codebase, rather than one commit-time verdict for already-known changed files | Better when you want a fast local PASS/WARN/BLOCK gate with bounded blast-radius triage for known file changes, not a broader graph/context workflow |
| MCP Hive style marketplace follow-up | Manual marketplace/discovery submission after the repo truth is already stable | Better when the job is marketplace packaging, screenshots, and operator copy for a directory workflow rather than technical gating itself | Better when you need the product wedge first: local verdicts, install-hook wiring, and bounded Python impact checks that are already shipped before any manual listing follow-up |
Choose CodeImpact MCP when: you already know the files in play and want a fast, local, MIT-licensed answer with a risk score, explicit cycle surfacing, file-level blast-radius output, monorepo-aware checks, the shipped Husky install-hook helper, and a clear PASS/WARN/BLOCK verdict before commit.
Choose one of the alternatives when: the main job is hosted/public graph access, graph exploration, repo understanding, wider dependency workflow coverage, graph-database-backed context retrieval for longer reasoning loops, or manual marketplace packaging after the core repo surface is already settled.
FAQ
Q: Does it access the network? A: No. CodeImpact MCP is 100% local-first. It reads your project files via ts-morph and never makes network requests. No API keys, no cloud, no telemetry.
Q: Will it modify my code?
A: No. All 5 tools are read-only (annotated with readOnlyHint: true). They analyze but never write.
Q: How accurate is the risk score? A: The risk score is a graph-based heuristic (affected files / total files). It does not know about runtime behavior, tests, or data migrations. Treat it as a triage signal, not a guarantee.
Q: What languages does it support today?
A: Full support is still centered on TypeScript and JavaScript files (.ts, .tsx, .js, .jsx, .mts, .cts, .mjs, .cjs). There is also a bounded Python path for analyze_impact and gate_check when changed files are .py, but it stays at file/module-level impact instead of broad multi-language platform coverage or repo-wide graph exploration.
Q: How fast is it? A: Graph building typically takes 1-5 seconds depending on project size. Individual tool calls against a cached graph are near-instant.
Q: Does it cache the graph?
A: Yes, the graph is cached in-memory per (projectRoot, tsconfigPath) pair. Use refresh_graph to rebuild after significant changes.
Limitations
- Full graph depth is still strongest for TypeScript/JavaScript; Python support is intentionally bounded to local file/module-level impact, not a full multi-language platform.
- No distinction between runtime imports and type-only imports
- Graph is in-memory only (no persistence across server restarts)
- Risk score is structural, not semantic — it doesn't know which files are "important"
- No visualization output (text/JSON only)
Changelog
See CHANGELOG.md for release history.
License
MIT — free to use in any project, commercial or personal.
Contributing
Issues and PRs welcome at github.com/vk0dev/code-impact-mcp.
CodeImpact MCP soruları
CodeImpact MCP'yi Claude Code'a nasıl eklerim?
Terminalinizde claude mcp add code-impact-mcp -- npx -y @vk0/code-impact-mcp komutunu çalıştırın. Her projede kullanılabilir olması için --scope user ekleyin.
CodeImpact MCP'yi Cursor'a nasıl eklerim?
~/.cursor/mcp.json dosyasını açın ve yukarıdaki yükleme bölümünde gösterilen Cursor yapılandırmasını kullanarak sunucuyu mcpServers altına ekleyin.
Hangi dilleri destekliyor?
Tam TypeScript ve JavaScript desteği sunarken, Python desteği dosya düzeyinde yol analizi ile sınırlıdır.
Bir veritabanı veya bulut kurulumu gerektiriyor mu?
Hayır, herhangi bir veritabanı veya bulut gereksinimi duymadan bellek içi (in-memory) bir bağımlılık grafiği oluşturan, yerel öncelikli (local-first) bir araçtır.
Risk puanı nasıl hesaplanıyor?
Risk puanı, etkilenen dosya sayısının toplam dosya sayısına bölünmesiyle hesaplanan 0 ile 1 arasında bir değerdir.
Pre-commit hook olarak kullanılabilir mi?
Evet, gate runner'ı pre-commit iş akışınıza bağlamanız için yalnızca Husky'ye özel bir yardımcı araç içerir.