Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
rootNoProject root directory (default: current working directory)
logLevelNodebug | info | warn | error (default: info)info
maxFileSizeNoSkip files larger than this (default: 524288 = 512 KB)524288
maxTreeDepthNoMaximum directory depth for tree view (default: 5)5
maxSearchResultsNoCap on search results returned (default: 50)50
maxDependencyDepthNoImport hops for semantic context (default: 2)2

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_project_treeA

Returns a structured tree view of the project repository, respecting .gitignore rules.

get_semantic_contextB

Returns the content of a file along with its local dependency tree, providing rich context for understanding the code.

search_codebaseA

Searches the codebase for text or regex patterns, returning matches with file paths and line numbers.

get_changed_filesA

Returns a list of files changed since a git ref (default: HEAD~1), grouped by status (added/modified/deleted). Optionally includes the full unified diff. Use this to understand what changed in a branch or commit.

get_project_indexA

Returns a compressed semantic map of the entire project: all exported functions, classes, interfaces, and types with their signatures — no implementation bodies. Ideal for getting an overview of a large codebase in a single call (~500 tokens). Call this first when exploring an unfamiliar project.

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/Eltortilla1/synapse-code-mcp'

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