( organizationSelector: string | null, toolkitSlug: string | null = null, )
| 85 | * `…/org_xxx/mcp` id — echoed verbatim so it matches the URL the client |
| 86 | * used), or the bare resource. */ |
| 87 | export 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. */ |
| 96 | export const protectedResourceMetadataUrlFor = ( |
no test coverage detected