Skip to main content

cartograph-mcp

CI PyPI

mcp-name: io.github.benteigland11/cartograph

Tired of vibe coding the same solutions over and over? Time to stop spending money on redundant tokens and start spending it on innovative solutions.

This MCP server is for Cartograph that exposes the daily widget workflow for agents without mirroring the entire CLI. It targets the MCP 2.0 SDK contract and returns the standard ListToolsResult envelope from tools/list. On installation of the MCP the CLI will be installed automatically. Once you have it, Search, inspect, install, create, validate, check in, custom rules, and configure Cartograph defaults through a compact agent-facing surface, then fall back to the CLI for the full administrative and recovery surface.

It is highly recommended to use the plugins for the skills that go with this MCP. It will give your agent what it needs to explain a lot of the configuration and give you a very powerful workflow tool.

Why this exists

I personally have spent hours and hours working on solutions I'm proud of, only to hit a wall trying to get the same one done. The reality was prompting was never good enough, I needed a way to know my llama.cpp server client integration was going to be the same everytime I used it. I also needed to know that when I found an improvement, that improvement would stick.

If you are sick and tired of wasting money and time on redoing things you've done before, like a mouse on a wheel then get your agents to start using Cartograph.

The Cartograph CLI is the source of truth, but agents do better when the common path is small and explicit.

This MCP keeps the top-level tool surface focused on daily driving:

  • finding reusable widgets
  • inspecting and installing them
  • managing installed widget copies
  • creating new widgets
  • validating and checking them back in
  • adjusting the core Cartograph defaults that affect normal workflow

Everything else stays in the CLI. That keeps the MCP easier to teach, easier to test, and less likely to drift into a second full interface.

Quick start

pip install cartograph-mcp

Claude Desktop example:

{
  "mcpServers": {
    "cartograph": {
      "command": "cartograph-mcp"
    }
  }
}

The package depends on cartograph-cli and shells out to it as the source of truth for the full command surface.

Common CLI setup commands:

# Claude Code
claude mcp add cartograph --scope user -- cartograph-mcp

# Codex
codex mcp add cartograph -- cartograph-mcp

# Gemini CLI
gemini mcp add cartograph cartograph-mcp

# Cursor
cursor --add-mcp '{"name":"cartograph","command":"cartograph-mcp"}'

Claude Code expects an explicit scope flag such as --scope user.

Tool surface

The MCP intentionally exposes a small workflow-oriented surface:

  • registry_widget Actions: search, inspect, install, rate
  • installed_widget Actions: upgrade, uninstall
  • widget_status
  • create_widget
  • validate_widget
  • checkin_widget
  • cartograph_config
  • cartograph_rules

These are not a 1:1 mirror of the CLI. They are grouped around agent intent:

  • registry-facing work
  • installed-widget mutation
  • project health/status
  • widget authoring
  • workflow configuration
  • custom validation rules

Example workflow

1. Search the registry before writing logic.
2. Inspect the widget you want to reuse.
3. Install it into the project.
4. If no existing widget fits, create one.
5. Validate it with the full dry-run pipeline.
6. Check it in with a reason once it is ready.

In Cartograph terms:

  • registry_widget handles discovery and install
  • installed_widget handles already-installed widget paths like cg/backend_retry_python
  • validate_widget is the dry run for checkin_widget
  • cartograph_config manages the defaults that change how your day-to-day loop behaves
  • cartograph_rules manages custom rules that run during validate and checkin

Philosophy

This MCP is deliberately not the whole CLI.

The common path belongs in MCP. The official full surface belongs in cartograph.

For uncommon, administrative, or recovery operations, use:

cartograph --help
cartograph <command> --help

That includes things like rollback/delete, cloud operations, auth, setup, rules, doctor, export/import, and other non-daily commands.

Configuration

cartograph_config exposes the workflow defaults that matter most to agents:

  • auto-publish
  • visibility
  • governance
  • cloud
  • show-unavailable
  • publish-registry

Reading and writing config is done through the CLI's --json path so MCP can consume it safely.

Testing

This package is tested in two layers:

  • command-contract tests that mock the CLI runner and assert the exact commands the MCP builds
  • isolated integration tests that run the real Cartograph CLI in a temporary environment

The integration suite isolates:

  • HOME
  • XDG_CONFIG_HOME
  • XDG_DATA_HOME
  • XDG_CACHE_HOME
  • WIDGET_LIBRARY_PATH
  • project working directory

That means validate/checkin/install flows are exercised without touching the real widget library or user config on the machine running tests.

Development

pip install -e .
pytest -q

The repo includes:

  • ci.yml for normal test/build validation on pushes and pull requests
  • pypi-publish.yml for automated release publishing after a successful version-bump CI run

For the full product story and complete CLI surface, see Cartograph.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cartograph_mcp-0.3.1.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cartograph_mcp-0.3.1-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file cartograph_mcp-0.3.1.tar.gz.

File metadata

  • Download URL: cartograph_mcp-0.3.1.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cartograph_mcp-0.3.1.tar.gz
Algorithm Hash digest
SHA256 9d40d1cc41a8bf16c7d89e2987db114c49ece449c75715ed7867e35c090744e5
MD5 ae48dad0004115673cda6ee8caaf2317
BLAKE2b-256 c2ecbe1055a35b0999c1eef3835468443a078279709f872cd37b916bd93984b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for cartograph_mcp-0.3.1.tar.gz:

Publisher: pypi-publish.yml on benteigland11/cartograph-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cartograph_mcp-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: cartograph_mcp-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cartograph_mcp-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bc0617727cd36e5460f38e0ffe2a252d31a4dff2873917148fb816ff07b06291
MD5 defc82ded92b8b4402ba25b705ad63d6
BLAKE2b-256 1e8bd822f9cc58affede0956523b1887a99b90c0e42beda3cb29c56dee7d11b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for cartograph_mcp-0.3.1-py3-none-any.whl:

Publisher: pypi-publish.yml on benteigland11/cartograph-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page