Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ’» Developer Tools
  3. Ast Impact Mapper MCP
A
Health: Not checked yetWe have not completed a health check for this listing yet.No health check has run yet.

Ast Impact Mapper MCP

User RatingsBe the first to rate and review this MCP server! Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View Repository

MCP server that uses TypeScript AST to find which tests are affected by a code change

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ast-impact-mapper-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ast-impact-mapper-mcp"
      ]
    }
  }
}

πŸ’‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Directory Badge Claim listing AlternativesπŸ’» More in Developer Tools

Documentation Overview

πŸ—ΊοΈ ast-impact-mapper-mcp ✨

npm version npm downloads CI License: MIT

"Stop boiling the ocean. Run only the tests that actually care about your changes." 🐸

ast-impact-mapper-mcp is an advanced Model Context Protocol (MCP) server that analyzes your TypeScript/JavaScript codebase using AST parsing (ts-morph) and dependency graph tracing. It helps AI agents (like Claude or Cursor) target only the relevant tests, find dead code, identify circular import dependencies, and trace API mutations.


🧐 Why import graphs?

Guessing affected tests based on matching filenames (e.g. auth.ts -> auth.test.ts) is highly inaccurate. Running the entire test suite on every minor change is extremely slow.

Import graphs do not lie. If a test file transitively imports a modified source file, it must be run. ast-impact-mapper-mcp builds a bidirectional file dependency graph and answers "which tests should I run?" in milliseconds.


πŸ’‘ Quick Showcase (Real-World e2e Flow)

Imagine your AI agent modifies a shared helper: src/utils/auth.ts. Instead of blindly running all tests or guessing by name, the agent uses this MCP server:

1. Identify Affected Tests

The agent calls get_affected_tests with the changed file:

json
// Tool Call: get_affected_tests({ changed_files: ["src/utils/auth.ts"] })
{
  "changed_files": ["/project/src/utils/auth.ts"],
  "affected_tests": ["/project/tests/checkout.spec.ts"],
  "total_affected": 1
}

2. Explain the Connection

To understand why checkout.spec.ts depends on auth.ts, the agent calls explain_impact:

json
// Tool Call: explain_impact({ changed_file: "src/utils/auth.ts", test_file: "tests/checkout.spec.ts" })
{
  "found": true,
  "import_chain": [
    "/project/tests/checkout.spec.ts",
    "/project/src/fixtures/user-fixture.ts",
    "/project/src/utils/auth.ts"
  ]
}

Aha! The checkout spec imports the user-fixture, which imports auth!

3. Check for Runtime Impact

If the change in auth.ts was only adding a TypeScript interface (type-only change), calling differentiate_type_impact tells the agent:

config.json
{
  "files": [{ "file": "/project/src/utils/auth.ts", "runtime_impact": false }],
  "total_tests_must_run": 0,
  "total_tests_skippable": 1
}

Success! Since it is a type-only change, the agent can skip running tests entirely, saving precious CPU cycles and time.

4. Run Minimal Tests

If it does contain runtime changes, the agent requests the execution command:

json
// Tool Call: generate_test_command({ changed_files: ["src/utils/auth.ts"], runner: "vitest" })
{
  "command": "npx vitest run tests/checkout.spec.ts"
}

πŸ› οΈ MCP Tools Reference

All tools are configured with consistent, type-safe schemas (arguments in snake_case).

1. Impact Mapping & Tracing

  • get_affected_tests

    Finds all test files transitively importing changed source files.

    • Arguments:
      • project_root (string, required): Absolute path to the TypeScript project.
      • changed_files (string[], optional): Modified file paths.
      • git_diff (string, optional): Raw stdout of git diff --name-only.
    • Returns: Detailed map of changed files, affected tests, and totals.
  • get_affected_tests_by_branch

    Automatically diffs the current state against a base branch using git to find affected tests.

    • Arguments:
      • project_root (string, required)
      • base_branch (string, default: "main"): Branch to compare against.
  • get_rename_aware_diff

    Highly robust branch impact analysis that tracks file moves/renames (via git diff -M) and ignores formatting/whitespace changes.

    • Arguments:
      • project_root (string, required)
      • base_branch (string, default: "main")
      • similarity_threshold (number, default: 90): % similarity threshold to declare a move.
  • explain_impact

    Traces and explains the exact chain of imports showing why a changed source file affects a specific test.

    • Arguments:
      • project_root (string, required)
      • changed_file (string, required)
      • test_file (string, required)
  • generate_test_command

    Constructs CLI commands for test runners (vitest, jest, or playwright) matching the affected tests subset.

    • Arguments:
      • project_root (string, required)
      • changed_files (string[], required)
      • runner (enum: jest, vitest, playwright, default: vitest)

2. TypeScript-specific Deep Code Analysis

  • 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!

    • Arguments:
      • project_root (string, required)
      • changed_files (string[], required)
  • 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).

    • Arguments:
      • project_root (string, required)
      • file_path (string, required)
  • 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.

    • Arguments:
      • project_root (string, required)
      • file_path (string, required)
      • include_jsdoc (boolean, default: true)
      • include_private_members (boolean, default: false)
  • get_symbol_dependency_graph

    Traces declaration-level dependencies (functions, classes, variables) across files, finding internal declarations usage.

    • Arguments:
      • project_root (string, required)
      • file_path (string, required)
      • symbol_name (string, optional): Specific export symbol to map.
      • direction (enum: forward, reverse, bidirectional, default: bidirectional)

