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

Function startServerBackground

apps/kimi-code/src/cli/sub/server/run.ts:243–257  ·  view source on GitHub ↗
(
  options: ParsedServerOptions,
)

Source from the content-addressed store, hash-verified

241 * server keeps running in the background after this returns.
242 */
243export async function startServerBackground(
244 options: ParsedServerOptions,
245): Promise<EnsureDaemonResult> {
246 return ensureDaemon({
247 host: options.host,
248 port: options.port,
249 logLevel: options.logLevel,
250 debugEndpoints: options.debugEndpoints,
251 insecureNoTls: options.insecureNoTls,
252 allowRemoteShutdown: options.allowRemoteShutdown,
253 allowRemoteTerminals: options.allowRemoteTerminals,
254 allowedHosts: options.allowedHosts,
255 idleGraceMs: options.idleGraceMs,
256 });
257}
258
259/**
260 * `kimi server run --daemon` — runs the local server as a background daemon.

Callers

nothing calls this directly

Calls 1

ensureDaemonFunction · 0.90

Tested by

no test coverage detected