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

Function startServerForeground

apps/kimi-code/src/cli/sub/server/run.ts:276–281  ·  view source on GitHub ↗
(
  options: ParsedServerOptions,
  hooks: StartForegroundHooks = {},
)

Source from the content-addressed store, hash-verified

274 * to the current terminal. Resolves only via `process.exit` (SIGINT/SIGTERM).
275 */
276export async function startServerForeground(
277 options: ParsedServerOptions,
278 hooks: StartForegroundHooks = {},
279): Promise<never> {
280 return runServerInProcess(options, { daemon: false }, hooks.onReady);
281}
282
283/**
284 * Start the server in the current process and block until shutdown. Shared by

Callers

nothing calls this directly

Calls 1

runServerInProcessFunction · 0.85

Tested by

no test coverage detected