Skip to content

Environment Variables

These variables are used internally by the gateway and shim. You generally do not need to set them manually. They are documented here for debugging and advanced configuration.

Set by the gateway when spawning shim processes, or read by the shim at startup:

VariableDescription
MCPFW_GATEWAY_URLGateway base URL (used by shim to locate the gateway)
MCPFW_SERVER_IDServer UUID for this shim instance
MCPFW_SOCKET_PATHUnix socket path for gateway communication
MCPFW_BYPASSSet to true to enable bypass mode when the gateway is unreachable. The shim connects directly to the upstream server with read-only enforcement.
MCPFW_TOKENBearer token for team gateway authentication (Team tier — coming soon)
MCPFW_ORIG_COMMANDOriginal MCP server command (before rewrite to shim)
MCPFW_ORIG_ARGSOriginal MCP server arguments (JSON array)
MCPFW_ORIG_ENVOriginal MCP server environment variables (JSON object)

These are accepted for backward compatibility:

VariableReplaced by
SLUICE_GATEWAY_URLMCPFW_GATEWAY_URL
SLUICE_SERVER_IDMCPFW_SERVER_ID
SLUICE_BYPASSMCPFW_BYPASS
SLUICE_TOKENMCPFW_TOKEN
SLUICE_ORIG_COMMANDMCPFW_ORIG_COMMAND
SLUICE_ORIG_ARGSMCPFW_ORIG_ARGS
SLUICE_ORIG_ENVMCPFW_ORIG_ENV

Server configurations can reference vault secrets using:

$MCPFW_SECRET:secret_name

The gateway resolves these at runtime, injecting the decrypted value. The legacy prefix $SLUICE_SECRET: is also accepted.