← Back to archive

Repo of the Day

GaijinEntertainment/kartta

Published: Dec 4, 2026

Open repository ↗

The last code intelligence tool your agents will need: a code graph engine and MCP server for 24 languages

Summary

kartta is a Rust-based code intelligence engine and MCP server that turns a repository into a queryable code graph. It supports 24 languages and exposes 19 tools for finding symbols, tracing callers and callees, mapping imports, assessing change impact, and searching paths or file contents. The same engine is also available as a Rust library, with C, Go, and Node bindings.

What it is useful for

Engineers can use it when they need repository-wide answers without loading many source files into an agent’s context. For example, an agent can ask where a symbol is defined, which functions call it, what a function calls, whether a call path reaches a target, where a type is implemented, which files import a file, or what an edit or diff reaches. The index also provides file outlines, definition source, regular-expression search, globbing, directory listing, and unused-symbol queries.

The graph is useful across mixed-language repositories. TypeScript, TSX, JavaScript, and Vue share one graph; C, C++, Objective-C, and Objective-C++ share another; Java and Kotlin share one too. kartta reads source without fetching dependencies, creating a compilation database, or requiring the project’s language toolchain, so it can cover languages that lack a language server. For exact type, generic, and overload information at an open-file position, the README recommends using a language server alongside it. Teams needing another language can implement the kartta-lang trait with their own parser and semantics.

How engineers can use it

The quickest documented setup for an agent is the MCP server:

cargo install --locked kartta-mcp
claude mcp add --scope user kartta -- kartta-mcp

After Claude Code is set up, the server builds an index for a repository root it does not already hold. An agent can then ask questions such as “Where is this function defined?”, “Who calls it?”, or “What does this change reach?” Responses point to files and lines instead of requiring broad source-file reads.

For direct embedding in Rust, the README provides:

cargo add kartta kartta-languages

Other documented integrations are a Go module:

go get dev.gaijin.team/go/kartta

And an npm package for Node 24 or later:

npm install @gaijin/kartta

The C interface is distributed as a per-target release archive containing kartta.h and the static library.

Important limits remain. The graph approximates a compiler-backed type system, and less-certain call bindings are marked. kartta has no framework awareness, does not connect calls across separate graphs such as FFI, and cannot bind, for example, a Go interface satisfied through a promoted method or a C/C++ call under a function-like macro. Unsupported languages such as Swift, Scala, and Dart remain available to path and grep queries. It does not edit, rename, or provide semantic search, and its index lives in memory.