Skip to Content
Fetlar
Reference

Environment variables

Variables that change how Fetlar and its MCP server behave.

Command line

VariableMeaning
FETLAR_THREADSThe most threads to use. FETLAR_THREADS=1 reads one file and one sheet at a time and uses the least memory. The output is the same either way
FETLAR_INDEX_DIRWhere the search index is kept. --index-dir does the same for one command

The index also follows XDG_DATA_HOME on Linux. See Search.

MCP server

Set these in the env part of your client's server entry. See Set up your client.

VariableDefaultMeaning
FETLAR_MCP_TIMEOUT_SECS60seconds a call may take before it is stopped and returns an error
FETLAR_MCP_MAX_MEMORY_MB4096address-space limit of the child process. 0 for none. Unix only, and only where the system enforces it (Linux does, macOS does not)
FETLAR_MCP_WRITE_ROOTSthe server's working directoryfolders write_office_file may write under, separated by : (; on Windows). Empty or relative means nothing is writable
FETLAR_MCP_TEMPLATE_ROOTSthe write foldersfolders fill_office_template may read templates from
FETLAR_MCP_MAX_TEMPLATE_MB25largest template file
FETLAR_MCP_FILL_MAX_ITERATIONS1000000most loop iterations in one fill
FETLAR_MCP_FILL_MAX_OUTPUT_MB100largest filled file
FETLAR_MCP_FILL_MAX_UNCOMPRESSED_MB256largest filled file once uncompressed
FETLAR_MCP_MAX_INPUT_MB50largest content of one write, or data of one fill
FETLAR_MCP_MAX_PICTURE_MB20largest picture in a Word document
FETLAR_MCP_MAX_TEXT_CHARS1000000most characters in one cell, paragraph or run (200,000 per value when filling a template, unless set)
FETLAR_MCP_CSV_GUARDonoff turns the CSV formula guard off for every write. Only the operator can do this. A call cannot

On this page