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

Function decodeConnection

apps/cli/src/server-profile.ts:87–92  ·  view source on GitHub ↗
(
  input: ExecutorServerConnectionInput,
)

Source from the content-addressed store, hash-verified

85const decodeStoreJson = Schema.decodeUnknownOption(Schema.fromJsonString(PersistedStore));
86
87const decodeConnection = (
88 input: ExecutorServerConnectionInput,
89): ExecutorServerConnection | null => {
90 if (!input.origin && !input.apiBaseUrl) return null;
91 return normalizeExecutorServerConnection(input);
92};
93
94export const parseCliServerConnectionStore = (raw: string): CliServerConnectionStore => {
95 const decoded = decodeStoreJson(raw);

Callers 1

Calls 1

Tested by

no test coverage detected