Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ALLOWED_DIRNoPrimary directory for command execution context. Default: First directory from ALLOWED_DIRS or current working directory.
ALLOWED_DIRSNoComma-separated list of directories where file operations are allowed. Default: Current working directory.
ALLOWED_FLAGSNoComma-separated list of allowed command flags. Default: -l,-a,-h,--help-l,-a,-h,--help
COMMAND_TIMEOUTNoMaximum execution time for commands in seconds. Default: 6060
ALLOWED_COMMANDSNoComma-separated list of allowed shell commands. Default: ls,cat,pwd,echols,cat,pwd,echo
MAX_COMMAND_LENGTHNoMaximum length of command strings. Default: 10241024

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
read_fileA

Read the complete contents of a file from the file system. Handles UTF-8 encoding. Fails if the path is not a file or not accessible. Only works within allowed directories:

  • /app

read_multiple_filesA

Read the contents of multiple files simultaneously.Returns results separated by '---'.Individual file read errors are reported inline.Only works within allowed directories:

  • /app

write_fileB

Create a new file or completely overwrite an existing file with new content. Use with caution. Creates parent directories if needed. Only works within allowed directories:

  • /app

edit_fileA

Make selective edits to a text file based on exact line matches (or whitespace normalized). Each edit replaces an existing sequence of lines (old_text) with new lines (new_text). Returns a git-style diff of the changes. Use dry_run to preview. Only works within allowed directories:

  • /app

create_directoryA

Create a new directory, including parent directories if needed. Succeeds silently if the directory already exists. Only works within allowed directories:

  • /app

list_directoryA

List directory contents with [FILE] or [DIR] prefixes. Only works within allowed directories:

  • /app

directory_treeA

Get a recursive tree view of files and directories as a JSON structure. Each entry includes 'name', 'type' (file/directory), and potentially 'children' for directories. Only works within allowed directories:

  • /app

move_fileA

Move or rename files and directories. Fails if the destination already exists.Both source and destination must resolve within allowed directories:

  • /app

search_filesA

Recursively search for files/directories matching a pattern (case-insensitive). Use exclude_patterns (glob format relative to search path) to ignore paths. Only searches within allowed directories:

  • /app

get_file_infoA

Retrieve detailed metadata about a file or directory (size, dates, type, permissions). Only works within allowed directories:

  • /app

list_allowed_directoriesA

List all directories the server's FileSystem module is allowed to access.

execute_commandA

Execute a shell command in the current shell working directory or a specified one. Command execution context is limited to: /app

Available commands: cat, echo, ls, pwd Available flags: --help, -a, -h, -l

Note: Shell operators (&&, |, >, etc.) are NOT supported. Paths in arguments are validated against the primary directory context.

change_directoryA

Change the shell's current working directory. The path must be within the primary allowed directory context:/app

show_security_rulesA

Show security configuration for command execution (allowed commands, flags, primary directory context).

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/Sachin-Bhat/stela-mcp'

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