MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / parseExecutorServerConnection

Function parseExecutorServerConnection

apps/cli/src/main.ts:330–335  ·  view source on GitHub ↗
(baseUrl: string)

Source from the content-addressed store, hash-verified

328 });
329
330const parseExecutorServerConnection = (baseUrl: string) =>
331 Effect.try({
332 try: () => parseCliExecutorServerConnection(baseUrl),
333 catch: (cause) =>
334 cause instanceof Error ? cause : new Error(`Invalid server URL: ${String(cause)}`),
335 });
336
337const daemonBaseUrl = (hostname: string, port: number): string =>
338 `http://${canonicalDaemonHost(hostname)}:${port}`;

Calls 1

Tested by

no test coverage detected