MCPcopy
hub / github.com/Waishnav/devspace / ServerConfig

Interface ServerConfig

src/config.ts:14–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12const DEFAULT_OAUTH_REFRESH_TOKEN_TTL_SECONDS = 30 * 24 * 60 * 60;
13
14export interface ServerConfig {
15 host: string;
16 port: number;
17 oauth: OAuthConfig;
18 allowedRoots: string[];
19 allowedHosts: string[];
20 publicBaseUrl: string;
21 toolMode: ToolMode;
22 toolNaming: ToolNamingMode;
23 widgets: WidgetMode;
24 stateDir: string;
25 worktreeRoot: string;
26 skillsEnabled: boolean;
27 skillPaths: string[];
28 agentDir: string;
29 logging: LoggingConfig;
30}
31
32function parsePort(value: string | number | undefined): number {
33 if (value === undefined || value === "") return 7676;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected