FlowTruxFlowTrux/Docs
Docsmcp

Filesystem MCP Server

Read and write files on the local server disk from workflows

The Filesystem MCP server provides tools for reading and writing files on the FlowTrux server's local disk. This is useful for generating reports, processing data files, or interacting with shared directories.

Setup

  1. Go to Settings > MCP Servers > Add Server.
  2. Select Filesystem.
  3. Configure the following:
FieldRequiredDescription
outputDirYesBase directory for file writes (e.g., /data/output)
allowedDirsYesComma-separated list of directories the server can access (e.g., /data/output,/data/reports,/data/imports)
  1. Click Save.

Use absolute paths. Do not use ~ for the home directory.

Security

The server enforces directory restrictions:

  • All file operations are validated against the allowedDirs list.
  • Attempting to read, write, or delete a file outside the allowed directories will fail.
  • Path traversal attempts (e.g., ../../etc/passwd) are blocked.

Tools

write_file

Write text content to a file. Creates parent directories if they do not exist.

ParameterTypeRequiredDescription
filenamestringYesFile name (placed in the output directory)
contentstringYesFile content to write
directorystringNoSubdirectory within the output folder

write_binary

Write base64-encoded binary content to a file.

ParameterTypeRequiredDescription
filenamestringYesFile name (e.g., image.png, backup.zip)
base64_contentstringYesBase64-encoded content
directorystringNoSubdirectory within the output folder

read_file

Read content from a file.

ParameterTypeRequiredDescription
filepathstringYesPath to the file (relative to allowed directories)

list_files

List files in a directory.

ParameterTypeRequiredDescription
directorystringNoDirectory path (default: output directory)
patternstringNoFilter pattern (e.g., *.json)

delete_file

Delete a file.

ParameterTypeRequiredDescription
filepathstringYesPath to the file to delete

append_to_file

Append content to an existing file. Creates the file if it does not exist.

ParameterTypeRequiredDescription
filenamestringYesFile name
contentstringYesContent to append
directorystringNoSubdirectory within the output folder

Filesystem vs Files (S3)

FeatureFilesystemFiles (S3)
Storage locationServer diskS3-compatible cloud storage
Organization scopingManual via allowedDirsAutomatic by org/workspace
Shareable URLsNoYes (presigned URLs)
PersistenceDepends on serverDurable cloud storage
Best forLocal processing, temp filesPermanent storage, sharing