Tessera Codegraph logo

Tessera Codegraph

Maps code dependencies locally, predicts edit impact, and verifies changed code through MCP tools and CLI queries.

Install Tessera Codegraph

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

Setup steps from the project

tessera-codegraph 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
    curl -fsSL https://raw.githubusercontent.com/iamsaquib8/tessera/main/install.sh | sh
    

Overview

tessera-codegraph MCP server builds a deterministic local code graph from a repository and exposes queries for symbols, callers, dependencies, contracts, and change impact. Its MCP tools include find, search, refs, blast, verify, context, path, map, status, affected, and import_cycles. Tree-sitter parses source code while SQLite stores the index; later queries refresh only changed content. Reach for it when coding agents need edit blast-radius analysis and post-edit checks without sending code to an LLM or remote service.

Use cases

  • Assess callers and tests before changing a shared symbol
  • Verify changed code for broken imports and stale call sites
  • Trace API and service contracts across a repository
  • Find tests reached by a pull request change
  • Connect coding agents to a local code graph

Key features

  • Deterministic local code graph
  • MCP tools for impact and dependency analysis
  • Post-edit verification checks
  • Cross-service contract mapping
  • Incremental SQLite indexing
  • GitHub pull request reporting

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.

Adoption & maintenance

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

GitHub stars2Stargazers on the source repository.
npm downloads599Package downloads in the last 30 days.
Last commit9d agoMost recent push to the default branch.

How Tessera Codegraph works

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.

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

tessera-codegraph is an MCP server that connects coding agents to a deterministic local code graph built from repository source. Its main tools include find, search, refs, blast, verify, context, path, map, status, affected, and import_cycles for dependency analysis, edit-impact checks, contract tracing, and post-edit verification.

Install it with the macOS or Linux installer, `npm i -g tessera-codegraph`, or run it through `npx tessera-codegraph`. The npm package supports Node.js 18 or newer and includes a prebuilt binary. After installation, run `tessera init` inside a repository to add the MCP server to detected agents.

Yes, tessera-codegraph works with Cursor through its initialization flow. Run `tessera init` in the project, review the configuration diff, and approve the changes. Tessera adds the MCP server and enables edit-safety hooks where the agent supports them.

Yes, `verify` accepts changed, staged, and revision-based scopes, including `--changed`, `--staged`, and `--diff <rev>`. It checks the selected changes for unresolved calls, argument-count problems, broken imports, and stale call sites, and exits with failure when breakage is found.

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