Reference
Environment variables
Variables that change how Fetlar and its MCP server behave.
Command line
| Variable | Meaning |
|---|---|
FETLAR_THREADS | The 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_DIR | Where 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.
| Variable | Default | Meaning |
|---|---|---|
FETLAR_MCP_TIMEOUT_SECS | 60 | seconds a call may take before it is stopped and returns an error |
FETLAR_MCP_MAX_MEMORY_MB | 4096 | address-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_ROOTS | the server's working directory | folders write_office_file may write under, separated by : (; on Windows). Empty or relative means nothing is writable |
FETLAR_MCP_TEMPLATE_ROOTS | the write folders | folders fill_office_template may read templates from |
FETLAR_MCP_MAX_TEMPLATE_MB | 25 | largest template file |
FETLAR_MCP_FILL_MAX_ITERATIONS | 1000000 | most loop iterations in one fill |
FETLAR_MCP_FILL_MAX_OUTPUT_MB | 100 | largest filled file |
FETLAR_MCP_FILL_MAX_UNCOMPRESSED_MB | 256 | largest filled file once uncompressed |
FETLAR_MCP_MAX_INPUT_MB | 50 | largest content of one write, or data of one fill |
FETLAR_MCP_MAX_PICTURE_MB | 20 | largest picture in a Word document |
FETLAR_MCP_MAX_TEXT_CHARS | 1000000 | most characters in one cell, paragraph or run (200,000 per value when filling a template, unless set) |
FETLAR_MCP_CSV_GUARD | on | off turns the CSV formula guard off for every write. Only the operator can do this. A call cannot |