jambavan
Jambavan is a Model Context Protocol (MCP) server that gives AI coding models live codebase awareness, durable memory, and surgical editing tools — without making any external LLM calls.
Session Initialization (jambavan_awaken): Bootstrap a session by loading the operating protocol and recent project memories in one call.
Code Indexing & Context (jambavan_index, jambavan_watch, jambavan_context, jambavan_diagnostics): Build and incrementally update an AST-aware SQLite index using tree-sitter parsers. Retrieve ranked, token-budgeted snippets relevant to a query (~44–87% fewer tokens than reading full files). Watch files for incremental re-indexing.
Code Graph (jambavan_graph_report, jambavan_graph_query, jambavan_graph_path): Build a lightweight inferred graph of callers, callees, imports, and mentions. Query for neighbors via BFS or find the shortest path between two symbols.
Durable Memory (jambavan_memory_store/search/recall/mine_session/invalidate/delete/status): Store decisions and facts as human-readable markdown with YAML frontmatter. BM25 full-text search, session transcript mining, and memory invalidation — no external database or embeddings needed.
Token Compression (jambavan_sankshipta): Deterministically compress prose/prompts while preserving code, paths, and versions verbatim. Can write back in-place with a backup.
Efficient-Dev Discipline (jambavan_vibhishana_niti, jambavan_rin_mochan): Activate YAGNI-first, minimal-diff coding rules at configurable intensity levels (lite/full/ultra). Audit // rin: technical debt markers into a structured ledger.
File & Shell Tools (read_file, search, list_files, write_file, patch_file, bash): Read files (with optional line ranges), regex search via ripgrep, and list directories — always available, confined to the project root. Write/patch files and run sandboxed shell commands are opt-in via JAMBAVAN_ALLOW_WRITE=1 and JAMBAVAN_ALLOW_BASH=1. Secret-looking files (.env, *.pem, etc.) are blocked by default.
Click on "Install 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., "@jambavanawaken and load project memories"
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.
In the Ramayana, when the army despaired at the ocean's edge, it was Jambavan — the ancient, wise bear-king — who turned to Hanuman and reminded him of his own forgotten, immeasurable strength. Hanuman had the power all along. He only needed to be reminded. Then he crossed the ocean in a single leap.
A large language model is Hanuman. It can already reason, plan, and write code. What it lacks is not intelligence — it is awareness of the ground it stands on: which files exist, what calls what, what was decided last week, what it already tried.
Jambavan is the voice at the ocean's edge. It is a Model Context Protocol server that gives any coding model a live map of the codebase, a durable memory, and a set of surgical tools — so the model's existing power actually lands.
Jambavan does not call an LLM and is not an agent. The host model thinks. Jambavan gives it the ground to leap from.
The powers it hands over
Power | Tools | What it does |
Sight |
| AST-aware code index (tree-sitter, incremental, live-watched). Retrieve ranked, token-budgeted context instead of re-reading whole files. |
The bridge |
| A lightweight inferred code graph — callers, callees, imports, mentions — built from AST-extracted references matched by symbol name (not scope-resolved). Traverse relationships and find the shortest path between two symbols. Edges are labelled |
Memory |
| Durable, human-readable memory as markdown files under |
Sankshipta (brevity) |
| Deterministically compress prose and prompts to fewer tokens while preserving code, paths, versions, and facts. |
Vibhishana Niti (wise counsel) |
| Activate an efficient-dev discipline mid-session, and audit deliberate shortcuts ( |
The hands |
| Guarded file, search, and shell tools — confined to the project root. Read-only tools are on by default; mutating and shell tools are OFF unless you opt in (see Safety). |
The reminder |
| Reminds the model of every power above, plus the session protocol and recent project memories. Call it first. |
Related MCP server: MegaMemory
Install
One command. Finds every coding agent on your machine (Claude Code, Codex CLI, Cursor, Continue). Registers Jambavan as an MCP server for each one it finds.
# macOS · Linux · WSL · Git Bash
curl -fsSL https://raw.githubusercontent.com/beingmartinbmc/jambavan/main/install.sh | bash# Windows · PowerShell 5.1+
irm https://raw.githubusercontent.com/beingmartinbmc/jambavan/main/install.ps1 | iex~30 seconds. Needs Node ≥20. Skips agents you don't have. Safe to re-run. It never touches other MCP servers already in your config — read the script before piping it into a shell, as with anything on the internet.
Register manually
Prefer to wire it up yourself, or use an agent the installer doesn't know about? Same command everywhere: npx -y jambavan.
Claude Code
claude mcp add jambavan -- npx -y jambavanCodex CLI
codex mcp add jambavan -- npx -y jambavanCursor (~/.cursor/mcp.json global, or .cursor/mcp.json per-project)
{
"mcpServers": {
"jambavan": { "command": "npx", "args": ["-y", "jambavan"] }
}
}Continue — drop a JSON file into ~/.continue/mcpServers/jambavan.json:
{ "command": "npx", "args": ["-y", "jambavan"] }Troubleshooting (NVM, GUI apps, corporate npm)
npx -y jambavan works when the MCP host inherits a shell PATH containing node/npx and npm can reach the public registry. Two setups break that:
1. GUI-launched hosts (Cursor, etc.) don't see NVM. You'll see spawn npx ENOENT, or — after switching to an absolute npx — env: node: No such file or directory (because npx is a script with #!/usr/bin/env node). GUI apps launched outside your shell don't inherit NVM's PATH. Fix: run an absolute node against npm's npx-cli.js and set PATH explicitly.
2. Corporate npm registry / release-age policy. You'll see No versions available for jambavan (npm pointed at an internal mirror that doesn't proxy it) or No matching version found ... with a date before <date> (an --before / release-age policy rejecting a freshly published version). Fix: force the public registry, clear --before, and pin the version.
Find your paths:
command -v node # → /abs/path/to/node
echo "$(npm prefix -g)/lib/node_modules/npm/bin/npx-cli.js" # → npx-cli.jsCursor config with all workarounds applied:
{
"mcpServers": {
"jambavan": {
"command": "/abs/path/to/node",
"args": [
"/abs/path/to/npm/bin/npx-cli.js",
"-y",
"--registry=https://registry.npmjs.org",
"--before=",
"jambavan@0.3.0"
],
"env": { "PATH": "/abs/path/to/node/dir:/usr/bin:/bin" }
}
}
}Apply only the pieces you need: the absolute node + npx-cli.js + PATH fixes NVM/GUI PATH; --registry/--before/pinned version fix corporate npm policy.
Claude Code plugin
This repo is also a Claude Code plugin marketplace. Add it and install with two commands — no manual MCP config:
/plugin marketplace add beingmartinbmc/jambavan
/plugin install jambavan@jambavanThe plugin registers the same npx -y jambavan MCP server (read-only tools by default) and bundles a Vibhishana Niti skill — run /jambavan:vibhishana-niti to activate the efficient-dev discipline in any Claude Code session. Refresh later with /plugin marketplace update jambavan. The catalog lives in .claude-plugin/marketplace.json; the plugin manifest in plugins/jambavan/.claude-plugin/plugin.json.
Run directly
npm install
npm run build
node dist/index.js --help
node dist/index.jsSet JAMBAVAN_ROOT=/path/to/project when launching from outside the target repo.
The leap (recommended workflow)
jambavan_awaken— read the protocol and recent project memories.jambavan_index— build the local SQLite code index.jambavan_watch start— keep the index live while editing.jambavan_context— pull ranked, token-budgeted context before touching unfamiliar code.patch_fileoverwrite_file— surgical edits, cheaper tokens. (needsJAMBAVAN_ALLOW_WRITE=1)Keep tool output Sankshipta: line ranges,
max_results,git --stat/--name-only,jq/yq/awk/cut/head, quiet/no-color flags, and hash/mtime polling before full reads.bash— run the smallest relevant check. (needsJAMBAVAN_ALLOW_BASH=1)jambavan_memory_store/jambavan_memory_mine_session— persist what was decided, so the next session starts awake.
Safety
Read-only by default. read_file, search, and list_files are always available. The mutating and shell tools are off unless you explicitly opt in, because an autonomous host model should not get write/exec access by accident:
Tool(s) | Enable with |
|
|
|
|
When disabled, these tools are not registered at all — the host never sees them. (jambavan_sankshipta rewrites files in place, so it counts as a write tool.)
File, search, list, and bash working directories are confined to JAMBAVAN_ROOT (or the detected project root). Set JAMBAVAN_ALLOW_OUTSIDE_ROOT=1 only for trusted local use. Files that look like secrets (.env*, *.pem, *.key, id_rsa, .npmrc, …) are refused by all file tools unless JAMBAVAN_ALLOW_SECRETS=1.
bash runs with a minimal no-color environment (host secrets are not inherited unless JAMBAVAN_BASH_INHERIT_ENV=1) and catches a few obvious footguns (rm -rf /, rm -rf /*, home/project wipes, git reset --hard, git clean -fx, blind curl | sh, and similar). This is not a security boundary — it is trivially bypassed by encoding, aliases, scripts, shell expansion, or unlisted commands like find . -delete. Treat bash as a local shell: review tool calls before approving them, and run the server inside a sandboxed workspace (container / microVM) if you need real isolation.
Configuration
Env var | Default | Description |
| auto-detect | Project root to index and serve |
|
| Where OKF memory docs live; point at a shared palace to reuse memory across projects |
|
| Max tokens in |
|
| Default Vibhishana Niti level ( |
| off |
|
| off |
|
| off |
|
| off |
|
| off |
|
|
| Global cap on any tool's returned output |
|
| Max file size |
Benchmark
npm run bench dogfoods the real pipeline — no LLM calls, no external services, fully deterministic. It auto-derives queries from the repo's own most common symbols, so it's meaningful on any codebase. It measures five dimensions, not just token savings, and every number below is a fresh run against this repo (33 files, 151 symbols):
1. Index — build speed and throughput.
metric | value |
cold build | ~130 ms (33 files, 151 symbols) |
warm re-index | ~27 ms (~5× faster, only changed files re-parsed) |
throughput | ~250 files/s · ~1,150 symbols/s |
2. Context — not only tokens, but how much the agent has to open. Baseline = an agent reads the full contents of every file a query matches; jambavan ships ranked, budgeted snippets instead.
metric | baseline | jambavan | win |
files/snippets to read | 6 whole files | 14 focused chunks | targeted spans, not whole files |
tokens (5 queries) | ~21,500 | ~12,000 | ~44% fewer |
assemble latency | (disk reads) | ~2 ms | below one check's runtime |
3. Graph — relationships extracted from the AST (a coverage metric, not tokens).
metric | value |
nodes / edges | 178 / 473 |
edge provenance | 264 |
build / query / path | ~2 ms / ~6.6 ms / ~0.06 ms |
4. Sankshipta — prose compression holds steady around 24%.
5. Tool latency — all 24 tools the MCP server advertises, timed over the real stdio transport (the same request/response path a host model uses): min/median/max over 10 calls for read-only tools, single-shot for mutating ones. Representative medians:
tool | median | tool | median |
| 0.2 ms |
| 0.2 ms |
| 0.3 ms |
| 1.4 ms |
| 0.2 ms |
| 12.9 ms |
| 0.2 ms |
| 11.1 ms |
| 0.2 ms |
| 12.5 ms |
Everything driven purely in-process is sub-millisecond; the outliers (index, search, bash) are the ones that shell out or touch disk, exactly as expected. Every call succeeds — the benchmark exits non-zero if any tool errors, so it doubles as an end-to-end smoke test.
The larger the codebase, the bigger the win. The same benchmark run against a mid-size Java service (166 files, ~1,000 symbols) — every dimension scales in Jambavan's favour:
dimension | this repo (33 files, 151 symbols) | a mid-size Java service (166 files, ~1,000 symbols) |
cold index | ~130 ms | ~550 ms |
incremental re-index | ~5× faster | ~10× faster |
context tokens saved | ~44% | ~87% |
files→chunks (5 queries) | 6 files → 14 chunks | 80 files → 133 chunks |
graph edges extracted | 473 | ~10,400 |
Incremental re-index and per-query context stay roughly flat while a from-scratch read grows with the repo, so the token savings widen as the codebase grows. Baseline is a conservative comparison — per-query results vary, and occasionally a query whose matches sit in tiny files reads cheaper whole than as ranked snippets. Run it on yours:
JAMBAVAN_ROOT=/path/to/your/repo npm run benchChecks
npm run lint
npm run build
npm run unit # node:test unit suite (test/*.test.ts)
npm run self-check
npm run benchSee ARCHITECTURE.md for internals.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/beingmartinbmc/jambavan'
If you have feedback or need assistance with the MCP directory API, please join our Discord server