MCP Servers / development / ast-impact-mapper-mcp

ast-impact-mapper-mcp

JSON →
nonedevelopment

Uses TypeScript AST to determine which tests are affected by code changes

Install
How to run this server
[ { "cmd": "npx vitest", "imports": [] } ]
server path: ast-impact-mapper-mcp
Tools
What this server exposes
get_affected_tests
Finds all test files transitively importing changed source files.
get_affected_tests_by_branch
Automatically diffs the current state against a base branch using git to find affected tests.
get_rename_aware_diff
Highly robust branch impact analysis that tracks file moves/renames (via git diff -M) and ignores formatting/whitespace changes.
explain_impact
Traces and explains the exact chain of imports showing why a changed source file affects a specific test.
generate_test_command
Constructs CLI commands for test runners (vitest, jest, or playwright) matching the affected tests subset.
differentiate_type_impact
Inspects imports and types to isolate type-only changes (interfaces, types, or import type exports). Helps skip test execution entirely if the changes do not impact the runtime bundle.
analyze_api_surface_mutation
Compares a file against its HEAD version and determines if it modifies the public API (breaking_api_change) or only contains internal implementation edits (internal_refactor).
generate_skeleton_view
Generates a token-optimized skeleton of a file by stripping out function and method bodies, keeping only signatures, JSDocs, and line numbers.
Configuration
Environment & auth
authnone
Resources
ast-impact-mapper-mcp — MCP Server · libregistry