MCPcopy
hub / github.com/coder/mux / resolveCoderSSHHost

Function resolveCoderSSHHost

src/constants/coder.ts:17–20  ·  view source on GitHub ↗
(host: string, workspaceName?: string)

Source from the content-addressed store, hash-verified

15 * otherwise falls back to the raw host (non-Coder SSH or already-normalized).
16 */
17export function resolveCoderSSHHost(host: string, workspaceName?: string): string {
18 const name = workspaceName?.trim();
19 return name ? toMuxCoderHost(name) : host;
20}
21
22export const MUX_CODER_SSH_BLOCK_START = "# --- START MUX CODER SSH ---";
23export const MUX_CODER_SSH_BLOCK_END = "# --- END MUX CODER SSH ---";

Callers 3

createRuntimeFunction · 0.90
constructorMethod · 0.90
finalizeConfigMethod · 0.90

Calls 1

toMuxCoderHostFunction · 0.85

Tested by

no test coverage detected