be0hhh

Ctx MCP — AI skill for Claude Code

AI community

Zero-dependency Rust in-RAM Context Broker & MCP server for AI coding agents (Antigravity, Claude Code, Codex).

How to install Ctx MCP

This entry records only its repository, not the path inside it, so there is no exact command to give. Open be0hhh/ctx-mcp and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Ctx MCP does

Zero-dependency Rust in-RAM Context Broker & MCP server for AI coding agents (Antigravity, Claude Code, Codex).

Alternatives in AI

  • Xerj — Local-first search engine and MCP server for AI agents 12.5k ★
  • Octocode — Structural code intelligence for AI agents — semantic search, knowledge graphs, and a built-in MCP server in o 464 ★
  • onWatch — Open-source Go CLI that tracks AI API quota usage across 7 providers (Synthetic, Z.ai, Anthropic, Codex, GitHu 397 ★

README

`ctx-mcp` — In-RAM Codebase Context Broker & MCP Server for AI Agents

[![CI](https://github.com/be0hhh/ctx-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/be0hhh/ctx-mcp/actions/workflows/ci.yml) [![Release](https://img.shields.io/github/v/release/be0hhh/ctx-mcp)](https://github.com/be0hhh/ctx-mcp/releases/latest) [![License: MIT OR Apache-2.0](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue.svg)](#license) ![Zero Dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)

`ctx-mcp` (`ctx`) is a fast, single-binary **in-RAM Context Broker and Model Context Protocol (MCP) server** written in pure Rust (`0` external crates). Instead of letting every AI coding agent blindly scan your repository from scratch on every prompt, `ctx-mcp` keeps a live, auto-invalidated index of your codebase in memory and answers multi-file navigation, symbol, and read queries in **one compact round-trip**.

[!IMPORTANT] **Current Validation Status — Battle-Tested on Google Antigravity (CLI, Desktop App 2.0 & IDE):**

  • Google Antigravity (Gemini): Primary default target, thoroughly benchmarked and proven. Clean install automatically enables 5 eager navigation tools (ctx_search, ctx_inspect, ctx_read, ctx_symbols, ctx_capsule), lifecycle hooks across CLI/App/IDE, and an automatic WSL2 <-> Windows Desktop App bridge. In end-to-end 5-agent parallel waves, ctx-mcp cuts parallel wave time by -51.8%, mean task time by -44.7%, tool round-trips by -64.3%, and new (uncached) input tokens by -38.5% while maintaining 100% (20/20) file:line accuracy (see full comparison table below).
  • Claude Code: Opt-in (--targets antigravity,claude or toggle 2 in ctx setup); stdio MCP and lifecycle hooks are supported.
  • Codex CLI (GPT / Sol): Opt-in (--targets codex or toggle 3). Reported transparently below: although `