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

Function artifactUrlFor

packages/hosts/mcp/src/create-artifact.ts:32–36  ·  view source on GitHub ↗
(webBaseUrl: string, organizationSlug?: string | null)

Source from the content-addressed store, hash-verified

30 */
31export const artifactUrlFor =
32 (webBaseUrl: string, organizationSlug?: string | null) =>
33 (artifactId: string): string => {
34 const orgPath = organizationSlug ? `/${encodeURIComponent(organizationSlug)}` : "";
35 return new URL(`${orgPath}/artifacts/${encodeURIComponent(artifactId)}`, webBaseUrl).toString();
36 };
37
38// ---------------------------------------------------------------------------
39// Code guard

Callers 5

makeMcpBuildServerFunction · 0.90
buildMcpServerMethod · 0.90
buildMcpServerMethod · 0.90
createServerHandlersFunction · 0.90

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected