MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / makeTempDir

Function makeTempDir

packages/mcp-server/src/bin.test.ts:9–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7import { initStandaloneMcpRuntime } from './standalone-runtime'
8
9function makeTempDir(): string {
10 const baseDir = fs.existsSync('/private/tmp') ? '/private/tmp' : os.tmpdir()
11 return fs.mkdtempSync(path.join(baseDir, 'chatlab-mcp-bin-'))
12}
13
14test('initStandaloneMcpRuntime rejects incompatible data directories before stdio startup', () => {
15 const userDataDir = makeTempDir()

Callers 1

bin.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected