# stacklit [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/glincker/stacklit  
**GitHub Stars:** 132  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/stacklit

## Description
Stop making your AI re-read your codebase. Stacklit maps your repo once and keeps the map fresh. In a 450-session test, agents ran 82% fewer grep and glob searches. Free, MIT, one Go binary. Sets up Claude Code, Cursor, Codex and 22 more.

## Claude Desktop Quick Installation
No confirmed install details yet, so no config is published. Follow the setup steps in the repository above.

## Documentation

## What stacklit does

stacklit creates a committed representation of a codebase for AI coding agents. Its index records modules, exports, dependency edges, and hints in stacklit.json. The repository can also receive a Mermaid dependency diagram and an interactive HTML map.

The generated data is intended to give an agent a compact starting point before it opens source files. A derived prompt summary can include project metadata, module relationships, test commands, environment hints, and files marked as not to touch. The index is deterministic: unchanged repository content produces the same bytes.

Stacklit indexes 48 languages and formats. Symbol-graph and call-edge features cover 20 languages, including Go, Python, TypeScript, JavaScript, Rust, Java, C#, Kotlin, Swift, PHP, and Ruby.

## How it works

The scanner parses the repository with tree-sitter and produces the index locally. Agents can consume the committed JSON file directly or connect through `stacklit serve`, which exposes the repository-navigation interface over MCP.

Queries are constrained by a token budget. Commands such as `query`, `slice`, and `impact` can return focused portions of the symbol graph, likely relevant files, and dependency or call relationships instead of requiring a full repository crawl. The command-line interface also supports `derive`, `explain`, `path`, and `hubs` operations.

A post-commit Git hook can refresh the map. An optional Claude Code hook can use a searched identifier to point toward its definition. The CLI itself does not send repository data over the network or use an LLM.

## Setup and configuration

Install with one of the supported distribution methods:

- `npx stacklit init`
- `brew install glincker/tap/stacklit`
- `npm install -g stacklit`
- `go install github.com/glincker/stacklit/cmd/stacklit@latest`
- A binary downloaded from the project releases

Run `stacklit init` in a repository to scan it, write the index, and open the map. Then use `stacklit setup` to configure detected assistants. Commit `stacklit.json` if the team wants the map available alongside the source code.

`stacklit serve` starts the MCP service. The `--profile minimal` option reduces the interface from 15 tools to 4 and produces a smaller tool schema. `stacklit setup --list` displays the available assistant targets. Set `STACKLIT_MAP_ICONS=off` to stop the map page from loading language icons from thesvg.org.

## Tools and capabilities

The MCP service provides 15 tools in its default profile, with a four-tool minimal profile. The related CLI supports:

- `query` for token-budgeted symbol-graph results
- `slice` for focused graph sections
- `impact` for examining affected relationships
- `path`, `explain`, and `hubs` for repository navigation and analysis
- `derive` for compact prompt-oriented repository context
- `export` for GraphML, Cypher, DOT, Mermaid, and other output formats
- `check` for architecture rules and `status` for freshness checks
- `merge-graphs` for combining graph data

The generated outputs include `stacklit.json`, `DEPENDENCIES.md` by default, and `stacklit.html`. A GitHub Action is available for repository workflows.

## Limitations and notes

Symbol graphs and call edges are available for 20 of the 48 indexed languages and formats. The map page may request language icons from thesvg.org unless icon loading is disabled. Stacklit is local and deterministic, but the index must be regenerated when repository changes need to be reflected; the optional post-commit hook automates that refresh.

The project is distributed under the MIT license and uses a single Go binary. Its CLI makes no network calls, and it provides no telemetry or repository upload.

_Full upstream README: https://allmcps.com/mcp/stacklit/readme_

