Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CEREBRO_ROOTNoPath to the project root for the brain to cover. If not set, auto-detects nearest ancestor .cerebro/

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
cerebro_mapA

Cheap whole-project overview: file/language counts and the most important modules ranked by dependency centrality (PageRank). Call this FIRST in a new session instead of exploring folders.

cerebro_getA

Everything Cerebro knows about a file WITHOUT reading it: cached summary (with staleness flag), defined symbols, and dependency edges.

cerebro_searchB

Find relevant files. When the semantic index is built it ranks by meaning (intent), so phrase queries naturally ("where do we validate stock at checkout?"); it also includes keyword/symbol matches. Returns paths to cerebro_get().

cerebro_recordB

Leave a trace: store your English understanding of a file so future sessions reuse it instead of re-analyzing. Write 1-3 dense sentences in English describing what the file does and its role.

cerebro_staleA

What the index no longer trusts: files changed/added/deleted on disk since the last reindex, plus summaries whose source file has changed.

cerebro_syncA

Catch changes made outside Claude Code (branch switch, git pull, edits in the raw editor) and reindex only the affected files. Works across nested repos.

cerebro_reindexB

Refresh the static index (symbols, dependency edges, hashes). Only changed/new/deleted files are reprocessed. Pass paths to limit scope.

cerebro_noteA

Record a decision, domain rule, or gotcha — the why that reading code can never recover (e.g. 'QR_MANUAL = merchant confirms payment by hand', 'Seller was refactored to Organization'). Future sessions retrieve it with cerebro_recall. Keep content to 1-3 sentences; topic is an optional short tag.

cerebro_recallA

Recall decisions/rules/gotchas recorded by past sessions BEFORE re-deriving them. Pass a query to search by meaning of topic/content, or leave empty for the most recent notes.

cerebro_impactA

Transitive blast radius: every file that directly OR indirectly imports path. Use before changing a widely-used file to see what could break.

cerebro_cyclesA

Find circular import groups (files that mutually depend on each other) — an architecture smell worth breaking. Returns each cycle's members.

cerebro_callersA

Find every call site of a function / method / class by NAME across the repo (symbol-level call graph; name-resolved, so it may include same-named symbols). Use to see who actually uses a symbol before you change it.

cerebro_callsA

List the internal functions/methods a file calls — its outgoing call edges (name-resolved). External library calls are omitted.

cerebro_orphansA

List code files that nothing imports — dead-code candidates. Framework entrypoints (modules, controllers, pages, configs, tests) are listed separately since they're loaded by convention, not by import.

cerebro_dead_symbolsA

List unused-export candidates: functions/classes/methods whose name is referenced nowhere in the indexed code, inside files that ARE imported (the symbol-level dead code that cerebro_orphans, which works per-file, can't see). Heuristic — confirm before deleting: dynamic access (obj['x'], string-based DI) and reflection can make a used symbol look dead.

cerebro_endpointsA

Backend HTTP endpoints (NestJS routes) the project exposes — the front↔back boundary that import edges miss. Search by path / method / handler (e.g. 'POST carts', 'promotions', 'findActive') to answer 'where is this endpoint handled?' without grepping decorators.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/marcodavidd020/cerebro-code-memory'

If you have feedback or need assistance with the MCP directory API, please join our Discord server