MCPcopy Create free account
hub / github.com/commandoperator/cmdop-sdk / ClientConfig

Interface ClientConfig

node/src/config.ts:16–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 const timeoutMs =
15 opts.timeoutMs ??
16 (env.CMDOP_TIMEOUT_MS ? Number(env.CMDOP_TIMEOUT_MS) : DEFAULT_TIMEOUT_MS);
17 if (!Number.isFinite(timeoutMs) || timeoutMs <= 0) {
18 throw new Error("timeoutMs must be greater than zero");
19 }
20 const rawBase = opts.baseUrl ?? env.CMDOP_BASE_URL;
21 return {
22 token: opts.token ?? env.CMDOP_TOKEN ?? undefined,
23 baseUrl: rawBase ? rawBase.replace(/\/+$/, "") : undefined,
24 timeoutMs,
25 };
26}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected