Skip to main content
Glama
nachogeinfor-ops

code-context

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CC_WATCHNoEnable file watching: 'on' or 'off' (default: 'off')off
CC_CHUNKERNoChunking strategy: 'treesitter' (default) or 'line'treesitter
CC_CACHE_DIRNoPath to cache directory (default: platformdirs user cache)
CC_TELEMETRYNoOpt-in telemetry: 'on' or 'off' (default: 'off')off
CC_EMBEDDINGSNoEmbeddings backend: 'local' (default) or 'openai'local
OPENAI_API_KEYNoOpenAI API key (required if CC_EMBEDDINGS=openai)
CC_EMBEDDINGS_MODELNoModel for embeddings (e.g., 'all-MiniLM-L6-v2')all-MiniLM-L6-v2
CC_WATCH_DEBOUNCE_MSNoDebounce interval for file watching in milliseconds (default: '1000')1000
CC_EMBEDDINGS_BACKENDNoEmbeddings runtime: 'onnx' (default) or 'torch'onnx
CC_INCLUDE_EXTENSIONSNoComma-separated list of file extensions to index.py,.js,.ts,.jsx,.tsx,.go,.rs,.java,.c,.cpp,.h,.hpp,.md,.yaml,.yml,.json

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_repoA

Semantic search over the indexed codebase. Use this INSTEAD of Grep when the query is conceptual (e.g. 'where do we validate input', 'how is caching implemented', 'authentication flow'). Returns ranked code fragments with file path, line range, snippet, score and a one-line why excerpt. For exact-string lookup, Grep is still better.

recent_changesA

Recent git commits with structured fields (sha, ISO date, author, paths, summary). Use INSTEAD of git log shell calls — the output is already parsed and filterable by since and paths. Defaults to the last 7 days when since is omitted.

get_summaryA

Structured snapshot of the project or a module: name, purpose (README first paragraph), stack (Python/Node/Rust/Go/Java), entry_points, key_modules, stats (files, loc, languages). Useful at session start for orientation; prefer it over reading README/CLAUDE.md when you need machine-readable fields.

find_definitionA

Locate the definition site of a named symbol (function, class, method, type, struct, enum, interface, record). Use this INSTEAD of shelling out to grep when the user asks "where is X defined?" — returns SymbolDef[] with path, line range, kind, and language. Faster and more accurate than grepping for def X / class X / function X / etc., because it consults a tree-sitter-indexed symbol table built at reindex time, not the raw text.

find_referencesA

List every textual occurrence of a named symbol in the indexed corpus. Use INSTEAD of grep -n "X" when the user asks "who calls X?" or "where is X used?". Returns SymbolRef[] with path, line, snippet. Word-boundary matched, so 'log' won't return 'logger' or 'log_format'.

get_file_treeA

Repo-relative directory tree, gitignore-aware. Use INSTEAD of shelling out to Bash: ls -R or Bash: tree when the user asks for the project structure or for orientation in an unfamiliar module. Returns a hierarchical FileTreeNode with files (with byte sizes) and directories (with recursive children, capped at max_depth). Honors .gitignore; skips hidden files unless include_hidden=true.

explain_diffA

AST-aligned chunks affected by the diff at ref. Use INSTEAD of Bash: git show <sha> when the user asks "what does this commit do?" or "what changed in HEAD~3?". The chunker resolves which whole functions / classes were touched, not just raw line additions — much easier for an LLM to reason about. Returns DiffChunk[] with path, lines, snippet, kind, and change ("added"|"modified"|"deleted").

refreshA

Trigger a background reindex without restarting the server. Use after large external changes (git checkout, cache import, file restore). By default blocks until the new index is active (60s timeout). Pass wait=false for fire-and-forget, or timeout to extend the wait window for large repos that need more than 60s to reindex.

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/nachogeinfor-ops/code-context'

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