MCPcopy
hub / github.com/MiniMax-AI/cli / getConfigDir

Function getConfigDir

src/config/paths.ts:6–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4const CONFIG_DIR_NAME = '.mmx';
5
6export function getConfigDir(): string {
7 if (process.env.MMX_CONFIG_DIR) return process.env.MMX_CONFIG_DIR;
8 return join(homedir(), CONFIG_DIR_NAME);
9}
10
11export function getConfigPath(): string {
12 return join(getConfigDir(), 'config.json');

Callers 3

STATE_FILEFunction · 0.90
getConfigPathFunction · 0.85
ensureConfigDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected