MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / boot

Function boot

packages/server/test/debug-nonloopback.e2e.test.ts:54–69  ·  view source on GitHub ↗
(host: string)

Source from the content-addressed store, hash-verified

52});
53
54async function boot(host: string): Promise<RunningServer> {
55 const r = await startServer({
56 serviceOverrides: [fixedTokenAuth()],
57 host,
58 port: 0,
59 lockPath: host === '0.0.0.0' ? join(tmpDir, `lock-${host}`) : lockPath,
60 logger: pino({ level: 'silent' }),
61 coreProcessOptions: { homeDir: bridgeHome },
62 debugEndpoints: true,
63 // M6.3: acknowledge the lack of a TLS proxy so the 0.0.0.0 bind is allowed
64 // (loopback ignores this — the gate only fires for non-loopback).
65 insecureNoTls: true,
66 });
67 running.push(r);
68 return r;
69}
70
71/** Probe a debug route on `127.0.0.1:<port>` regardless of the bound host. */
72async function probeDebug(r: RunningServer): Promise<number> {

Callers 1

Calls 3

startServerFunction · 0.90
fixedTokenAuthFunction · 0.90
pushMethod · 0.45

Tested by

no test coverage detected