3. Codebase Health & Graph Insights

  • identify_unreachable_modules

    Finds orphaned source files that have zero incoming imports (dead code safe to prune). Automatically respects standard entry points.

    • Arguments:
      • project_root (string, required)
      • entry_points (string[], optional): Explicit entry-points to exclude from warning.
      • limit (number, default: 50)
  • detect_architectural_cycles

    Locates circular dependency loops (e.g. A β†’ B β†’ C β†’ A) which cause unpredictable module initialization orders.

    • Arguments:
      • project_root (string, required)
  • get_dependency_graph

    Returns direct imports/importers of a file in JSON format or as a visual Mermaid TD flowchart.

    • Arguments:
      • project_root (string, required)
      • file_path (string, required)
      • format (enum: json, mermaid, default: json)
  • get_coverage_gaps

    Identifies files with zero import coverage β€” those that are never imported by any test file.

    • Arguments:
      • project_root (string, required)
      • source_dirs (string[], optional)
      • limit (number, default: 50)
  • get_test_summary

    Provides a high-level view of test coverage rate, deepest import chains, and high-risk most-imported modules.

    • Arguments:
      • project_root (string, required)
  • refresh_project

    Invalidates AST and dependency graphs cache. Run this after checking out branches or pulling remote git updates.

    • Arguments:
      • project_root (string, required)

πŸš€ Installation & Setup

1. Global Installation

Terminal
npm install -g ast-impact-mapper-mcp

2. Configure Editor / Agent Client

VS Code / Cursor

Add the following to your .cursor/mcp.json or .vscode/mcp.json:

config.json
{
  "mcpServers": {
    "ast-impact-mapper": {
      "command": "npx",
      "args": ["-y", "ast-impact-mapper-mcp"]
    }
  }
}

Claude Code CLI

Terminal
claude mcp add ast-impact-mapper npx -- -y ast-impact-mapper-mcp

πŸ’¬ Example Scenario

Imagine you modify a shared page component: src/pages/login-page.ts.

  1. AI Agent runs get_rename_aware_diff: It detects that only tests/auth.spec.ts imports the page object transitively.
  2. AI Agent runs differentiate_type_impact: It sees you only added a type definition interface, classifying it as type_only_change -> it skips running the test execution completely, saving developer cycles!
  3. AI Agent runs explain_impact: If asked why tests/auth.spec.ts depends on it, it renders the path: tests/auth.spec.ts β†’ src/fixtures/app.ts β†’ src/pages/login-page.ts.

πŸ”— The Ecosystem

  • ast-impact-mapper-mcp answers: "Which tests are affected by my changes?" πŸ—ΊοΈ
  • flakiness-graph-mcp answers: "Of those affected tests, which ones are historically unstable?" πŸ“Š
  • Together, they form a perfect feedback loop for running a prioritized, resilient, and minimal test suite.

πŸ› οΈ CLI Development

Terminal
npm run build        # Compile TypeScript to dist/
npm run lint         # Run ESLint validation
npm run format       # Format files via Prettier
npm test             # Run unit tests via Vitest

πŸ“„ License

MIT © vola-trebla 🐸

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Developer Tools View all alternatives
  • Codealive MCP logoCodealive MCP

    Semantic code search and analysis from CodeAlive for AI assistants and agents.

    πŸ’» Developer Tools0 views
    Compare vs Codealive MCP β†’
  • PraisonAI logoPraisonAI

    AI Agents Framework with Self Reflection and MCP support

    πŸ’» Developer Tools1 views
    Compare vs PraisonAI β†’
  • TokenSave logoTokenSave

    Code intelligence for 15+ languages: semantic graph queries instead of file reads. 37 MCP tools.

    πŸ’» Developer Tools0 views
    Compare vs TokenSave β†’
  • Microsoft Learn MCP logoMicrosoft Learn MCP

    Official Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs.

    πŸ’» Developer Tools0 views
    Compare vs Microsoft Learn MCP β†’

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about Ast Impact Mapper MCP

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "ast-impact-mapper-mcp": { "command": "npx", "args": ["-y", "ast-impact-mapper-mcp"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAst Impact Mapper MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ast-impact-mapper-mcp?style=directory)](https://allmcps.com/mcp/ast-impact-mapper-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/ast-impact-mapper-mcp"><img src="https://allmcps.com/api/badge/ast-impact-mapper-mcp?style=directory" alt="Ast Impact Mapper MCP on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ’»Developer Tools
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
Last updatedSep 7, 2026
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
27Quality signal: Emerging Β· 27/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership8/20
Documentation & tools11/30
Adoption & activity1/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge and attach your website β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ’» Developer Tools β†’Best MCP servers for Developers β†’Alternatives to Ast Impact Mapper MCP β†’Install in Claude DesktopInstall in CursorInstall in VS Code