Cartograph
Allows analyzing a GitHub-hosted repository by URL, scoring files and mapping dependencies to produce task-focused repository context.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Cartograph
Cartograph provides task-focused repository context for coding agents. It ships a CLI, an MCP server, install adapters for Claude Code, OpenClaw, and Hermes, and agent assets for documentation workflows.
MCP Registry:
io.github.anthony-maio/cartographQuickstart:
cartograph.making-minds.ai
Instead of dumping an entire repository into context, Cartograph ranks the files that matter, maps dependencies, caches structured artifacts, and lets the next tool or agent pick up from those artifacts.
The primary workflow is:
analyzeto map the repopacketto prepare the workcontext --staticto load task-matched files without a model call
wiki, host installs, and benchmarks are secondary surfaces built around that core path.
Install
npm install
npm run buildFor global use from npm:
npm install -g @anthony-maio/cartographFor MCP host discovery via the official registry:
io.github.anthony-maio/cartograph
For Claude Code plugin install from this public repo:
/plugin marketplace add anthony-maio/cartograph
/plugin install cartograph@making-minds-toolsFor global use from a local checkout:
npm install -g .See CONTRIBUTING.md for the development workflow and SECURITY.md for vulnerability reporting.
Related MCP server: Code Expert MCP Server
Run a complete example
The npm package includes a small refresh-token example. From a new working directory:
npm init -y
npm install @anthony-maio/cartograph@1.3.0
npx cartograph analyze ./node_modules/@anthony-maio/cartograph/examples/auth-refresh --static
npx cartograph packet ./node_modules/@anthony-maio/cartograph/examples/auth-refresh --type bug-fix --task "fix refresh token expiry"
npx cartograph context ./node_modules/@anthony-maio/cartograph/examples/auth-refresh --task "fix refresh token expiry" --static --json
node --test ./node_modules/@anthony-maio/cartograph/examples/auth-refresh/tests/auth-refresh.test.jsThe packet should point to src/auth/refresh.js and tests/auth-refresh.test.js. The context bundle includes the clock helper and leaves unrelated billing/catalog files out. The three behavioral checks should pass. Walk through the investigation for expected results and how to apply the same process to your repository.
Hermes plugin
The native Hermes plugin exposes cartograph_analyze for repository orientation and cartograph_context for task-focused source excerpts. Both run locally in static mode without a model API call. Install the npm package and its included adapter:
npm install -g @anthony-maio/cartograph@1.3.0
cartograph install hermes
hermes plugins enable cartograph
cartograph doctor hermesRun these commands in the same OS environment as Hermes. For Hermes in WSL, use WSL Node and repository paths such as /mnt/d/Development/cartograph. Restart an existing Hermes session to load the tools. The installer binds the plugin to the installed CLI; rerun the install command after moving the package or changing Node.
See the Hermes setup and real-repository example for profile settings, verification, and removal. The plugin caches source excerpts under the selected Hermes profile and supports an optional repository allowlist. Static matching can miss relevant code, so check the returned source before editing.
For a Hermes-managed plugin checkout, see the standalone plugin guide and the commit-pinned installation option.
Claude Code Plugin
This repo also acts as a Claude Code plugin marketplace. The cartograph plugin bundles:
a plugin-scoped Cartograph MCP server
slash commands:
/cartograph:analyze,/cartograph:context,/cartograph:wikithe
use-cartographandrepo-surveyorskillsthe documentation-agent bundle:
repo-scout,dependency-tracer,context-picker,api-surface-writer, andwiki-writer
Install it with:
/plugin marketplace add anthony-maio/cartograph
/plugin install cartograph@making-minds-toolsPrimary Workflow
If you only remember one thing, remember this:
cartograph analyze <repo> --static
cartograph packet <repo> --type <type> --task "<task>"
cartograph context <repo> --task "<task>" --static --jsonanalyzemaps the repo and tells you what matters.packetturns a concrete job into a reusable working artifact.context --staticselects task-matched files and their nearby dependencies and tests, with their contents. It uses local heuristics and needs no API key.
The separate model-backed context workflow runs when you omit --static; configure a provider before using it. Neither mode proves that a selected file contains the bug.
Command Surface
cartograph analyze <repo> [options]
cartograph packet <repo> --type <type> --task "<task>" [--changed <paths...>]
cartograph context <repo> --task "<task>" [options]
cartograph wiki <repo> [options]
cartograph export <run-id> --to <path> [--artifact <name>]
cartograph install <claude|openclaw|mcp|hermes>
cartograph uninstall <claude|openclaw|mcp|hermes>
cartograph doctor [target] [--json]
cartograph mcpLegacy compatibility still works:
cartograph <repo> --static
cartograph <repo> -c "trace auth flow"CLI Usage
# Map the repo
cartograph analyze ./my-project --static
# Prepare a concrete job
cartograph packet ./my-project --type bug-fix --task "fix auth refresh bug" --changed src/auth/service.ts tests/auth/service.test.ts
# Load the minimum file set for that job
cartograph context ./my-project --task "add user authentication" --static --json
# Force embedded snippets when you really want them
cartograph analyze ./my-project --static --json --include-contents
# Full wiki output
cartograph wiki ./my-project -p gemini -k $CARTOGRAPH_API_KEY -o wiki.md
# Export a cached artifact to an explicit path
cartograph export run-abc123 --to ./artifacts/wiki.md
# Run the MCP server directly
cartograph mcpFor small repos, analyze --static --json now defaults to compact output instead of embedding top-file contents. That keeps tiny repos readable and lets direct file reads stay cheaper than a giant JSON blob. Use --include-contents when you explicitly want embedded snippets.
The default markdown output from analyze --static is human-first: it highlights what matters, surfaces dependency hubs, and recommends the next commands instead of dumping raw file contents immediately.
Providers
geminiopenaiopenrouterollama
Set the API key with --key or CARTOGRAPH_API_KEY. Ollama does not require a key.
Cache Model
Cartograph writes successful runs into the user cache by default:
Windows:
%USERPROFILE%\\.cartograph\\cachePOSIX:
~/.cartograph/cache
Each run gets a manifest plus named artifacts, which keeps agent handoffs lightweight and makes cartograph export deterministic.
Host Installs
Installing the package does not modify host configuration. Use the host-specific installer to copy its assets, then enable the integration in that host.
cartograph install claude
cartograph install openclaw
cartograph install mcp
cartograph install hermesWhat each target installs:
claude: user-scope skills plus the bundled documentation agents under~/.claudeopenclaw: user-scope skill pack under~/.openclawmcp: a Cartograph MCP config snippet under~/.cartograph/mcphermes: a native tool plugin and local runtime binding under the selected Hermes profile; enable it withhermes plugins enable cartograph
Check status at any time:
cartograph doctor
cartograph doctor --jsonChoose Your Surface
CLI: best default path when you want deterministic local analysis and explicit artifacts.
Claude Code plugin: best when you want plugin install, bundled skills, slash commands, and a plugin-scoped MCP server.
OpenClaw skills: best when you want the same Cartograph workflow inside an OpenClaw skill-first environment.
Hermes plugin: native repository orientation and source-context tools backed by the local CLI.
MCP Registry: best when your host already prefers tool wiring over shell commands.
MCP Server
Cartograph's MCP server exposes static repo analysis directly to hosts that prefer MCP over shell commands.
Tools:
analyze_repo: score files, map dependencies, and return compact analysis output or embedded top-file contents for a local repo or GitHub URLget_file_contents: fetch full contents for specific files after analysisbuild_task_packet: return a typed task packet with key files, dependency hubs, validation targets, risks, and task-specific details
Bug-fix packets are tuned to stay focused when you provide --changed or changed_files: they keep explicit change surfaces in view, prefer exact validation targets, and bias toward shared dependencies over peripheral utility scripts.
If you want Cartograph's packaged MCP snippet, run:
cartograph install mcpThat writes a reusable config file that points at:
{
"mcpServers": {
"cartograph": {
"command": "cartograph",
"args": ["mcp"]
}
}
}MCP Registry
Cartograph is published in the official MCP Registry with the server name io.github.anthony-maio/cartograph.
Repo-side metadata lives in:
package.jsonvia themcpNamefieldserver.jsonfor registry metadata
The current install artifact published to npm is:
@anthony-maio/cartograph
For repeatable registry releases, this repo also includes a GitHub Actions workflow at
publish-mcp.yml. It is set up for npm trusted publishing on
GitHub Actions, then authenticates to the MCP Registry with GitHub OIDC and publishes server.json.
Packaged Agent Assets
The package currently ships:
two Claude skills:
use-cartographandrepo-surveyorfive Claude documentation agents:
repo-scout,dependency-tracer,context-picker,api-surface-writer, andwiki-writertwo OpenClaw skills:
use-cartographandrepo-surveyorbundled OpenProse templates inside both OpenClaw skills for repo-doc and task-context workflows
Skill roles:
use-cartograph: tool-first path when the CLI or MCP server is availablerepo-surveyor: manual fallback path when Cartograph is unavailable or needs verification
Both skills are designed to produce the same downstream contract:
key files
dependency hubs
minimal task context
doc-ready summary
These assets are meant to pass run IDs and artifact paths between steps instead of copying large prose into the main context.
The Claude plugin marketplace in this repo ships the same skills and agents, plus plugin-first slash commands and a bundled Cartograph MCP server.
Task Packet Benchmark
This repo includes a public benchmark pack for task packets under benchmarks/task-packets.
Use it to compare packet quality across large visible repos with a stable set of task prompts:
npm run benchmark:task-packets -- --list
npm run benchmark:task-packets -- --case llama-cpp-bug-fix --dry-runThe benchmark runner writes packet artifacts to benchmarks/task-packets/output/, which is gitignored.
Curated scorecards and public artifact links are also published on the site:
Example Artifacts
Tracked examples live under docs/examples:
These are useful when you want to show what a focused bug-fix packet and a curated repo brief look like on a large public codebase.
Development
npm install
npm test
npm run check
npm run build
npm run pack:smokeLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Repo intel for AI coding agents: overview, PRs, contributors, hot files, CI, deps. Remote MCP.
Code-map tools for AI agents: see a repo's structure first, then edit only what matters.
Codebase intelligence for agents: 152 structured artifacts across 21 programs, one call.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables analysis and querying of Git repository content (both public and private) through a unified tool that provides repository summaries, file structures, and full content optimized for LLM consumption.1-
- AlicenseAqualityDmaintenanceAnalyzes codebases from local directories, GitHub, and Azure DevOps, providing intelligent context to AI coding assistants through repository structure, critical files, and semantic maps.144MIT
- FlicenseBqualityDmaintenanceProvides AI coding agents with structured Git repository context including project state, code structure, activity, and risk analysis without modifying or uploading code.53-
- AlicenseAqualityCmaintenanceProvides coding agents with repository context through tools that generate AGENTS.md files or structured JSON summaries, quoting build/test commands from the repo's manifests for a small fee without an API key.21MIT