Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AB_MCP_NAMENoServer name advertised to MCP clientsab_mcp
AB_MCP_ROOTNoThe single folder all tools are confined tothis project folder
AB_MCP_IGNORENoComma-separated folders to skip.venv,venv,__pycache__,.git,node_modules,.idea
AB_MCP_ENCODINGNoText encoding used to read filesutf-8
AB_MCP_MAX_BYTESNoMax file size (bytes) that read_file will read whole200000
AB_MCP_ALLOW_WRITENoSet to 1/true/yes to enable the write_file tool
AB_MCP_MAX_RESULTSNoDefault number of search hits before stopping50
AB_MCP_LINE_PREVIEWNoCharacters of each matching line shown in search results200

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_filesA

List files and folders inside the sandbox root (or a subdirectory).

Args: subdir: Path relative to the root. Use "." for the root itself.

read_fileB

Read the contents of a text file inside the sandbox root.

Args: path: File path relative to the root.

search_filesA

Search for a plain-text string across text files (case-insensitive).

Returns matching lines with their file path and line number.

Args: query: The text to search for. subdir: Limit the search to this subdirectory. Use "." for everything. max_results: Stop after this many matching lines. 0 uses the server default.

file_statsA

Report quick stats for a file (lines/words/chars) or a directory (file count and total size).

Args: path: File or directory relative to the root.

read_linesA

Read a slice of lines from a text file — useful for files too large for read_file to return whole.

Args: path: File path relative to the root. start: First line to read (1-based). end: Last line to read (inclusive). 0 means "to end of file".

find_filesA

Find files by name pattern (glob), e.g. ".py" or "test_".

Args: pattern: A glob pattern matched against file names. subdir: Limit the search to this subdirectory. Use "." for everything.

write_fileA

Create or overwrite a text file inside the sandbox root.

Disabled unless the server was started with AB_MCP_ALLOW_WRITE enabled.

Args: path: File path relative to the root. content: The full text to write.

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/AvinashBhargav/AB_MCP'

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