Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Environment Variables

flockmcp is started by the AI assistant, so its environment variables are set where the assistant is told how to start it. See the assistant's documentation: most take an env setting beside command and args.

flockmcpd is a service, so its environment is set where it is started, such as its systemd unit or container.

FLOCK_ENDPOINT

FLOCK_ENDPOINT sets the gRPC endpoint of the one daemon, local, that flockmcp talks to when it is started with no --daemon. If not set http://[::1]:50051 will be used. It is the same variable flockc reads.

FLOCK_ENDPOINT is not used when --daemon is given, nor by flockmcpd.

FLOCKMCPD_CONF_DIR

FLOCKMCPD_CONF_DIR sets the directory that flockmcpd will look in for its configuration. If not set /etc/flockmcpd will be used.

FLOCKMCPD_CONF_FILE

FLOCKMCPD_CONF_FILE sets the name of the file in FLOCKMCPD_CONF_DIR that flockmcpd will read its configuration from. If not set flockmcpd.json will be used.

RUST_LOG

RUST_LOG sets the level flockmcp and flockmcpd log at, to their standard error. If RUST_LOG is not set, flockmcp logs only error, and flockmcpd logs warn and error. Supported log levels in descending priority order are error, warn, info, debug and trace.

Where flockmcp's log goes is up to the assistant that started it.