MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / ServerConfig

Class ServerConfig

src/server/types.py:32–47  ·  view source on GitHub ↗

Direct Connect server configuration. Mirrors ``server/types.ts:13-24``. The ``unix`` field selects the Unix-domain-socket variant (``--unix /path/to/sock``); when set, ``host``/``port`` are ignored. ``idle_timeout_ms = 0`` means "never expire detached sessions."

Source from the content-addressed store, hash-verified

30
31@dataclass(frozen=True)
32class ServerConfig:
33 """Direct Connect server configuration.
34
35 Mirrors ``server/types.ts:13-24``. The ``unix`` field selects the
36 Unix-domain-socket variant (``--unix /path/to/sock``); when set,
37 ``host``/``port`` are ignored. ``idle_timeout_ms = 0`` means
38 "never expire detached sessions."
39 """
40
41 port: int = 0
42 host: str = '127.0.0.1'
43 auth_token: str = ''
44 unix: str | None = None
45 idle_timeout_ms: int = 0
46 max_sessions: int | None = None
47 workspace: str | None = None
48
49
50@dataclass

Calls

no outgoing calls