Codebase Context
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OPENAI_API_KEY | No | Required if EMBEDDING_PROVIDER is 'openai' | |
| EMBEDDING_PROVIDER | No | Embedding provider to use: 'openai' (fast, cloud) or 'transformers' (local, private) | transformers |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_codebaseA | Routes to the active/current project automatically when known. Search the indexed codebase. Default compact mode returns at most 6 ranked results with light graph context (importedByCount, topExports, layer), a patternSummary, bestExample, nextHops, and response-budget metadata. Use mode="full" for today's richer response with full hints arrays and all memories — identical shape as before this parameter existed. IMPORTANT: Pass the intent="edit"|"refactor"|"migrate" to get preflight: edit readiness check with evidence gating. |
| get_codebase_metadataB | Routes to the active/current project automatically when known. Get codebase metadata including framework information, dependencies, architecture patterns, and project statistics. |
| get_indexing_statusA | Routes to the active/current project automatically when known. Get current indexing status: state, statistics, and progress. Use refresh_index to manually trigger re-indexing when needed. |
| refresh_indexA | Routes to the active/current project automatically when known. Re-index the codebase. Supports full re-index or incremental mode. Use incrementalOnly=true to only process files changed since last index. |
| get_style_guideA | Routes to the active/current project automatically when known. Query style guide rules and architectural patterns from project documentation. |
| get_team_patternsA | Routes to the active/current project automatically when known. Get actionable team pattern recommendations based on codebase analysis. Returns consensus patterns for DI, state management, testing, library wrappers, etc. |
| get_symbol_referencesA | Routes to the active/current project automatically when known. Find concrete references to a symbol in indexed chunks. Returns total usageCount and top usage snippets. |
| detect_circular_dependenciesA | Routes to the active/current project automatically when known. Analyze the import graph to detect circular dependencies between files. Circular dependencies can cause initialization issues, tight coupling, and maintenance problems. Returns all detected cycles sorted by length (shorter cycles are often more problematic). |
| rememberA | Routes to the active/current project automatically when known. CALL IMMEDIATELY when user explicitly asks to remember/record something. USER TRIGGERS:
DO NOT call unless user explicitly requests it. HOW TO WRITE:
|
| get_memoryA | Routes to the active/current project automatically when known. Retrieves team conventions, architectural decisions, and known gotchas. CALL BEFORE suggesting patterns, libraries, or architecture. Filters: category (tooling/architecture/testing/dependencies/conventions), type (convention/decision/gotcha), query (keyword search). |
| get_codebase_healthA | Routes to the active/current project automatically when known. Get actionable codebase health signals from the latest index. Returns the highest-risk files and their reasons, or a single file when requested. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Codebase Intelligence | Context for the active project in this MCP session. In multi-project sessions, this falls back to a workspace overview until a project is selected. |
| Codebase Intelligence (Full) | Exhaustive conventions map for the active project. Use when you explicitly need the unbounded map instead of the bounded first-call surface. |
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/PatrickSys/codebase-context'
If you have feedback or need assistance with the MCP directory API, please join our Discord server