Runecho logo

Runecho

by inth3shadows

Deterministic local code index with MCP queries and pre-write checks for undefined symbols.

Install Runecho

Run the project’s own setup commands, in order.

Setup steps from the project

inth3shadows/runecho installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    bash install.sh
    
  2. 2. Install
    TAG=$(curl -fsSLo /dev/null -w '%{url_effective}' https://github.com/inth3shadows/runecho/releases/latest); TAG=${TAG##*/}; NUM=${TAG#v}
    
  3. 3. Install
    curl -fsSL "https://github.com/inth3shadows/runecho/releases/download/${TAG}/runecho_${NUM}_darwin_arm64.tar.gz" | tar -xz
    
  4. 4. Install
    install -m755 runecho-ir runecho-mcp runecho-guard ~/.local/bin/
    
  5. 5. Configure
    runecho-ir install --periodic   # optional, run inside the checkout: hourly reindex that also keeps the binaries at the newest release
    
  6. 6. Configure
    runecho-ir repo add /path/to/worktree --source-root=/path/to/source
    

Overview

inth3shadows/runecho builds a deterministic intermediate representation of a repository and exposes structural facts through a stdio MCP server. Its oracle tools report declarations, hashes, snapshots, structural differences, repository status, health, and symbol locations. A separate guard checks Edit, Write, and MultiEdit operations for references to undeclared functions, constants, or types before they are applied. Reach for it when an agent needs local repository facts or a narrow safeguard against invented, unqualified symbols without an LLM, API key, network connection, build, or language server.

Use cases

  • Verify whether a referenced symbol exists before editing code
  • Inspect structural differences between repository snapshots
  • Locate a symbol definition by name
  • Block or review edits that reference undeclared symbols
  • Check repository drift without invoking a build or language server

Key features

  • Deterministic local repository indexing
  • Read-only stdio MCP oracle
  • Structural hashes, snapshots, and diffs
  • Symbol location by file and line
  • PreToolUse, pre-commit, and protocol guard modes
  • Parsers for Go, JavaScript, TypeScript, JSX, TSX, Apps Script, Python, shell, Rust, and Ruby

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.

11/11 checks healthy over the last 41d

Adoption & maintenance

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

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

How Runecho works

What inth3shadows/runecho does

inth3shadows/runecho provides a local source of truth for repository structure. It parses supported source files into a compact intermediate representation containing file hashes and declarations such as functions, classes, exports, and imports. A deterministic root hash makes structural change detection a comparison rather than a semantic guess.

The project has three command-line components. runecho-ir enrolls repositories, creates indexes and snapshots, and inspects diffs or churn. runecho-mcp serves read-only repository queries over MCP. runecho-guard checks proposed code for references to symbols absent from the indexed repository.

How it works

The parser reads source files and stores snapshots in a central history database under ~/.runecho/ by default. Enrolled repositories receive stable identities, allowing snapshots from the same or different points in a repository's history to be compared. Structural changes are represented through hashes and diffs rather than generated summaries.

The MCP component communicates over stdio and gives an agent access to structure, diff, hash, status, health, and locate. The locate operation maps a symbol name to its file and line, while the other operations expose repository structure, snapshot differences, hashes, and indexing state.

The guard can run as a git pre-commit hook, as a Claude Code PreToolUse hook, or in --protocol mode. In hook mode it checks edits before they are written and can flag bare calls, constants, and type references that are not present in the indexed code. Protocol mode accepts an edit on standard input and emits a versioned verdict document on standard output.

Setup and configuration

Prebuilt releases are self-contained and require no runtime or external service. Download the archive for the operating system and CPU architecture, then place runecho-ir, runecho-mcp, and runecho-guard on the executable path. The project also supports bash install.sh; building from source requires Go 1.26 or newer.

RunEcho supports Windows, macOS, and Linux, with a POSIX or Windows shell. It uses ~/.runecho/ for storage by default and requires no API keys or network service.

Tools and capabilities

Supported parsers cover Go, JavaScript, TypeScript, JSX, TSX, Google Apps Script, Python, shell scripts, Rust, and Ruby. Parsing is intentionally shallow and deterministic: it focuses on top-level structure instead of full semantic analysis.

The MCP surface is read-only. The guard is the write-adjacent component, operating before an edit or commit rather than modifying source itself. Its checks are limited to unqualified references; resolving expressions such as receiver-qualified calls requires type information outside its scope.

Limitations and notes

RunEcho is a focused verification layer, not a general semantic search or full codebase exploration system. It does not replace tests, review, a compiler, or a language server. Qualified references such as calls through an object or module receiver are outside the guard's designed scope, and the parser does not perform complete semantic analysis.

A warning can be premature when an agent writes a caller before the referenced symbol is added. Approvals are therefore still possible for legitimate new, local, dynamic, or intentionally removed symbols. The tool is most suitable when deterministic structural checks are useful alongside broader development validation.

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 Runecho

inth3shadows/runecho is an MCP server that connects AI agents to a locally indexed repository and exposes deterministic tools for structure, diffs, hashes, status, health, and symbol locations. It uses stdio, requires no LLM, API key, network service, build, or language server, and works from parsed repository snapshots.

Install it by downloading a self-contained prebuilt release or by running `bash install.sh` to build from source. Prebuilt archives include `runecho-ir`, `runecho-mcp`, and `runecho-guard`; source builds require Go 1.26 or newer.

Yes. Its MCP component is a standard stdio server, so it can be configured in Cursor and other clients that support stdio MCP servers. The repository index and history remain local, with storage under `~/.runecho/` by default.

It parses Go, JavaScript, TypeScript, JSX, TSX, Google Apps Script, Python, shell scripts, Rust, and Ruby. Extraction is deliberately shallow and focuses on top-level declarations and structure rather than complete semantic analysis.

Yes. `runecho-guard` can run as a Claude Code `PreToolUse` hook and check Edit, Write, or MultiEdit operations before they land. It can also run as a git pre-commit hook or accept edits through `--protocol`, flagging unqualified references to symbols absent from the indexed code.

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 PreviewRunecho AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/inth3shadows-runecho?style=directory)](https://allmcps.com/mcp/inth3shadows-runecho)
HTML Embed
<a href="https://allmcps.com/mcp/inth3shadows-runecho"><img src="https://allmcps.com/api/badge/inth3shadows-runecho?style=directory" alt="Runecho on AllMCPs" /></a>