# Vinv

Vinv links runtime traces to source code and verifies agent edits by re-running them. Gives your agent proof of how the code actually behaves when it runs.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 48 repo stars
- Author: VinvAI
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/VinvAI/VinvAI
- Updated: 2026-10-20
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/vinv

## What it does

Vinv provides 16 tools: semantic search across the codebase, dead code detection, fault localization from execution traces, runtime value extraction, and coverage data. It builds workspace context in the `.vinv/` folder — code graph, traces, and metrics tied to the functions that handled each request. Every agent reads the same `.vinv/` store.

First build requires uv and Rust, takes about three minutes, and downloads a roughly 100 MB embedding model. First trace lands about a minute after the build finishes; everything after that runs in seconds. Vinv runs entirely locally with no telemetry.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `VINV_WORKSPACE` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env VINV_WORKSPACE=<VINV_WORKSPACE> --transport stdio vinv -- npx -y vinv-mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add vinv --env VINV_WORKSPACE=<VINV_WORKSPACE> -- npx -y vinv-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "vinv": {
            "command": "npx",
            "args": [
                "-y",
                "vinv-mcp"
            ],
            "env": {
                "VINV_WORKSPACE": "<VINV_WORKSPACE>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "vinv": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "vinv-mcp"
            ],
            "env": {
                "VINV_WORKSPACE": "<VINV_WORKSPACE>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e VINV_WORKSPACE=<VINV_WORKSPACE> vinv npx -y vinv-mcp
```
Replace <…> with your own values

## When to use it
- verify an agent's fix by re-running the code
- find a bug from a service execution trace
- link runtime behavior to the exact source function
- track coverage and variable values during execution
- localize an error in a running application

## Example prompts
- Find dead code in this project
- Show runtime values for the `process_request` function from the last run
- Which functions were called during this request?

## Similar
- [fix-agent-issue](https://affpapa.org/en/nevibecode/skills/fix-agent-issue.md) — skill · 376 installs
- [debugging](https://affpapa.org/en/nevibecode/skills/mrgoonie-debugging.md) — skill · 580 installs
- [debug](https://affpapa.org/en/nevibecode/skills/yeachan-heo-debug.md) — skill · 705 installs
- [debug-like-expert](https://affpapa.org/en/nevibecode/skills/debug-like-expert.md) — skill · ★ 1988 repo stars
- [langfuse](https://affpapa.org/en/nevibecode/plugins/aviv-sinai-langfuse.md) — plugin · ★ 1596 repo stars
- [lightrun](https://affpapa.org/en/nevibecode/plugins/lightrun.md) — plugin · ★ 27 repo stars

---
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
