Skip to content

Environment

Environment variables and paths that mcpx respects.

Environment Variables

VariableEffect
NO_COLORDisables colored output (any value). Follows no-color.org
HOMEUsed for ~/.mcpx/config.yml location and $(mcpx.home)
PATHServer commands are looked up here

mcpx also passes through the entire current environment to server subprocesses, with any env: entries from config appended.

File Paths

Config files

PathPurpose
~/.mcpx/config.ymlGlobal config (user-level)
.mcpx/config.ymlProject config (walk-up search from cwd)

Daemon files

PathPurpose
/tmp/mcpx-<server>-<uid>.sockUnix socket (mode 0600)
/tmp/mcpx-<server>-<uid>.pidPID file
/tmp/mcpx-<server>-<uid>.logDaemon log

Keychain

OSBackend
macOSKeychain (service: mcpx)
LinuxSecret Service API (GNOME Keyring / KWallet)
WindowsWindows Credential Manager

Color Behavior

mcpx uses fatih/color which automatically disables color when:

  • NO_COLOR is set (any value)
  • stdout is not a terminal (piped or redirected)
  • TERM=dumb

You can also use --json or --quiet to get uncolored output.

Released under the MIT License.