# sonde [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/anishmoncivarghese/sonde  
**GitHub Stars:** 4  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/sonde

## Description
Local code graph for TypeScript, Python and Swift: who calls this, what breaks if I change it.

## 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/anishmoncivarghese/sonde), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install -g @cheppulabs/sonde
```

2. Add to your MCP client:

```sh
sonde init
```

## Documentation

## What sonde does

sonde builds a local graph of repository symbols and their relationships for TypeScript, Python, and Swift code. The graph supports questions such as which functions call a symbol, which modules depend on it, what may be affected by a change, and which tests are connected to it. Its three MCP tools are `find_symbols`, `query_graph`, and `get_impact_radius`.

The index is stored in SQLite and is used by an MCP server launched against the project directory. Source returned with a response is re-read and re-hashed for the indexed byte range, so responses do not return stale source bytes. Structural drift is reported rather than hidden.

## How it works

The default indexing path uses tree-sitter. With `--resolve`, Sonde can use the TypeScript compiler for TypeScript and pyright for Python to produce compiler-resolved edges. Relationships are labelled by how they were found: `COMPILER`, `LEXICAL`, `HEURISTIC`, `EXTERNAL`, or `UNRESOLVED`. Unresolved references are not assigned guessed targets.

The graph can also produce an `ARCHITECTURE.md` file describing repository modules, dependencies, and exposed elements. `sonde doc --stdout` prints the result, `sonde doc --check` checks whether it is current, and `sonde doc --module` provides symbol-level detail for a selected module. Generated documentation records the commit it describes and warns when files have changed.

## Setup and configuration

Install the package globally, change to the repository you want to index, and initialize it:

```sh
npm install -g @cheppulabs/sonde
cd your-project
sonde init
```

Initialization indexes the repository and adds the server to the project’s `.mcp.json`, asking for confirmation before writing. Use `sonde init --yes` to skip that prompt. For Python repositories, use `sonde init --resolve` to enable the compiler-resolution path.

You can perform the steps separately with `sonde index .`, then configure the MCP server as:

```json
{
  "mcpServers": {
    "sonde": {
      "command": "sonde",
      "args": ["mcp", "serve", "."]
    }
  }
}
```

Initialization does not overwrite a conflicting existing `sonde` entry in `.mcp.json`. No account or hosted service is needed.

## Tools and capabilities

- `find_symbols` locates symbols in the indexed repository.
- `query_graph` retrieves structural relationships from the symbol graph.
- `get_impact_radius` examines the code likely affected by a symbol or change.
- `sonde status` reports index drift and the distribution of resolution tiers.
- `sonde doc` generates architecture documentation from graph data.
- `sonde doc --check` supports freshness checks in CI.

## Limitations and notes

Sonde is designed for structural questions. Queries based on behavior or vocabulary absent from the code’s shared symbols, such as locating where retry backoff is decided, are not its supported strength; an agentic search loop may be a better choice for those tasks.

The architecture diagram intentionally shows only the heaviest dependencies and reports omitted relationships. It excludes relationships inferred only from shared symbol names, and `--module` can expose more detail. Generated `ARCHITECTURE.md` files should be regenerated rather than edited manually, and Sonde will not overwrite one it did not generate.

The published benchmark reports full structural-task recall on its tested production TypeScript repository while using fewer calls and fewer context tokens than the compared search loop. Those measurements are benchmark-specific rather than a guarantee for every codebase.

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

