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

Function resourceUrlFor

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

Source from the content-addressed store, hash-verified

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

Callers 2

mount.test.tsFile · 0.90

Calls 1

toolkitMcpPathFunction · 0.85

Tested by

no test coverage detected