# io.github.builditwithgk/repo-cartographer (npm · repo-cartographer)

Maps any repo into an architecture diagram (Mermaid/Graphviz) and enforces architecture rules in CI

- Trust score: 67/100 (medium)
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-06

## Components

- npm · `repo-cartographer`: 67/100 (this document), [markdown](https://verifymcp.io/servers/builditwithgk-repo-cartographer/repo-cartographer.md), [page](https://verifymcp.io/servers/builditwithgk-repo-cartographer/repo-cartographer)

## Channel facts

- Registry: `npm`
- Package: `repo-cartographer`
- Version: `1.0.1`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-08-06.

- **Supply Chain Security**: 87/100
  - No malware found by supply-chain analysis.
  - Known CVEs were checked across the 95 of 99 dependencies we could resolve, so this covers what we could see, not the whole tree.
  - No install/post-install scripts declared.
  - Dependency health was assessed across the 95 of 99 dependencies we could resolve, so this covers what we could see, not the whole tree.
- **Provenance & Transparency**: 45/100
  - Source repository is publicly reachable at the declared URL.
  - Provenance check failed: no build-provenance attestation is published.
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 1 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 84/100
  - 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).
  - AI-judged instruction clarity (excellent).
  - Context-footprint check failed: tool/resource definitions use about 781 tokens (~130/item across 6 items; 5 tools + 1 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 0/100
  - Stability not yet verified: not enough scan history yet (needs a 30-day window).
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

**Unverified: 1 category.** A category scored 0 because we could not verify it: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.

## Install

### Claude

```bash
claude mcp add builditwithgk-repo-cartographer -- npx -y repo-cartographer
```

### Codex

```bash
codex mcp add builditwithgk-repo-cartographer -- npx -y repo-cartographer
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "builditwithgk-repo-cartographer": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "repo-cartographer"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add builditwithgk-repo-cartographer --command npx --arg -y --arg repo-cartographer
```

### Hermes

```yaml
mcp_servers:
  builditwithgk-repo-cartographer:
    command: "npx"
    args: ["-y", "repo-cartographer"]
```

### Other

```json
{
  "mcpServers": {
    "builditwithgk-repo-cartographer": {
      "command": "npx",
      "args": [
        "-y",
        "repo-cartographer"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-08-06 (score 67, +32)

- [security] Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window).
- [functional improvement] Tool coverage: unverified → 100
- [functional improvement] Schema quality: unverified → 100
- [functional improvement] MCP protocol: unverified → pass
- [functional] First check of Schema quality: fail
- [functional] First check of Tool coverage: 100
- [functional] First check of Schema quality: fail
- [functional] First check of Schema quality: excellent
- [functional] Package version: 1.0.0 → 1.0.1

### 2026-08-05 (score 35)

First indexed and scored.

## MCP tools (5)

### `map_repo` (~192 tokens)

Map repository (one-shot)

Point at a folder and get a downloadable architecture diagram in one call: runs scan + import-graph + render internally and returns the HTML path, a facts summary, and the draft diagram source inline. By default writes architecture.html plus the raw source (.mermaid or .dot) into the repo; pass outPath to write elsewhere. Use the granular tools (scan_repo, build_import_graph, generate_diagram, render_diagram) only when you need to compose the steps yourself.

Input parameters:

- `format` (string): Diagram notation: 'mermaid' (default; renders on GitHub) or 'dot' (Graphviz interop)
- `level` (string): Diagram granularity (default 'high')
- `outPath` (string): Output base path (default: <repo>/architecture); .html and the raw source are written
- `path` (string, required): Absolute or relative path to the repository root

### `scan_repo` (~109 tokens)

Scan repository

Deterministically extract facts from a local repo: programming languages, frameworks/libraries, entry points, top-level modules (with role guesses), and a manifest summary. Returns JSON facts only — no interpretation. Use this when you need repo facts WITHOUT a diagram (e.g. to answer questions about the stack). Prefer map_repo for the one-shot diagram flow; use build_import_graph when you need dependency edges rather than an inventory.

Input parameters:

- `path` (string, required): Absolute or relative path to the repository root

### `build_import_graph` (~132 tokens)

Build import graph

Extract intra-repo import/require relationships for JavaScript/TypeScript and Python. Nodes are files (auto-collapsed to module/directory level for large repos); edges are directed import relationships. Returns JSON. Use this when you need the raw dependency edges — who imports whom — e.g. to reason about coupling, cycles, layering, or the blast radius of a change. Do NOT use it just to draw a picture: generate_diagram returns a ready-to-render draft, and map_repo does the whole flow in one call.

Input parameters:

- `path` (string, required): Absolute or relative path to the repository root

### `generate_diagram` (~171 tokens)

Generate diagram

Combine scan + import facts into a DRAFT diagram string — Mermaid flowchart (default) or Graphviz DOT. level 'high' (default) shows modules/directories; 'detail' shows files grouped by module. This is a draft the calling model is expected to refine. Use this when you want to edit or refine the diagram source before rendering (pair with render_diagram to write the HTML afterwards). If no in-between editing is needed, prefer map_repo — it generates AND renders in one call.

Input parameters:

- `format` (string): Diagram notation: 'mermaid' (default; renders on GitHub) or 'dot' (Graphviz interop)
- `level` (string): Diagram granularity (default 'high')
- `path` (string, required): Absolute or relative path to the repository root

### `render_diagram` (~161 tokens)

Render diagram

Write a self-contained, shareable HTML page (renders via CDN: Mermaid, or Viz for Graphviz DOT) plus the raw source file (.mermaid or .dot). Returns the absolute paths written. Use this as the final step after refining a draft from generate_diagram — or to render ANY Mermaid/DOT source, hand-written included. If you have not edited the draft, prefer map_repo, which renders it for you.

Input parameters:

- `format` (string): Notation of `source` (default 'mermaid')
- `outPath` (string, required): Output path (with or without extension); .html and the raw source siblings are written
- `source` (string, required): Diagram source to render (Mermaid, or DOT when format is 'dot')

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/builditwithgk-repo-cartographer/repo-cartographer#diagnostics

## Score history

- 2026-08-06: 67
- 2026-08-05: 35

## Links

- npm package: https://www.npmjs.com/package/repo-cartographer
- Socket report: https://socket.dev/npm/package/repo-cartographer
- Repository: https://github.com/builditwithgk/repo-cartographer
- Website: https://huggingface.co/spaces/builditwithgk/repo-cartographer
- Changelog RSS feed: https://verifymcp.io/servers/builditwithgk-repo-cartographer/repo-cartographer.xml
- Changelog JSON feed: https://verifymcp.io/servers/builditwithgk-repo-cartographer/repo-cartographer.json
- HTML version of this page: https://verifymcp.io/servers/builditwithgk-repo-cartographer/repo-cartographer
