Skip to main content
Glama
README.md
<p align="center">
  <img src="./assets/brand/hero.svg" alt="vibe-map banner" width="100%" />
</p>

<p align="center">
  <strong>Dependency intelligence for AI-assisted development</strong>
</p>

<p align="center">
  <a href="#try-it-now">Try it now</a> •
  <a href="#command-guide">Command guide</a> •
  <a href="#mcp-setup">MCP setup</a> •
  <a href="#development">Development</a>
</p>

<p align="center">
  <img src="./assets/brand/divider.svg" alt="divider" width="100%" />
</p>

## Why vibe-map

When AI edits code without dependency context, regressions follow. `vibe-map` scans your repository, builds a dependency graph, and surfaces change risk before you refactor.

- Detect high-risk hub files that many modules depend on.
- Find safe leaf files to modify first.
- Estimate blast radius for any planned change.
- Expose the same analysis through CLI and MCP tools.

## Try it now

```bash
npx vibe-map-mcp scan .
```

Useful follow-ups:

```bash
npx vibe-map-mcp impact src/lib/auth.ts -m "Switching to Prisma"
npx vibe-map-mcp explain src/lib/auth.ts
npx vibe-map-mcp safe .
npx vibe-map-mcp structure .
```

## Command guide

| Icon | Command | What it does |
|---|---|---|
| <img src="./assets/brand/icon-scan.svg" alt="scan" width="22" /> | `scan [path]` | Maps source files and builds dependency graph data. |
| <img src="./assets/brand/icon-impact.svg" alt="impact" width="22" /> | `impact <file> [-d depth] [-m message]` | Shows direct and indirect impact before edits. |
| <img src="./assets/brand/icon-explain.svg" alt="explain" width="22" /> | `explain <file>` | Summarizes purpose, imports/exports, and dependents. |
| <img src="./assets/brand/icon-safe.svg" alt="safe" width="22" /> | `safe [path] [-c category]` | Ranks files by safety score for low-risk edits. |
| <img src="./assets/brand/icon-structure.svg" alt="structure" width="22" /> | `structure [path]` | Detects framework and high-level architecture signals. |

## MCP setup

### Cursor (`.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "vibe-map": {
      "command": "npx",
      "args": ["-y", "vibe-map-mcp"]
    }
  }
}
```

### Claude Code

```bash
claude mcp add vibe-map -- npx -y vibe-map-mcp
```

### Windsurf (`~/.codeium/windsurf/mcp_config.json`)

```json
{
  "mcpServers": {
    "vibe-map": {
      "command": "npx",
      "args": ["-y", "vibe-map-mcp"]
    }
  }
}
```

## CLI flags

```bash
--json
--no-cache
--force-rescan
--strict
-d, --depth <n>
-m, --message <msg>
-c, --category <category>
```

## How it works

1. Scans `.ts`, `.tsx`, `.js`, `.jsx`, and `.py` files.
2. Parses imports/exports (AST for TS/JS, regex fallback for Python).
3. Resolves paths and builds a dependency graph.
4. Scores file risk and returns tool-specific insights.
5. Caches results in `.vibemap/` for faster repeat runs.

## Development

```bash
npm ci
npm run build
npx tsc --noEmit
npm test
```

Node.js `>=18` is required.

## License

MIT

TDQS

A3.6/5.0

Scored across 5 tools

Disambiguation4/5

Each tool has a distinct primary action (explain a file, map the whole codebase, check blast radius, summarize architecture, rank safe files). explain_file vs get_structure and check_impact vs find_safe_files touch adjacent concerns (dependency graph), but the descriptions clearly separate per-file from project-level and per-file blast radius from a ranked safe-file list.

Naming Consistency5/5

All five tools follow a clean verb_noun pattern (explain_file, map_codebase, check_impact, get_structure, find_safe_files), with no mixing of conventions or casing styles.

Tool Count5/5

Five tools is well-scoped for a codebase-analysis server; each one covers a distinct analytical need with no filler or redundant endpoints.

Completeness4/5

The surface covers the core lifecycle: architecture overview, per-file explanation, dependency map, change impact, and safe-file discovery. Minor gaps exist, such as locating a file by name/symbol or querying reverse dependents of a specific file, but agents can work around these via the existing tools.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues