Skip to content

Tool Reference

All paths are cloud URIs — e.g. s3://my-bucket/path/to/file.txt. The server validates every path against the configured root URIs at startup; requests outside allowed roots are rejected.

Read Tools

ToolParametersDescription
read_filepathRead a file. Binary → base64; text → UTF-8.
read_text_filepath, head?, tail?Read text file with optional head/tail line limits.
read_media_filepathRead image/media as base64 MCP image content block.
read_multiple_filespathsRead several files in parallel.
read_file_rangepath, offset, limitRead a 1-based line range with total line count header.

Write Tools

ToolParametersDescription
write_filepath, contentWrite/overwrite a file. Flushed after debounce window.
edit_filepath, edits[], dryRun?Apply { oldText, newText } edits. Preview with dryRun.

Directory Tools

ToolParametersDescription
create_directorypathCreate a directory placeholder and parent prefixes.
list_directorypathList immediate children (like ls).
list_directory_with_sizespath, sortBy?, limit?List children with sizes. Sort by size or name.
directory_treepath, excludePatterns?Recursive directory tree with glob exclusions.

Move, Copy & Delete Tools

ToolParametersDescription
move_filesource, destinationMove file. Server-side copy + delete for same-bucket.
copy_filesource, destinationCopy file. Server-side for same-bucket.
delete_filepathDelete file. Requires --enable-delete.

Search Tools

ToolParametersDescription
search_filespath, pattern, excludePatterns?Glob-based object key search.
grep_filepath, pattern, case_insensitive?Regex search in a single file with line numbers.
grep_filespath, pattern, glob?, case_insensitive?, output_mode?, max_objects?Regex search across all objects under a path.

Info Tools

ToolParametersDescription
get_file_infopathFile metadata: size, last-modified, content type.
list_allowed_directories(none)List configured root URIs.

✨ = Extended tool (not in standard mcp-server-filesystem)

Shell Tool ⚡

ToolParametersDescription
shellcommandExecute POSIX-like commands. Supports pipes, redirects. Requires --enable-shell.

Built-in commands: ls, cat, head, tail, cp, mv, rm, mkdir, touch, stat, find, grep, wc, du, echo, tee, diff

bash
shell "ls -l s3://my-bucket/data/"
shell "cat s3://my-bucket/config.json | grep port | wc -l"
shell "echo hello world > s3://my-bucket/greeting.txt"

WARNING

shell requires --enable-shell. rm and mv additionally require --enable-delete.

Released under the PolyForm Shield 1.0.0 License.