Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENAI_API_KEYNoRequired if EMBEDDING_PROVIDER is 'openai'
EMBEDDING_PROVIDERNoEmbedding provider to use: 'openai' (fast, cloud) or 'transformers' (local, private)transformers

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_codebase

Search the indexed codebase using natural language queries. Returns code summaries with file locations. Supports framework-specific queries and architectural layer filtering. Use the returned filePath with other tools to read complete file contents.

get_codebase_metadata

Get codebase metadata including framework information, dependencies, architecture patterns, and project statistics.

get_indexing_status

Get current indexing status: state, statistics, and progress. Use refresh_index to manually trigger re-indexing when needed.

refresh_index

Re-index the codebase. Supports full re-index or incremental mode. Use incrementalOnly=true to only process files changed since last index.

get_style_guide

Query style guide rules and architectural patterns from project documentation.

get_team_patterns

Get actionable team pattern recommendations based on codebase analysis. Returns consensus patterns for DI, state management, testing, library wrappers, etc.

get_component_usage

Find WHERE a library or component is used in the codebase. This is 'Find Usages' - returns all files that import a given package/module. Example: get_component_usage('@mycompany/utils') β†’ shows all 34 files using it.

detect_circular_dependencies

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).

remember

πŸ“ CALL IMMEDIATELY when user explicitly asks to remember/record something.

USER TRIGGERS: β€’ "Remember this: [X]" β€’ "Record this: [Y]" β€’ "Save this for next time: [Z]"

⚠️ DO NOT call unless user explicitly requests it.

HOW TO WRITE: β€’ ONE convention per memory (if user lists 5 things, call this 5 times) β€’ memory: 5-10 words (the specific rule) β€’ reason: 1 sentence (why it matters) β€’ Skip: one-time features, code examples, essays

get_memory

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).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Codebase IntelligenceAutomatic codebase context: libraries used, team patterns, and conventions. Read this BEFORE generating code to follow team standards.

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