MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / main

Function main

packages/mcp-server/src/bin.ts:15–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13import { getMcpPackageVersion } from './runtime-version'
14
15function main(): void {
16 const config = loadConfig()
17 const userDataDir = config.data.user_data_dir || undefined
18 const version = getMcpPackageVersion()
19 const { dbManager } = initStandaloneMcpRuntime(version, userDataDir)
20
21 startMcpServer({ version, dbManager }).catch((err) => {
22 console.error('[chatlab-mcp] Fatal error:', err)
23 process.exit(1)
24 })
25}
26
27main()

Callers 1

bin.tsFile · 0.70

Calls 5

loadConfigFunction · 0.90
getMcpPackageVersionFunction · 0.90
initStandaloneMcpRuntimeFunction · 0.90
startMcpServerFunction · 0.90
errorMethod · 0.65

Tested by

no test coverage detected