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

Function parseExecutorServerConnection

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

Source from the content-addressed store, hash-verified

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

Calls 1

Tested by

no test coverage detected