Ctxo logo

Ctxo

Maps code, git history, and change impact for AI coding agents through semantic MCP tools.

Install Ctxo

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for Ctxo, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

Ctxo maps a repository into a dependency graph that includes symbols, imports, calls, inheritance, data flows, git intent, and code health signals. Its MCP tools let coding agents inspect blast radius, pull-request impact, architectural boundaries, and historical context without repeatedly searching and opening files. The CLI keeps indexes current through file watchers and git hooks, while optional initialization adds agent rules, skills, and a Claude Code pre-edit guard. Reach for Ctxo when an agent needs structural context before editing TypeScript, Java, Go, C#, or other supported codebases.

Use cases

  • Inspect a symbol’s blast radius before editing it
  • Trace callers, imports, inheritance, and data-flow relationships
  • Review pull-request impact using code and git history
  • Identify candidate bounded contexts from repository structure
  • Keep agent context current after each commit

Key features

  • Semantic dependency and data-flow graph
  • Git intent, co-change, and change-health analysis
  • Incremental indexing through git hooks
  • MCP tools for blast radius and PR impact
  • Optional Claude Code safe-edit guard
  • Interactive dependency-graph visualization

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

18/18 checks healthy over the last 39d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars74Stargazers on the source repository.
Last commit8d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Ctxo works

What Ctxo does

Ctxo gives AI coding agents a repository-level view instead of relying only on text search and manually opened files. It builds a deterministic index containing symbols and relationships such as imports, calls, inheritance, implementations, usage, reads, writes, and execution paths. Git history is included with classified intent, anti-patterns, co-change information, and snapshots used for change analysis.

The resulting data is available through 14 semantic MCP tools, with four additional domain tools supplied by @ctxo/domain. Agents can ask for a symbol's blast radius, pull-request impact, architectural context, or historical explanation. The project also includes commands for viewing candidate bounded contexts and generating an interactive dependency graph.

How it works

Install the CLI, initialize a repository, and build its first index:

Terminal
npm install -g @ctxo/cli
ctxo init
ctxo index

ctxo init detects languages, installs relevant plugins, connects Ctxo to the AI client, adds git hooks, and creates the initial setup. The index is refreshed after commits through a post-commit hook. Incremental commands can re-index the files changed in a commit or a selected list of files. Git history and co-change windows are configurable separately.

The index also supports architectural analysis. Ctxo groups files into candidate bounded contexts using dependency and co-change relationships, reduces the influence of hub files, and records cohesion, terms, crossing edges, and shared SQL tables when @ctxo/lang-sql is installed. ctxo visualize produces a self-contained HTML dependency graph with PageRank sizing, layer colors, and click-based blast-radius views.

Setup and configuration

The CLI can install agent rules, model-invoked skills, and the optional safe-edit guard during initialization. Useful selections include:

sh
ctxo init --only rules,skills,guard
ctxo init --skip git-hooks
ctxo init --no-guard

For Claude Code, the guard registers a PreToolUse hook that can block the first edit to a high-impact symbol until the agent calls get_blast_radius. The guard runs once per symbol per session and fails open when it cannot determine the result. Cursor receives the skills and rules but does not receive blocking pre-edit enforcement.

Guard behavior is configured in .ctxo/config.yaml:

yaml
gate:
  enabled: true
  sensitivity: balanced

Available sensitivity values are strict, balanced, and lenient. ctxo doctor checks for drift in rules, skills, and hooks; ctxo doctor --fix repairs those generated sections. Domain support is opt-in: ctxo install domain adds domain commands and a Claude Code guard, while Ctxo leaves domain cards unchanged.

Tools and capabilities

  • Query dependency and data-flow relationships through semantic MCP tools.
  • Call get_blast_radius before changing a high-impact symbol.
  • Use get_pr_impact to inspect likely effects of a proposed change or review.
  • Retrieve historical context and classified intent for code with the relevant MCP queries.
  • Request architectural candidates through get_architectural_overlay, including context-level views.
  • Inspect contexts from the CLI with ctxo contexts or its JSON output.
  • Preview guard decisions with ctxo gate --preview.
  • Export a JSON blast-radius result with ctxo blast-radius ... --json.
  • Add SQL tables, views, and procedures to the graph with @ctxo/lang-sql.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Ctxo

Ctxo is an MCP server that connects AI coding agents to an indexed codebase and its git history. Its main tools expose dependency graphs, blast radius, pull-request impact, architectural context, historical intent, and change-health signals, helping agents plan edits without relying only on file-by-file search.

Install the CLI globally with `npm install -g @ctxo/cli`, then run `ctxo init` and `ctxo index` in the repository. Initialization detects languages, installs plugins, connects the client, adds hooks, and builds the first index.

Yes, Ctxo provides Cursor with its rules and model-invoked skills. Cursor does not receive the blocking pre-edit hook available to Claude Code, because Cursor has no supported blocking pre-edit hook in the documented setup.

Ctxo installs a post-commit hook that runs `ctxo index --commit HEAD` and re-indexes files changed by the commit. You can also index selected files or configure the git-history and co-change windows.

Run `ctxo blast-radius "path::symbol::kind" --json` for a CLI result, or call the `get_blast_radius` MCP tool from the agent. The safe-edit guard can require this check before the first edit to a high-impact symbol.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCtxo AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ctxo?style=directory)](https://allmcps.com/mcp/ctxo)
HTML Embed
<a href="https://allmcps.com/mcp/ctxo"><img src="https://allmcps.com/api/badge/ctxo?style=directory" alt="Ctxo on AllMCPs" /></a>