# tessera-codegraph [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/iamsaquib8/tessera  
**GitHub Stars:** 2  
**npm Downloads (last month):** 599  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/tessera-codegraph

## Description
Deterministic edit safety for AI coding agents: blast radius before an edit, verification after it. Prebuilt tessera binary, no Rust toolchain required.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/iamsaquib8/tessera), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
curl -fsSL https://raw.githubusercontent.com/iamsaquib8/tessera/main/install.sh | sh
```

## Documentation

## What tessera-codegraph MCP server does

tessera-codegraph gives coding agents a local, queryable view of a repository before and after edits. It identifies symbol definitions, callers, callees, imports, affected tests, circular dependencies, and paths through the code graph. Contract mapping extends those relationships across HTTP routes, gRPC methods, GraphQL fields, Kafka topics, tables, configuration keys, and services in languages Tessera can read.

The server is intended for agents that need deterministic edit safety. Before a change, `blast` ranks affected callers and identifies tests to run, while `context` combines a symbol's body, callers, and callees in one bounded response. After a change, `verify` checks for unresolved names, incorrect argument counts, broken imports, and stale call sites.

## How it works

Tree-sitter parses the repository and SQLite stores the resulting index locally in `.tessera/`. The first query creates the index; subsequent queries update only changed content. Results are deterministic because the graph is built from the source code rather than by a language model, and repository data stays on the local machine.

The MCP interface is started with `tessera mcp` and provides eleven read-only, paginated tools: `find`, `search`, `refs`, `blast`, `verify`, `context`, `path`, `map`, `status`, `affected`, and `import_cycles`. These tools return compact text and support JSON output through the command-line interface. The wider CLI also includes commands for local impact visualization, graph export, statistics, initialization, and index inspection.

## Setup and configuration

Install the prebuilt binary on macOS or Linux with the project installer, or install the npm package globally. The npm path supports Node.js 18 or newer and includes a prebuilt binary, so a Rust toolchain is not needed. The same commands can be run with `npx tessera-codegraph`. Building from source uses Rust 1.90 or newer; Windows users can use npm, source installation, or a release archive.

Inside a repository, run `tessera blast <symbol>` to create the index and inspect a symbol's impact. Run `tessera init` to connect Tessera to detected agents. Initialization shows configuration diffs and asks for approval before writing; it can add the MCP server and, where supported, edit-safety hooks. Claude Code also supports installation through the Tessera plugin.

## Tools and capabilities

- Find definitions and inspect the contents of a file with `find`.
- Search for symbols or unused functions with `search`.
- Trace callers, imports, routes, RPCs, and service paths with `refs`, `path`, and `map`.
- Rank affected callers and tests with `blast` and `affected`.
- Check changed files, staged changes, revisions, or snippets with `verify`.
- Detect circular imports through `import_cycles`.
- Compare implemented routes with OpenAPI or Swagger documents using route drift mapping.
- Run a local browser UI for working-tree impact and service connections, or export the graph as Mermaid or Graphviz DOT.

Tessera also provides a GitHub Action that comments on pull requests with affected contracts, callers, problems, and tests. The action can fail a workflow on blocking issues or only publish a report.

_Full upstream README: https://allmcps.com/mcp/tessera-codegraph/readme_

