Function
toolkitUrlFor
(orgSlug: string | undefined, slug: string)
Source from the content-addressed store, hash-verified
| 160 | toolkit.owner === "user" || tool.static === true || tool.owner !== "user"; |
| 161 | |
| 162 | const toolkitUrlFor = (orgSlug: string | undefined, slug: string): string => { |
| 163 | const path = orgSlug ? `/${orgSlug}/mcp/toolkits/${slug}` : `/mcp/toolkits/${slug}`; |
| 164 | if (typeof window === "undefined") return path; |
| 165 | return `${window.location.origin}${path}`; |
| 166 | }; |
| 167 | |
| 168 | const identityPattern = (displayPattern: string): string => displayPattern; |
| 169 | |
Tested by
no test coverage detected