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

Function resourceUrlFor

apps/cloud/src/mcp/auth.ts:87–93  ·  view source on GitHub ↗
(
  organizationSelector: string | null,
  toolkitSlug: string | null = null,
)

Source from the content-addressed store, hash-verified

85 * `…/org_xxx/mcp` id — echoed verbatim so it matches the URL the client
86 * used), or the bare resource. */
87export const resourceUrlFor = (
88 organizationSelector: string | null,
89 toolkitSlug: string | null = null,
90): string =>
91 organizationSelector
92 ? `${RESOURCE_ORIGIN}/${organizationSelector}${toolkitMcpPath(toolkitSlug)}`
93 : `${RESOURCE_ORIGIN}${toolkitMcpPath(toolkitSlug)}`;
94
95/** The protected-resource-metadata URL for an org selector, or the bare one. */
96export const protectedResourceMetadataUrlFor = (

Callers 2

mount.test.tsFile · 0.90

Calls 1

toolkitMcpPathFunction · 0.85

Tested by

no test coverage detected