Codex-native codebase intelligence: deterministic repo context, change-plan drift review, and verification gating for AI coding agents. Local-first, zero API keys.
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
claude mcp add codexa -- npx -y cache{
"mcpServers": {
"codexa": {
"command": "npx",
"args": ["-y", "cache"]
}
}
}Resumen de MCP Servers
# Codexa Codexa is an edit-lifecycle governance layer for AI coding agents — plan conformance, drift review, and verification crediting — built on a local, deterministic codebase map. In plain English: it reads a repository, builds a compact index of the files, symbols, imports, tests, risks, and workflows it can prove, then gives Codex, Claude Code, or another MCP client small evidence-backed packets before and after edits. It is meant to help an agent answer questions like: - What should I read first? - What could this change break? - Which tests are relevant? - Did my final dirty tree match the plan I saved before editing? - Did the verification commands the agent reported actually prove anything? It is not an autonomous coding agent. It does not edit your source files through MCP. It is a context compiler, query server, and verification guide. ## Why Codexa Three capabilities are deliberately hard to find elsewhere: - **A drift loop.** `change_plan` snapshots per-file hashes plus symbol and risk baselines before editing; `post_edit_review` diffs the real dirty tree against that plan afterwards, rename-aware. When no plan was saved, the pre-edit hook saves an implicit baseline automatically, so the review always has a pre-edit reference; an explicit `change_plan` upgrades it with planned scope and tests. Blocking is opt-in: only reviews against an explicit plan can surface a blocking verdict to the host — implicit baselines keep the loop informational. - **A verification ledger.** Commands the agent reports are parsed against a faithful POSIX-shell subset before earning coverage credit: `npm test || true` earns nothing, `tsc --help` is vetoed as non-compiling, `sh -c` wrappers are unwrapped with ambiguity failing closed. Scope stated plainly: this detects structural exit-masking in *reported* commands — it cannot detect a wholesale fabricated report. The opt-in AutoVerify lane exists for execution-backed evidence. - **A fail-closed eval.** The eval harness runs real `rg`/`git` baselines and fails a scenario outright if the raw baseline does the job better. The archived v0.2.0 release run passed 20/20 scenarios with packets averaging 0.66x the raw baseline output size — and the harness ships in this repo, so you can re-run it yourself. See [Public Proof](#public-proof). Limits, stated up front: TypeScript/JavaScript and Python are the deep lanes (Rust/Go/Java are shallow; other languages get light file facts). Impact expansion caps at graph depth 3. The tested envelope is repos around the ~50K-LOC scale of Codexa itself — expect slower cold indexing and shallower ranking on large monorepos. Everything runs locally: zero API keys and zero network calls in the core paths. ## Maintainer Expectations Codexa is maintained by one person, in spare time, with a deliberately narrow scope. That shapes how this repo works: - Response times are days to weeks, not hours. - Scope is narrow on purpose. Deep native language indexers, new LLM analysis layers, broad IDE products, and general-purpose search modes are usually out of scope. - Not every working PR will be merged. Open an issue first for anything beyond a typo or small docs fix. - Security issues go through [private advisories](https://github.com/mirnoorata/codexa/security/advisories/new), not public issues. See [SECURITY.md](SECURITY.md). - Questions and "is this the right tool?" discussions belong in [Discussions](https://github.com/mirnoorata/codexa/discussions), not the issue tracker. ## Quick Start Codexa requires Node.js 22 or newer. Install from npm: ```bash npm install -g @mirnoorata/codexa ``` Or work from a checkout: ```bash git clone https://github.com/mirnoorata/codexa.git cd codexa npm install npm run build npm link ``` Wire Codexa into another repository: ```bash codexa init /path/to/project # Codex CLI: .codex/config.toml + hooks codexa init /path/to/project --claude # also writes a repo-root .mcp.json for Claude Code codexa session-start /path/to/project ``` After `codexa init`, the target repository gets a repo-local `.codex/config.toml` entry that lets Codex discover the Codexa MCP server automatically, and with `--claude` a repo-root `.mcp.json` so Claude Code discovers the same server (only the codexa entry is managed; other servers in an existing `.mcp.json` are preserved, and malformed JSON aborts the write). When init runs from an evictable npx cache, generated configs pin `npx -y @mirnoorata/codexa@<version>` instead of the cache path so they keep working after a cache prune. Useful flags: the default tool profile for fresh installs is `core` — only the primary-loop tools (plus `impact`/`freshness`) are exposed, which cuts per-turn schema token cost; `--tools full` exposes all 20 tools, and re-running plain `codexa init` preserves whichever profile the repo already uses. On the Codex side the core profile relies on Codex CLI honoring `enabled_tools` (older versions ignore the key and simply expose every tool); the Claude Code `.mcp.json` path filters server-side via `serve --tools core` and needs no client support. `--agents-md` (opt-in) writes a managed Codexa workflow block into the repo's `AGENTS.md` for Codex, and `--claude-md` (opt-in) writes the same managed block into `CLAUDE.md` for Claude Code. The region between the `<!-- >>> codexa managed -->` / `<!-- <<< codexa managed -->` markers is reserved: Codexa replaces it in place on every re-run (so the block stays current) and never edits anything outside it. Unbalanced or malformed markers abort the write instead of silently truncating the file. The installed command is `codexa`, and the server can also run ad hoc: ```bash npx -y @mirnoorata/codexa serve /path/to/project --auto-refresh ``` Codexa is also listed in the official MCP registry as `io.github.mirnoorata/codexa` for MCP clients that discover servers there. ## Works with any MCP host Codexa is deterministic and model-agnostic — its core indexing, ranking, and query paths call no model and need no API keys, so it serves the same evidence-backed context to any agent host that speaks MCP: the OpenAI Codex CLI (repo-local `.codex/config.toml`), Claude Code (`codexa init --claude` writes a repo-root `.mcp.json`; the bundled plugin under `integrations/claude-code/` ships its own MCP server entry, hooks that auto-save the pre-edit baseline and surface blocking drift verdicts to the model, and slash commands; `--claude-md` adds workflow steering — pick the plugin **or** `init --claude` for MCP wiring, not both, or Claude Code will register the codexa server twice), and any client that discovers it through the MCP registry. There is no per-model integration to do — the model lives in the host, and Codexa is the host's context server. (The one exception is the opt-in, off-by-default semantic lane, which can call a configured embedding provider such as OpenAI — see [Optional Lanes](#optional-lanes).) Token discipline is built in: every tool description states its typical output cost, structured results are budget-compacted with truncation records naming dropped fields, hosts with small MCP result limits can set `CODEXA_MCP_STRUCTURED_BUDGET_BYTES`, and the big retrieval tools accept `responseFormat: "concise"` for a summary-tier packet that compacts both the structured payload and the text block. The `tools/list` surface is budgeted too: the per-tool output schema defaults to a compact top-level contract (measured on this repo: 123KB -> 54KB for the full 20-tool surface, 21KB with the core profile; `CODEXA_MCP_OUTPUT_SCHEMA=full` restores the deep schema), and `codexa serve --tools core` registers only the primary-loop tools for hosts without a client-side allowlist. Because the budget caps tokens rather than dollars, the savings scale with the host model's price — they matter most on frontier-tier models. ### Managed cloud agents Codexa's stdio transport is for a host running on the same machine as the repository (Codex CLI, Claude Code). Its HTTP transport is **loopback-only by design** — non-loopback bind addresses and non-loopback `Origin` headers are rejected — so a hosted agent whose container runs in someone else's cloud (for example a Claude Managed Agents session) cannot reach a local Codexa server over the public network. The supported way to give a managed cloud agent Codexa context is a **self-hosted sandbox**: run the agent's tool-execution container in your own infrastructure, alongside a Codexa server, and point the agent's MCP config at Codexa on `127.0.0.1`. The agent loop stays on the provider's orchestration layer; tool execution — and the Codexa connection — stay inside your trust boundary, where loopback HTTP is safe. An authenticated remote HTTP mode that would let a provider-hosted container dial into Codexa directly is intentionally **not** shipped: exposing a codebase context server to the network needs an auth/origin policy Codexa does not yet have, so it is deferred rather than shipped insecure. ## The Everyday Workflow Use Codexa as a guardrail around code changes: 1. Start with `session_context` or `codexa session-start`. This tells the agent whether the index is fresh and what loop to use. 2. Search when the target is unclear. `search` combines bounded raw search, exact/symbol evidence, Codexa ranking, optional semantic retrieval, likely tests, and known gaps. 3. Ask for a task brief before editing. `task_brief` / `brief` returns read-first files, impact expansion, risks, snippets, test recommendations, freshness, and next tool guidance. 4. Save a change plan before non-trivial edits. `change_plan` with `saveSnapshot=true`, or CLI `change-plan --save-snapshot`, records the intended scope and test plan. If you skip this step, the pre-edit hooks save an implicit baseline of the dirty tree on the first edit — the review still gets changed-since-baseline and head-drift accuracy, but o
Lo que la gente pregunta sobre codexa
¿Qué es mirnoorata/codexa?
+
mirnoorata/codexa es mcp servers para el ecosistema de Claude AI. Codex-native codebase intelligence: deterministic repo context, change-plan drift review, and verification gating for AI coding agents. Local-first, zero API keys. Tiene 1 estrellas en GitHub y se actualizó por última vez today.
¿Cómo se instala codexa?
+
Puedes instalar codexa clonando el repositorio (https://github.com/mirnoorata/codexa) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar mirnoorata/codexa?
+
Nuestro agente de seguridad ha analizado mirnoorata/codexa y le ha asignado un Trust Score de 87/100 (tier: Trusted). Revisa el desglose completo de comprobaciones superadas y flags en esta página.
¿Quién mantiene mirnoorata/codexa?
+
mirnoorata/codexa es mantenido por mirnoorata. La última actividad registrada en GitHub es de today, con 2 issues abiertos.
¿Hay alternativas a codexa?
+
Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.
Despliega codexa en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/mirnoorata-codexa)<a href="https://claudewave.com/repo/mirnoorata-codexa"><img src="https://claudewave.com/api/badge/mirnoorata-codexa" alt="Featured on ClaudeWave: mirnoorata/codexa" width="320" height="64" /></a>Más MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
The fastest path to AI-powered full stack observability, even for lean teams.
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。