# trovex

Indexes your repo's markdown and hands the agent a single current document per question. Cuts tokens spent on doc lookups.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 11
- Author: TsukumoHQ
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/TsukumoHQ/trovex
- Updated: 2026-10-14
- HTML: https://affpapa.org/en/nevibecode/mcp/trovex

## What it does

Coding agents reread the repo each session to figure out which `.md` still holds, then answer from a guess. trovex builds one canonical index over your markdown and runs an MCP server: a question comes back as a `path:line` pointer to the one current doc, tagged canonical, stale or duplicate, plus just the section that answers it rather than the whole file.

Six MCP tools ship with it. Three only read (`trovex`, `trovex_read`, `trovex_search`); three write solely into trovex's own store (`trovex_write`, `trovex_tag`, `trovex_delete`). No shell runs, your source files stay untouched. Vectors live in SQLite and ONNX computes embeddings on the machine, so answering a query needs neither a network call nor an API key. On the authors' own repo the measured saving was about 60% at equal task success; your repo will differ, and `trovex search` prints what it saved.

Install comes from PyPI with `uv tool install trovex`, then `trovex setup` wires the skill, hooks and MCP server into Claude in one pass. No `uv` yet? It has its own one-line installer. The server starts with `trovex serve` and listens at `http://localhost:8765/mcp`, with the savings dashboard at `http://localhost:8765/savings`. Point a client at the endpoint before `trovex serve` is running and the connection simply fails.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add trovex -- uvx trovex
```
uvx runs the command named after the package; if the README names another one, use uvx --from trovex <command>

### Codex

**Platform CLI**
```bash
codex mcp add trovex -- uvx trovex
```
uvx runs the command named after the package; if the README names another one, use uvx --from trovex <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "trovex": {
            "command": "uvx",
            "args": [
                "trovex"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from trovex <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "trovex": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "trovex"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from trovex <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add trovex uvx trovex
```
uvx runs the command named after the package; if the README names another one, use uvx --from trovex <command>

## When to use it
- surface the one current document that answers an agent's question
- stop paying tokens to reread the repo every session
- tell a stale doc from the live one when the text looks alike
- serve the answering section instead of the full file
- pool what several agents and teammates learn into one store

## Example prompts
- How do we roll back a deploy? Find the canonical doc with trovex.
- Index the markdown in this repo and show the tokens the search saved.
- Store the rollback runbook with trovex_write so the next agent reads it back.

## Similar
- [sqlite-graph-memory](https://affpapa.org/en/nevibecode/mcp/sqlite-graph-memory.md) — MCP server · ★ 12
- [recall](https://affpapa.org/en/nevibecode/mcp/recall.md) — MCP server · ★ 8
- [technology-selection](https://affpapa.org/en/nevibecode/skills/technology-selection.md) — skill · 3400 installs
- [Palace](https://affpapa.org/en/nevibecode/mcp/palace.md) — MCP server · ★ 10
- [mcp-local-rag](https://affpapa.org/en/nevibecode/mcp/mcp-local-rag.md) — MCP server · ★ 425
- [devrag](https://affpapa.org/en/nevibecode/mcp/devrag.md) — MCP server · ★ 64

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
