Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_FS_HOSTNoAddress to listen on.0.0.0.0
MCP_FS_PORTNoPort.8765
MCP_FS_ROOTYesThe only folder the file tools can access.
MCP_FS_SHELLNoShell used for commands, e.g. `pwsh`.bash / cmd.exe
MCP_FS_TOKENYesAccess token.
MCP_FS_TOKENSNoSeveral tokens, comma separated, so each AI gets its own.
MCP_FS_READ_ONLYNoAllow reading only. Hides all write, delete and command tools.false
MCP_FS_URL_TOKENNoAccept the token in the URL: `https://host/<token>`.false
MCP_FS_DENY_GLOBSNoFiles the AI can never touch, e.g. `.env,*.pem,*.key`.
MCP_FS_ALLOW_DELETENoTurn deleting on or off.true
MCP_FS_ALLOW_HIDDENNoAllow access to dotfiles.true
MCP_FS_ALLOWED_HOSTSNoYour public domain. Wildcards work, e.g. `*.ngrok-free.app`.
MCP_FS_MAX_PROCESSESNoMaximum background processes at once.16
MCP_FS_ALLOW_COMMANDSNoTurn the terminal tools on or off.true
MCP_FS_ALLOWED_ORIGINSNoAllowed web origins, e.g. `https://claude.ai`.
MCP_FS_COMMAND_TIMEOUTNoDefault command timeout in seconds.120
MCP_FS_MAX_OUTPUT_CHARSNoMaximum size of each tool response.100000
MCP_FS_MAX_COMMAND_TIMEOUTNoLongest timeout a command can ask for.1800

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Remote filesystem + terminal. All paths are relative to the server root (see server_info). Tips for speed and low token use:

  • Explore with list_directory (depth 2-3), find_files and search_text before reading.

  • Read big files in ranges (read_file offset/limit); read several small files with read_many_files.

  • Change existing files with edit_file (find/replace + diff) instead of rewriting them with write_file.

  • run_command waits for exit; for dev servers/watchers use start_process + process_output(since=next_offset).

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

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

Tools

Functions exposed to the LLM to take actions

NameDescription
read_fileA

Read a file. Text is returned by line range; binary files can be returned as base64.

read_many_filesA

Read several text files in one round-trip. Errors are reported per file, not raised.

get_file_infoC

Size, type, permissions and timestamps for a path.

list_directoryB

List a folder (optionally recursive). Returns compact lines: 'd name/' for folders, 'f name size' for files.

find_filesB

Find files by name/glob, fast (uses ripgrep when installed).

search_textB

Grep across files (ripgrep speed when installed). Returns 'path:line: text' lines.

write_fileA

Create or replace a file atomically (never leaves a half-written file).

edit_fileA

Surgical edit: replace exact text blocks and return a unified diff. Much cheaper than rewriting a whole file.

create_directoryB

Create a folder and any missing parents.

move_pathC

Move or rename a file or folder.

copy_pathB

Copy a file or a whole folder.

delete_pathB

Permanently delete a file or folder.

run_commandA

Run a shell command and wait for it to finish. Returns exit code, stdout and stderr. For servers/watchers that never exit, use start_process instead.

start_processA

Start a background process and return its id. Poll it with process_output.

process_outputA

Read output from a background process (incrementally with since).

send_process_inputA

Type into a running process's stdin (answer prompts, REPLs).

stop_processB

Stop a background process and all its children.

list_processesA

List background processes started by this server.

server_infoA

Server root, OS/shell, enabled features and limits. Call once at the start.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 19 tools

Disambiguation5/5

Each tool targets a distinct resource+action pair: read/write/edit/move/copy/delete operate on clearly different file operations, and the filesystem search trio (list_directory, find_files, search_text) is well separated by what each returns. The process set (start_process, process_output, send_process_input, stop_process, list_processes) maps cleanly onto distinct lifecycle stages, and run_command explicitly documents its boundary against start_process.

Naming Consistency4/5

The overwhelming majority follow a verb_noun pattern (read_file, create_directory, delete_path, start_process, list_processes). Two outliers break it: server_info (noun-only) and process_output (noun_verb), a minor but noticeable deviation from the otherwise uniform convention.

Tool Count4/5

19 tools is on the heavy side of the ideal range, but nearly every one earns its place across two coherent sub-domains (filesystem and process control). Nothing looks redundant or padded, though the process tooling adds bulk an agent may rarely use.

Completeness4/5

Full CRUD plus metadata, recursive listing, glob find, and text grep cover the filesystem domain thoroughly, and the background process lifecycle is complete (start/output/input/stop/list). Minor gaps remain: no append/tail, no permission or timestamp mutation (chmod/touch), and no symlink or archive handling.