Skip to main content
Glama
achatainga

mcp-code-context

by achatainga

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
NODE_ENVNoNode environment, can be set to 'development' to enable debug logging.development
LOG_LEVELNoLogging level: fatal, error, warn, info, debug, trace.info

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_semantic_repo_mapB

Generate a compressed architectural overview of an entire repository

read_file_surgicalB

Read a file or extract a specific named symbol

analyze_impactC

Find all files that depend on a given file

read_file_linesC

Read specific line ranges from a file

search_code_patternC

Search for code patterns across multiple files

parse_fileC

Parse a file using Tree-sitter and extract symbols

write_file_surgicalA

Replace a symbol with new code. Phase 1 (dry-run): returns diff + token. Phase 2: confirm with token to apply.

insert_symbolA

Insert code at a specific location. Phase 1: returns diff + token. Phase 2: confirm with token to apply.

remove_symbolB

Remove a symbol from file. Phase 1: returns diff + token. Phase 2: confirm with token to apply.

rename_symbolA

Rename a symbol across the entire repository. Phase 1: returns diff + token. Phase 2: confirm with token to apply.

ast_transformA

Apply a declarative AST transformation to a symbol. Supports: add_parameter, wrap_with_try_catch, add_decorator, change_return_type, extract_variable. Uses two-phase write (Phase 1: preview diff, Phase 2: confirm with token).

search_symbolsA

Search symbols by name across the repo using AST (not text search). Finds classes, functions, methods by approximate name.

explain_symbolA

Get signature, location, and callers of a symbol in one call. More efficient than read_file_surgical + analyze_impact separately.

batch_readA

Read multiple symbols from multiple files in one call. Reduces N round-trips to 1.

get_rate_limit_statusA

Get current rate limiter token balance and operation costs. Use before expensive operations to check available budget.

rollback_fileC

Revert a file to its backup state

clean_backupsB

Remove all backup files for a project

get_server_statsA

Get server telemetry, audit statistics, and health metrics

get_cache_statsB

Get cache statistics (entries, size, hit rate)

clear_cacheB

Clear all cached parse results for a project

configure_file_watcherB

Start/stop file watcher for auto-cache invalidation

get_file_watcher_statusC

Get file watcher status for a project

get_session_statsB

Get statistics for the current MCP client session

clear_session_cacheA

Clear cache for current session only

list_pending_operationsB

List pending operations for crash recovery

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/achatainga/mcp-code-context'

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