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

Function parseExecutorServerConnection

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

Source from the content-addressed store, hash-verified

314 });
315
316const parseExecutorServerConnection = (baseUrl: string) =>
317 Effect.try({
318 try: () => parseCliExecutorServerConnection(baseUrl),
319 catch: (cause) =>
320 cause instanceof Error ? cause : new Error(`Invalid server URL: ${String(cause)}`),
321 });
322
323const daemonBaseUrl = (hostname: string, port: number): string =>
324 `http://${canonicalDaemonHost(hostname)}:${port}`;

Calls 1

Tested by

no test coverage detected