hebros-mcp
Supports npm workspace packages when resolving dependencies and references across a monorepo.
Supports pnpm workspace packages when resolving dependencies and references across a monorepo.
Indexes TypeScript and TSX codebases, providing symbol locations, imports, dependencies, and references, and understands tsconfig path mappings.
Supports Yarn workspace packages when resolving dependencies and references across a monorepo.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@hebros-mcp Where is the `buildEdges` function defined?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Hebros MCP
An MCP server that gives coding agents a map of your codebase.
To find its way around a project, an agent usually lists folders, searches for text, and reads whole files. Every one of those steps costs tokens. Hebros reads your code once and then answers directly: where something is defined, what a file imports, who calls a function.
TypeScript and TSX. Nothing to configure, nothing running in the background.
The index is one JSON file in ~/.cache/hebros, kept up to date from git as you
edit.
Setup
Needs Node 22 or newer. Any MCP client works — point it at the hebros binary.
Opencode
In opencode.json:
{
"mcp": {
"hebros": {
"type": "local",
"command": ["npx", "-y", "hebros-mcp", "--root", "/path/to/repo"],
"enabled": true
}
}
}Claude Code
claude mcp add hebros -- npx -y hebros-mcp --root /path/to/repoThe first hebros names the server locally, so its tools appear as
mcp__hebros__get_map. The second is the npm package.
Codex
In ~/.codex/config.toml:
[mcp_servers.hebros]
command = "npx"
args = ["-y", "hebros-mcp", "--root", "/path/to/repo"]--root is optional. Without it, Hebros indexes the folder you run it in, or
whatever HEBROS_ROOT points at.
Related MCP server: Semantic JS MCP
What the agent gets
Tool | Answers |
| What's in this file or folder? Every name with its line number, no code bodies. For a file, also what it imports and what imports it. |
| Where is |
| What does this file or package use, and what uses it? |
| Where is |
| Force a refresh. You rarely need it — the other tools stay current on their own. |
For example, asking find_symbol("buildEdges") gets back:
src/imports.ts:427-445 + function buildEdges: export function buildEdges(...)One line, instead of hunting through folders and opening three files.
Every answer stays under about 6 KB. When there's too much to fit, you get a short summary saying where to look next, rather than a list that quietly stops halfway.
The first question builds the index, which takes well under a second for a few hundred files. After that Hebros asks git what changed and re-reads only those files, so answers come back in milliseconds.
It uses fewer tokens
Every file an agent opens fills up the space it has to think in. A map of a file is much smaller than the file.
Here is what that looks like on a real project of 324 files:
To answer | Without Hebros | With Hebros | |
What's in this file? | read it — 4.5 KB | a map of it — 1.4 KB | 3x smaller |
Where is | search — 8 KB of matches to read | one line — 217 B | 37x smaller |
What's in this project? | a list of files — 13 KB | a map — 365 B | 36x smaller |
Across 230 files, that is roughly 260,000 tokens of reading turned into 52,000.
How much you save depends on what you ask. A name used in 40 places is where it helps most, because searching for it hands back 40 lines to read. A name used once saves only about half. And on a small project — say 20 files — the map is no smaller than a plain file list. What you get there is a precise answer rather than a shorter one.
Good for local models
This helps most when there isn't much room. A model running on your own machine usually has space for 8,000 to 32,000 tokens, so one or two large files can use it all up. The model also has to read the whole prompt before it says anything, so a shorter prompt means a faster first word.
Hebros does the reading up front, on the CPU, and hands over a few hundred bytes of ready-made answer. That leaves the space free for the actual work.
Good to know
TypeScript and TSX only. Other languages need a small adapter.
get_referencesmatches names as text, not by type. For a common name, passfileto narrow it down.It understands tsconfig
pathsand workspace packages (pnpm, npm, yarn).The index is plain JSON. Comfortable up to a few thousand files.
More
docs/DESIGN.md — how the index works and why it's built this way
CONTRIBUTING.md — local setup and ground rules
License
MIT — see LICENSE.
Available Tools
5 toolsfind_symbolFind symbol definitionA
Exact file:line where a function/class/interface/type/const is defined, from the symbol index. Use instead of grepping for definitions. Then read only that line range.
Inputs: name (required), kind, file_glob, exported_only.
get_depsGet import dependenciesA
Import graph for one file OR a whole directory/package: what it imports and who imports it. Directory mode aggregates edges (N files -> target). Use for impact analysis before refactoring ("what breaks if I change this package?").
Inputs: file (required), direction.
get_mapGet code mapA
Structure of a file or directory from the prebuilt index: every symbol with its line number and one-line signature, NO bodies. For a file, also shows what it imports (with each dependency's main exports) and who imports it. Cheaper than reading the whole file or globbing directories. Use BEFORE reading any file to decide which exact lines you need.
Inputs: target (required).
get_referencesGet symbol referencesA
Where a symbol is used: JSX component usages, call sites (with line numbers), which files import it by name, and where the name is written without being called — string keys, object keys, property reads (how registries, event names and route tables wire things together). Use instead of grep-ing for usages. Heuristic — for a common name, narrow with file.
Inputs: name (required), file.
reindexRefresh the indexA
Incremental git-based refresh (only changed files are re-parsed). Rarely needed — tools auto-refresh.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a distinct primary intent, but get_map, get_references, and get_deps all overlap on reporting 'who imports it', and get_map and find_symbol both expose symbol locations. The descriptions mitigate the ambiguity, but an agent could still misselect for import/usage questions.
Most tools follow a verb_noun snake_case pattern (get_map, get_references, get_deps). find_symbol and reindex are minor deviations but still use the same action-first, lowercase-with-underscore style, so the naming remains predictable.
Five tools is a well-scoped count for a code-intelligence server. Each tool covers a distinct mode of interaction: refresh, definition lookup, structure overview, reference search, and dependency analysis.
The toolset covers the core workflow of navigating a codebase: locating definitions, browsing structure, finding usages, and analyzing dependency impact. The main gap is the lack of fuzzy or pattern-based symbol search, since find_symbol appears to require exact names.
Maintenance
Related MCP Connectors
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Stateless TS/JS compiler facts for agents: references, imports, impact. No repo index or OAuth.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Coding agents in multi-service codebases routinely rebuild existing helpers, trust stale type definitions, and modify API contracts without knowing who consumes them. Carrick solves this by indexing your entire TypeScript ecosystem across service and repository boundaries. By integrating deeply with the TypeScript compiler, Carrick traces every route, type, and cross-service call while recording function behaviour so agents search by intent rather than name. Delivered via MCP for AI agents and LSP for IDEs, Carrick ensures models see existing endpoints and utilities before generating new code. The scanner is source-available and runs from your CLI or CI pipeline.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA navigable symbol map of your codebase for coding agents, enabling efficient code navigation and reading only relevant symbols instead of entire files.MIT
- AlicenseNot gradedqualityBmaintenanceProvides structured semantic context for JavaScript/TypeScript codebases, enabling coding agents to navigate, review, and change code with explicit uncertainty.36 npm1MIT
- AlicenseNot gradedqualityCmaintenanceContext compiler for AI coding agents that indexes TypeScript codebases to extract and serve only the relevant symbols and files for a task, reducing token usage and search overhead.1MIT
- FlicenseNot gradedqualityBmaintenanceProvides efficient code navigation and graph-based analysis for AI agents, enabling symbol resolution, callers, implementations, and type schemas with minimal token usage.-