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

Function toolkitUrlFor

packages/plugins/toolkits/src/page.tsx:162–166  ·  view source on GitHub ↗
(orgSlug: string | undefined, slug: string)

Source from the content-addressed store, hash-verified

160 toolkit.owner === "user" || tool.static === true || tool.owner !== "user";
161
162const 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
168const identityPattern = (displayPattern: string): string => displayPattern;
169

Callers 1

ToolkitDetailViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected