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

Function serverOrigin

apps/kimi-code/src/cli/sub/server/shared.ts:137–139  ·  view source on GitHub ↗
(host: string, port: number)

Source from the content-addressed store, hash-verified

135}
136
137export function serverOrigin(host: string, port: number): string {
138 return `http://${host}:${port}`;
139}
140
141/** Strip `/api/v1` and trailing slashes so user-supplied origins are uniform. */
142export function normalizeServerOrigin(value: string): string {

Callers 5

ensureDaemonFunction · 0.90
handleKillCommandFunction · 0.90
formatServiceUrlFunction · 0.90
handlePsCommandFunction · 0.90
shared.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected