
Cartograph
io.github.anthony-maio由 GitHub 帳號 anthony-maio 發布v1.3.0更新於 Oct 29, 2026
Repo analysis for coding agents with ranked files, dependency maps, and task-scoped context.
概覽
本機 MCP 伺服器,為編碼代理提供依任務排序的儲存庫脈絡,而不是把整個程式碼庫塞進脈絡。
- 可以做什麼
- 分析本機儲存庫或 GitHub 網址:為檔案評分、梳理相依關係,回傳精簡分析結果或內嵌的頂層檔案內容
- 在分析之後取得指定檔案的完整內容
- 產生帶類型的任務包,包含關鍵檔案、相依樞紐、驗證目標、風險與任務細節
- 在提供變更檔案時讓缺陷修正任務包保持聚焦,優先精確驗證目標與共用相依
- 適用情境
- 適合編碼代理需要快速熟悉大型或不熟悉的程式碼庫時使用,也適合為某個缺陷修正或功能任務準備最小且相符的檔案集合,而不必為靜態分析消耗模型呼叫。
- 執行需求
- 以本機 stdio 程序執行,來自 npm 套件 @anthony-maio/cartograph,需要 Node.js 與已安裝的命令列工具。靜態分析不需 API 金鑰;可選的模型驅動脈絡模式需要設定供應商(gemini、openai、openrouter、ollama),並透過 --key 或 CARTOGRAPH_API_KEY 提供金鑰,Ollama 除外。僅支援桌面端。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Cartograph,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
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.
- npm:
@anthony-maio/cartograph - MCP Registry:
io.github.anthony-maio/cartograph - Quickstart:
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
For global use from npm:
For MCP host discovery via the official registry:
io.github.anthony-maio/cartograph- Registry listing
For Claude Code plugin install from this public repo:
For global use from a local checkout:
See CONTRIBUTING.md for the development workflow and SECURITY.md for vulnerability reporting.
Run a complete example
The npm package includes a small refresh-token example. From a new working directory:
The 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:
Run 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:wiki - the
use-cartographandrepo-surveyorskills - the documentation-agent bundle:
repo-scout,dependency-tracer,context-picker,api-surface-writer, andwiki-writer
Install it with:
Primary Workflow
If you only remember one thing, remember this:
analyzemaps 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
Legacy compatibility still works:
CLI Usage
For 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\\cache - POSIX:
~/.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.
What 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:
Choose 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:
That writes a reusable config file that points at:
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-surveyor - five Claude documentation agents:
repo-scout,dependency-tracer,context-picker,api-surface-writer, andwiki-writer - two OpenClaw skills:
use-cartographandrepo-surveyor - bundled 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:
The 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:
llama-cpp-task-packet.mdllama-cpp-task-packet.jsonllama-cpp-deepwiki.mdtask-packet-benchmark-scorecards.md
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
License
MIT
來源:README.md,提交 e2e06db
工具
0版本歷史
3- v1.3.0最新Oct 29, 2026
- v1.2.0Oct 2, 2026
- v1.1.4Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分