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

Function registerServerCommand

apps/kimi-code/src/cli/sub/server/index.ts:23–47  ·  view source on GitHub ↗
(program: Command)

Source from the content-addressed store, hash-verified

21import { registerWebAliasCommand } from './web-alias';
22
23export function registerServerCommand(program: Command): void {
24 const server = program
25 .command('server')
26 .description('Run the local Kimi server (REST + WebSocket + web UI).');
27
28 buildRunCommand(
29 server.command('run').description('Start the Kimi server (background daemon; use --foreground to attach).'),
30 { defaultOpen: false },
31 );
32
33 registerPsCommand(server);
34
35 registerKillCommand(server);
36
37 registerRotateTokenCommand(server);
38
39 // OS service-manager commands (`install/uninstall/start/stop/restart/status`)
40 // are temporarily hidden — the product now favors the on-demand background
41 // daemon (`kimi web`) over service-ization. The implementation still lives in
42 // `./lifecycle.ts` + `packages/server/src/svc/*`; re-import
43 // `addLifecycleCommands` and call it here to re-expose.
44 // addLifecycleCommands(server);
45
46 registerWebAliasCommand(program);
47}
48
49export { registerWebAliasCommand };

Callers 3

makeProgramFunction · 0.90
server.test.tsFile · 0.90
createProgramFunction · 0.90

Calls 5

buildRunCommandFunction · 0.90
registerPsCommandFunction · 0.90
registerKillCommandFunction · 0.90
registerWebAliasCommandFunction · 0.90

Tested by 1

makeProgramFunction · 0.72