Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

codeindex

Latest version: v0.6.11

Overview

Last scanned
20 Nov 2026
Published
20 Nov 2026
MCP server Transport: stdio Publisher: munhq
3 Stars
0 Forks
20 Versions
Zig Repo language

Scan summary

codeindex was last scanned on 20 Nov 2026 at version 0.6.11. Risk score 10 of 100 (low). No malicious behavior was detected.

  • Releases: 20 versions; the latest 3 were published on 20 Nov 2026.
  • Findings: No rules are listed for version 0.6.11.
  • MCP server: Runs over stdio.

Versions

20 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.6.11 LATEST 20 Nov 2026 No rules fired
0.6.10 20 Nov 2026 No rules fired
0.6.9 20 Nov 2026 No rules fired
0.6.8 12 Nov 2026 Not shown
0.6.7 12 Nov 2026 Not shown

No rules fired in 0.6.11

Findings

Findings for v0.6.11. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.6.11; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

npm MCP Registry Smithery Glama license

Install in Cursor Install in VS Code

A structural code intelligence engine that runs as an MCP server for AI coding agents.

It indexes your codebase with tree-sitter (40+ languages), builds a trigram full-text index, an inverted word index, and a dependency graph — then exposes them through 16 MCP tools.

 ┌─────────────┐   MCP (stdio)   ┌───────────┐            ┌──────────────────┐
 │  AI Agent   │ ◄─────────────► │ codeindex │  socket    │ codeindex daemon │
 │ (Claude,    │ 16 tools,       │  (relay)  │ ◄────────► │  one per         │
 │  Cursor…)   │ JSON-RPC        └───────────┘            │  workspace       │
 └─────────────┘                                          └────────┬─────────┘
 ┌─────────────┐   MCP (stdio)   ┌───────────┐                     │
 │  AI Agent   │ ◄─────────────► │ codeindex │ ◄───────────────────┘
 │  (session 2)│                 │  (relay)  │   tree-sitter parse (40+ langs)
 └─────────────┘                 └───────────┘   trigram + word index
                                                 dependency graph
                                                 one file watcher
                                                 snapshot persistence

Every session on a repository speaks plain stdio MCP, as before. Behind that, they share one index: the tree is parsed once, watched once and written once, however many agents are attached. Eight sessions on one repository used to be eight copies of the same index, eight file watchers and eight writers of the same snapshot; measured on a 720-file project, each session went from 87 MB to 7 MB, against one shared 77 MB daemon.

Why

AI coding agents spend tokens reading entire files. codeindex answers structural questions — symbol outlines, definitions, callers, blast radius, dependency chains — in a few hundred tokens instead of thousands.

One plan_change call returns: where a symbol is defined, every call site, the file's architectural role (god module / stable core / island / driver), hardcoded literals to check, and the full transitive blast radius if the file changes.

Quickstart

The shortest path, if you have Node 18+. Nothing else to install, no key, no config — the package is a 4 KB wrapper that fetches the binary for your platform and verifies it against the published checksums:

claude mcp add codeindex -- npx -y @munhq/codeindex

No Node, or you want the skill and the hook as well:

# Prebuilt binary + skill + MCP registration, in one command
curl -fsSL https://raw.githubusercontent.com/munhq/codeindex/main/install.sh | sh

# Or build from source:
cd zig && ./fetch-vendor.sh && zig build -Doptimize=ReleaseFast

Docker, for hosts that install MCP servers as images. The workspace is bind-mounted read-only; codeindex never writes to it:

docker run -i --rm -v "$PWD:/workspace:ro" munhq/codeindex

Register with your AI agent:

# Claude Code — the plugin is the one-step path. It ships the skill, both
# routing hooks and the MCP server together, and its launcher finds or fetches
# the binary.
claude plugin marketplace add munhq/codeindex
claude plugin install codeindex@codeindex

# Without the plugin (or for a different MCP client), register the binary.
# Do not do both: two registrations mean two servers, two copies of every tool
# schema, and two writers on one snapshot. install.sh detects the plugin and
# skips this step when it is present.
#
# install.sh starts the machine host and adds the server to it, so this entry
# is a URL: one server for the machine, and each session gets its own state
# from the host. A stdio command would start one server for each session.
claude mcp add --scope user --transport http codeindex http://127.0.0.1:7717/codeindex

# The host has no project folder of its own, so a session names its project
# once with the index_workspace tool. Every call after that answers for it.

# Cursor / Claude Desktop / other MCP clients: add to your config
{
  "mcpServers": {
    "codeindex": {
      "command": "npx",
      "args": ["-y", "@munhq/codeindex"]
    }
  }
}

