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

Function bootServer

packages/server/test/ws-terminal.e2e.test.ts:39–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37});
38
39async function bootServer(): Promise<RunningServer> {
40 server = await startServer({
41 host: '127.0.0.1',
42 port: 0,
43 lockPath,
44 logger: pino({ level: 'silent' }),
45 coreProcessOptions: { homeDir: bridgeHome },
46 wsGatewayOptions: { pingIntervalMs: 5_000, pongTimeoutMs: 5_000 },
47 serviceOverrides: [
48 fixedTokenAuth(),
49 [ITerminalService, new SyncDescriptor(TerminalService, [{ backend }], false)],
50 ],
51 });
52 return server;
53}
54
55function appOf(r: RunningServer): {
56 inject: (req: unknown) => Promise<{ statusCode: number; json: () => unknown }>;

Callers 1

Calls 2

startServerFunction · 0.90
fixedTokenAuthFunction · 0.90

Tested by

no test coverage detected