Skip to main content
Glama
fejinrp
by fejinrp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LEAN_RGNoPath to the ripgrep binary.rg
LEAN_ALLOWNoReplaces the allowlist of commands run_compact may execute; patterns separated by ';'.built-in list
LEAN_ROOTSNoAllowed roots, separated by ':' or ','. Relative paths resolve against the first root. If not set, the server's current directory is the only root.cwd
LEAN_CONFIGNoJSON config file with { roots, allow, maxOutputChars, defaultTimeoutSec, maxTimeoutSec }.$LEAN_CACHE_DIR/config.json
LEAN_TIMEOUTNoDefault run_compact timeout in seconds. The maximum is 1800.300
LEAN_CACHE_DIRNoLocation of cache.json and the default config file.~/.lean-context
LEAN_MAX_CHARSNoOutput cap per tool call.8000
LEAN_NO_REEXECNoSet to 1 to disable the entry point relaunching itself with node --liftoff-only.
LEAN_ALLOW_EXTRANoAppends to the run_compact command allowlist.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
outlineA

Symbol map of a file (signatures + line ranges) or dir (files with symbol counts). Use before reading files.

read_symbolC

Source of one symbol (e.g. "fn", "Class.method") or a line range.

searchB

Code search (ripgrep), grouped by file. Every matching file is listed with its count; big results are compacted. Literal unless regex=true.

run_compactA

Run an allowlisted test/build/lint command (no shell). Returns exit code + failures only; full log path included.

summary_cacheA

Short per-file notes, auto-invalidated when the file changes. get before reading; set after understanding a file.

project_notesC

Repo memory (/.lean-context/notes.md): conventions, decisions, commands.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 6 tools

Disambiguation4/5

Tools are mostly distinct: outline (structure), read_symbol (content), search (find), run_compact (execute), and two memory tools. The only overlap is project_notes vs summary_cache, but descriptions clearly separate repo-level decisions from per-file notes.

Naming Consistency3/5

Mixed conventions: verb_noun (read_symbol, run_compact), bare verbs (search, outline), and noun phrases (project_notes, summary_cache). Still readable and predictable enough to navigate, but no single pattern holds.

Tool Count5/5

Six tools is well-scoped for a lean context server, with each tool covering a distinct stage of the read/navigate/remember workflow. No bloat or redundancy.

Completeness4/5

Covers navigation (outline, search), reading (read_symbol with line ranges), memory (project_notes, summary_cache get/set), and command execution with compact output. Minor gap: no explicit listing or invalidation control of cached notes beyond automatic file-change invalidation.

Maintenance

ActivityMaintained
ResponsivenessNo issues