Every listing points at the same server: npm @munhq/codeindex, the official MCP registry as io.github.munhq/codeindex, and Smithery as munhq/codeindex (its page keeps the 0.6.6 card: Smithery closed its publish API on 2026-10-31).

The next time your agent starts, codeindex indexes your project in the background and serves structural queries.

MCP Tools

Tool What it does
status Index stats: file count, symbol count, indexing state, token savings %, the indexed workspace and whether a watcher is live
search Trigram-accelerated full-text search across all indexed files
find_symbol Find symbol definitions (functions, structs, classes…) by name
find_word Exact word/identifier lookup in the inverted word index
find_callers Call sites of a symbol, each with the function that holds it. Matched by name, so a same-named definition elsewhere is included
get_outline Structural outline of a file (symbols, line counts)
get_tree Directory tree with file metadata
get_imports What files does a given file import/depend on
get_imported_by Reverse dependencies — who imports this file
get_change_impact Transitive blast radius: what breaks if a file changes
plan_change Full refactor plan for a symbol or file — definitions, callers, file role, literals, blast radius
get_hot_files Recently changed files sorted by recency
read_file Read file contents with optional line range
read_symbol Read just a symbol's source code (with optional context lines)
index_workspace Index or re-index a project directory; a session that works in another checkout moves to that checkout's index. On the checkout that the index already serves, it reads again each file whose mtime or size changed
analyze Run one of 22 code analyses (see below)
Analyses (analyze tool)
Analysis What it finds
security Hardcoded secrets, SQL injection patterns, unsafe blocks, eval usage
dead_code Symbols nothing names outside their own definition, split from the unused public API of a library package
unwrap_audit .unwrap() / expect / panic! sites (Rust), ranked by whether a request handler, a loop or main reaches them
test_coverage Files without test coverage
architecture Architectural smells — god modules, circular deps, islands
crossref Cross-file symbol references
type_drift Type signature mismatches across modules
db_schema Tables the migrations create that no code names, and SQL ORM models no migration creates
migration_parity Missing migrations for schema changes
manifest_compliance package.json / Cargo.toml / go.mod compliance issues
literal_scan Hardcoded URLs, IPs, ports, absolute paths, TODOs
coupling Module coupling metrics
cycles Circular dependency detection
duplication Reinvented free functions — the same job written twice
clones Copy-pasted function bodies, ignoring names and whitespace
spawn_scan An interpreter started on a loop or a timer, across files, ranked by startup cost times spawn rate
deps Dependency inventory — duplicate versions, unreferenced crates, single-use crates
leak_shapes Shapes a leak has, each paired with the runtime series that decides it
logic_shapes A fixed byte constant against the memory limit of the unit that deploys it, and replicas × pool size against a pooler's connection capacity
call_cost Loops over rows ranked by the database and HTTP round trips each element costs, counted through the call graph
field_contention One declared-state field written by two or more owners
health Roll-up of the analyses above into one index-health report

Supported Languages

40+ languages via tree-sitter: Rust, Python, TypeScript/TSX, Go, Zig, C, C++, Java, Ruby, Bash, C#, Kotlin, Lua, Scala, Elixir, R, Swift, Dart, Haskell, TOML, JSON, YAML, HTML, CSS, SCSS, SQL, HCL, Dockerfile, Markdown, Nix, Make, and more.

Configuration

codeindex --mcp                          # Run as MCP server (stdio, one per client)
codeindex --mcp --no-daemon              # ...without sharing the workspace daemon
codeindex --daemon-idle-secs 0           # Keep the daemon resident indefinitely
codeindex --workspace ./my-project       # Index a specific directory
codeindex --project-id my-project        # Project identifier
codeindex -v                             # Print version
codeindex -h                             # Print help

# Environment variables
CODEINDEX_WORKSPACE=/path/to/project     # Same as --workspace
CODEINDEX_PROJECT_ID=my-project          # Same as --project-id
Getting it used

A server that registers without telling an agent when to reach for it stays idle, and an idle index saves nothing however cheap its calls are. The plugin ships three things for that, in the order they act:

  1. A SessionStart brief. About 240 tokens, once per session, in a repository that holds source files: codeindex is live, and here is the tool for each kind of code question. It lands before the agent has chosen a tool, which is the only moment that can change the first choice.
  2. A PreToolUse hint. Fires on the 1st, 8th and 25th code question of a session, when a scan is about to answer something the index answers better, and names the tool for that exact question. It matches Bash as well as Read/Grep/Glob, because a permission mode that routes file work through the shell is where most scans actually happen.
  3. The skill, which the model loads when it decides the task calls for it.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • MCP Registry io.github.munhq/codeindex

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229